dojo.hostenv.findModule("xg.shared.util",!1)||(dojo.provide("xg.shared.util"),xg.append=function(a){return(document.getElementById("xj_baz17246")||document.body).appendChild(a)},xg.listen=function(a,b,c,d){dojo.event.connect("string"==a?dojo.byId(a):a,b,"function"==typeof c?c:function(){d.apply(c,arguments)})},xg.stop=function(a){dojo.event.browser.stopEvent(a)},xg.qh=function(a){return"undefined"===typeof a?(xg.shared.util.consoleLog("undefined was passed to xg.qh() (BAZ-32577)"),window.console&&
window.console.trace&&window.console.trace(),""):a.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;")},xg.toggle=function(a,b){a=dojo.byId(a);1==arguments.length&&(b="none"==a.style.display);a.style.display=b?"":"none"},xg.$=function(a,b){return"#"==a.substr(0,1)?dojo.byId(a.substr(1)):xg.$$(a,b)[0]},xg.$$=function(a,b){if("#"==a.substr(0,1))return[dojo.byId(a.substr(1))];a=a.split(".",2);"string"==typeof b&&(b=document.getElementById(b));return a[1]?
dojo.html.getElementsByClass(a[1],b,a[0]):(b||document.body).getElementsByTagName(a[0])},xg.parent=function(a,b){b=(b||"").split(".");var c=b[0].toUpperCase();for(b=b[1]?new RegExp("(^|\\s+)"+b[1]+"(\\s+|$)"):"";a=a.parentNode;)if(!(c&&a.tagName!=c||b&&!a.className.match(b)))return a;return null},xg._xhr=function(a,b,c,d,e,f){d=d||function(){};a={url:b,method:a,encoding:"utf-8",mimetype:"text/plain",load:function(g,h,k){"function"==typeof d?d(k,h):e.call(d,k,h)},error:f};c&&(c.constructor!=Object?
a.formNode=c:("undefined"!=typeof c.preventCache&&(a.preventCache=c.preventCache,delete c.preventCache),"undefined"!=typeof c.formNode&&(a.formNode=c.formNode,delete c.formNode),a.content=c));return dojo.io.bind(a)},xg.get=function(a,b,c,d,e){return xg._xhr("get",a,b,c,d,e)},xg.post=function(a,b,c,d,e){return xg._xhr("post",a,b,c,d,e)},xg.linkify=function(a,b){if(!a.match(/http|ftp|www|HTTP|FTP|WWW/))return a;b=null==b?"":' target\x3d"'+b+'"';a=a.replace(RegExp("(^|\\W)((http|ftp|https):\\/\\/[\\w\\-]+(\\.[\\w\\-]+)+([\\w\\-\\.;,@?^\x3d%\x26:\\/~\\+#]*[\\w\\-\\@?^\x3d%\x26\\/~\\+#])?)",
"gi"),'$1\x3ca href\x3d"$2"'+b+"\x3e$2\x3c/a\x3e");return a=a.replace(RegExp("(^|[^/\\w])(www(\\.[\\w]+)+([\\w\\-\\.;,@?^\x3d%\x26:\\/~\\+#]*[\\w\\-\\@?^\x3d%\x26\\/~\\+#])?)","gi"),'$1\x3ca href\x3d"http://$2"'+b+"\x3e$2\x3c/a\x3e")},xg.preventDefault=function(a,b){return function(c){c.preventDefault();b&&c.stopPropagation();a()}},xg.renderHtml=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a=a.replace(new RegExp("{"+c+"}","g"),b[c]));return a},xg.shared.util={ignoreOverlayHide:!1,chatAppletContainerVisible:void 0,
createElement:function(a){var b=document.createElement("div");b.innerHTML=a.replace(/^\s+/,"").replace(/\s+$/,"");return b.firstChild||void 0},getOffset:function(a,b){for(var c=0,d=0,e=[];b;b=b.parentNode)e.push(b);for(;a;a=a.offsetParent){b=dojo.style.getStyle(a,"position");if("relative"==b||"absolute"==b){for(var f=b=0;f<e.length;f++)if(a==e[f]){b=1;break}if(b)break}c+=a.offsetLeft||0;d+=a.offsetTop||0;if("BODY"==a.tagName)break}return{x:c,y:d}},getOffsetX:function(a,b){a=x$(a).offset();b=x$(b).offset();
return{x:a.left-b.left,y:a.top-b.top}},_widgetParsingStrategy:0,safeBindUrl:function(a){return a.replace(/\[/g,"%5B").replace(/\]/g,"%5D")},isValidUrl:function(a){return/^(ftp|https?):\/\/(\w+(:\w*)?@?)?([a-zA-Z0-9_.-]+)(:\d+)?(\/([\w#!:.?+=&%@!\/-]*)?)?$/.test(a)},parseUrlParameters:function(a){var b=(a+"").split("?");a={};if(1<b.length){b=b[1].split("\x26");for(var c=0;c<b.length;c++){var d=b[c].split("\x3d");a[d[0]]=d[1]}}return a},parseWidgets:function(a){a=a||document.getElementsByTagName("body")[0]||
document.body;a=(new dojo.xml.Parse).parseElement(a,null,!0);dojo.widget.getParser().createComponents(a)},fixImagesInIE:function(a,b,c,d){(dojo.render.html.ie50||dojo.render.html.ie55||dojo.render.html.ie60)&&dojo.lang.forEach(a,function(e){if(!dojo.lang.inArray(xg.shared.util.fixedImageURLs,e.src)){var f=function(){var g=new Image;g.onload=g.onerror=g.onabort=function(){e.src=e.src;xg.shared.util.fixTransparencyInIEProper(e,c,d);xg.shared.util.fixedImageURLs.push(e.src)};g.src=e.src};b?f():window.setTimeout(f,
0)}})},fixedImageURLs:[],fixTransparencyInIEProper:function(a,b,c){a&&(dojo.render.html.ie50||dojo.render.html.ie55||dojo.render.html.ie60)&&a.src.match(/png/)&&dojo.style.isShowing(a)&&(b=b?b:a.width,c=c?c:a.height,a.style.width=b+"px",a.style.height=c+"px",a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+a.src+"', sizingMethod\x3d'scale')",a.src=xg.shared.util.cdn("/xn_resources/widgets/index/gfx/x.gif"));a&&(a.style.visibility="visible")},fixTransparencyInIE:function(a){(dojo.render.html.ie50||
dojo.render.html.ie55||dojo.render.html.ie60)&&dojo.lang.forEach(a.getElementsByTagName("img"),function(b){xg.shared.util.fixTransparencyInIEProper(b)})},fixDialogPosition:function(a){a=xg.$("div.xg_floating_container",a);var b=parseInt(dojo.html.getViewportHeight(),10);a.style.height="auto";a.style.overflow="visible";parseInt(a.offsetHeight,10)>.9*b&&(a.style.height=parseInt(.9*b,10)+"px",a.style.overflow="auto");b=dojo.render.html;a.style.marginTop=(b.ie&&(b.ie60||b.ie55||b.ie50)?0:-parseInt(a.offsetHeight/
2,10))+"px"},nl2br:function(a,b){a=a.replace(/\r\n/g,"\n");result="";dojo.lang.forEach(a.split("\n"),function(c){result=c.match(/<.?OBJECT\b|<.?EMBED\b|<.?PARAM\b|<.?APPLET\b|<.?IFRAME\b|<.?SCRIPT\b|<.?BR\b|<.?ADDRESS\b|<.?BLOCKQUOTE\b|<.?CENTER\b|<.?DIR\b|<.?DIV\b|<.?DL\b|<.?FIELDSET\b|<.?FORM\b|<.?H1\b|<.?H2\b|<.?H3\b|<.?H4\b|<.?H5\b|<.?H6\b|<.?HR\b|<.?ISINDEX\b|<.?MENU\b|<.?NOFRAMES\b|<.?NOSCRIPT\b|<.?OL\b|<.?P\b|<.?PRE\b|<.?TABLE\b|<.?UL\b|<.?DD\b|<.?DT\b|<.?FRAMESET\b|<.?LI\b|<.?TBODY\b|<.?TD\b|<.?TFOOT\b|<.?TH\b|<.?THEAD\b|<.?TR\b/i)?
result+c:b?result+("\x3cp\x3e"+c+"\x3c/p\x3e"):result+(c+"\x3cbr /\x3e");result+="\n"});return dojo.string.trim(result).replace(/(<br \/>)+$/,"")},showOverlay:function(){var a=dojo.byId("xg_overlay");"none"==a.style.display&&(a.style.height=this.getPageHeight()+"px",a.style.display="block");xg.shared.util.chatAppletContainerVisible=x$("#appletContainer").css("visibility");x$("#appletContainer").css("visibility","hidden")},hideOverlay:function(){if(1!=xg.shared.util.ignoreOverlayHide){var a=dojo.byId("xg_overlay");
"none"!=a.style.display&&(a.style.display="none");"undefined"!=typeof xg.shared.util.chatAppletContainerVisible&&x$("#appletContainer").css("visibility",xg.shared.util.chatAppletContainerVisible)}},getPageHeight:function(){var a=window.innerHeight&&window.scrollMaxY?window.innerHeight+window.scrollMaxY:document.body.scrollHeight>document.body.offsetHeight?document.body.scrollHeight:document.body.offsetHeight;if(self.innerHeight)var b=self.innerHeight;else document.documentElement&&document.documentElement.clientHeight?
b=document.documentElement.clientHeight:document.body&&(b=document.body.clientHeight);return pageHeight=a<b?b:a},setMaxLength:function(a,b){x$(a).bind("keypress",function(c){var d=c.which||c.keyCode;8!=d&&46!=d&&37!=d&&39!=d&&38!=d&&40!=d&&a.value.length>=b&&c.preventDefault()})},setAdvisableMaxLength:function(a,b,c,d,e,f){d||=function(){return a.value};var g=0,h=a.parentNode;e||(e=document.createElement("small"),a.nextSibling?h.insertBefore(e,a.nextSibling):h.appendChild(e,a));dojo.html.addClass(e,
"maxlength_advisement");e.innerHTML=c||"";return this.addOnChange(a,function(){d().length>b?(e.innerHTML=xg.shared.nls.text("messageIsTooLong",d().length,b),dojo.html.addClass(e,"hint_textarea"),g||(dojo.html.addClass(a.parentNode,"error"),dojo.html.addClass(e,"error")),g=1):(dojo.html.removeClass(e,"hint_textarea"),g&&(e.innerHTML=c||"",dojo.html.removeClass(a.parentNode,"error"),dojo.html.removeClass(e,"error")),g=0);null!=xg.shared.util.maxAdvisableLengthTimer&&(clearTimeout(xg.shared.util.maxAdvisableLengthTimer),
xg.shared.util.maxAdvisableLengthTimer=null)},f).trigger},maxAdvisableLengthTimer:null,setAdvisableMaxLengthWithCountdown:function(a,b,c,d){var e=0;"undefined"==typeof c&&(c=dojo.dom.nextElement(a,"span"));var f=a.id+"_chars_left",g=dojo.byId(f),h=function(){var k=b-a.value.replace(/\r\n/g,"\n").length;d&&!(0>k)||g||(g=document.createElement("small"),x$(g).addClass("right"),g.id=f,c.appendChild(g));g&&(g.innerHTML=0<=k?"\x26nbsp;"+k:"\x26nbsp;-"+Math.abs(k));a.value.length>b?(e||dojo.html.addClass(g.parentNode,
"simpleerrordesc"),e=1):(e&&dojo.html.removeClass(g.parentNode,"simpleerrordesc"),e=0)};this.addOnChange(a,h);h();return h},addOnChange:function(a,b,c){b=this.createQuiescenceTimer(c||50,b);dojo.event.connect(a,"onkeyup",b.trigger);dojo.event.connect(a,"onkeypress",b.trigger);dojo.event.connect(a,"onblur",b.trigger);dojo.event.connect(a,"oncut",b.trigger);dojo.event.connect(a,"onpaste",b.trigger);dojo.event.connect(a,"onchange",b.trigger);return b},modalDialog:function(a){x$(".xg_floating_module").remove();
x$(".dy-modal").remove();args="string"==typeof a?{bodyHtml:a}:a;a=args.wideDisplay?" dy-modal-wide":"";var b=args.title?"\x3ch3\x3e"+xg.qh(args.title)+"\x3c/h3\x3e":"";b=args.titleHtml?args.titleHtml:b;var c=args.bodyHtml;a=' \x3cdiv\x3e \x3cdiv class\x3d"xg_floating_container dy-modal'+a+'"\x3e     \x3cdiv class\x3d"dy-modal-close"\x3e         \x3ca class\x3d"xg_close xj_close" href\x3d"#"\x3e'+xg.shared.nls.text("close")+'\x3c/a\x3e     \x3c/div\x3e     \x3cdiv class\x3d"module"\x3e '+b+'         \x3cdiv class\x3d"form"\x3e '+
c+"         \x3c/div\x3e     \x3c/div\x3e \x3c/div\x3e \x3c/div\x3e";var d=x$(a)[0];this.showOverlay();xg.append(d);this.fixDialogPosition(d);args.noClose?x$(".dy-modal-close",d).hide():x$(".xj_close",d).click(function(e){e.preventDefault();x$(this).hasClass("disabled")||(xg.shared.util.hideOverlay(),x$(d).remove())});return d},alert:function(a){dojo.byId("xg_lightbox_alert")&&dojo.dom.removeNode(dojo.byId("xg_lightbox_alert"));args="string"==typeof a?{bodyHtml:a}:a;args.onOk=args.onOk?args.onOk:
function(){};args.autoCloseTime=args.autoCloseTime?args.autoCloseTime:0;args.okButtonText||(args.okButtonText=xg.shared.nls.text("ok"));a=args.wideDisplay?" xg_floating_container_wide":"";var b=args.customDisplayClass?" "+args.customDisplayClass:"",c=args.title?"\x3ch2\x3e"+dojo.string.escape("html",args.title)+"\x3c/h2\x3e":null;c=args.titleHtml?args.titleHtml:c;a=dojo.string.trim('                 \x3cdiv class\x3d"xg_floating_module '+(args.classes||"")+'" id\x3d"xg_lightbox_alert"\x3e                     \x3cdiv class\x3d"xg_floating_container xg_lightborder xg_module'+
a+b+'"\x3e                         '+(args.noHeader&&args.noHeader?"":'\x3cdiv class\x3d"xg_module_head '+(c?"":"notitle")+'"\x3e                             '+(c?c:"")+"                         \x3c/div\x3e")+'                         \x3cdiv class\x3d"xg_module_body"\x3e '+(args.bodyHtmlRaw?args.bodyHtmlRaw:"\x3cp\x3e"+args.bodyHtml+"\x3c/p\x3e"));1>args.autoCloseTime&&!args.noButtons&&(a+=dojo.string.trim('                             \x3cp class\x3d"buttongroup"\x3e                                 \x3cinput type\x3d"button" class\x3d"button action-primary" value\x3d"'+
dojo.string.escape("html",args.okButtonText)+'" /\x3e                             \x3c/p\x3e'));a+=dojo.string.trim("                         \x3c/div\x3e                     \x3c/div\x3e                 \x3c/div\x3e");var d=dojo.html.createNodesFromText(a)[0];this.showOverlay();xg.append(d);this.fixDialogPosition(d);args.noClose||1>args.autoCloseTime?args.noButtons||dojo.event.connect(dojo.html.getElementsByClass("button",d)[0],"onclick",dojo.lang.hitch(this,function(e){dojo.event.browser.stopEvent(e);
args.noClose||(dojo.dom.removeNode(d),this.hideOverlay());args.onOk(d)})):setTimeout(dojo.lang.hitch(this,function(){dojo.dom.removeNode(d);this.hideOverlay();args.onOk(d)}),args.autoCloseTime);return d},progressDialog:function(a){dojo.byId("xg_lightbox_alert")&&dojo.dom.removeNode(dojo.byId("xg_lightbox_alert"));a=dojo.string.trim('                 \x3cdiv class\x3d"xg_floating_module '+(a.classes||"")+'" id\x3d"xg_lightbox_alert"\x3e                     \x3cdiv class\x3d"xg_floating_container xg_lightborder"\x3e                         \x3cdiv class\x3d"xg_module_head '+
(a.title?"":"notitle")+'"\x3e                             '+(a.title?"\x3ch2\x3e"+dojo.string.escape("html",a.title)+"\x3c/h2\x3e":"")+'                         \x3c/div\x3e                         \x3cdiv class\x3d"xg_module_body"\x3e                             \x3cp class\x3d"spinner"\x3e'+a.bodyHtml+"\x3c/p\x3e                         \x3c/div\x3e                     \x3c/div\x3e                 \x3c/div\x3e");var b=dojo.html.createNodesFromText(a)[0];this.showOverlay();xg.append(b);this.fixDialogPosition(b);
return{hide:dojo.lang.hitch(this,function(){dojo.dom.removeNode(b);this.hideOverlay()})}},showDialogAndRedirect:function(a){dojo.byId("xg_lightbox_alert")&&dojo.dom.removeNode(dojo.byId("xg_lightbox_alert"));var b=dojo.string.trim('                 \x3cdiv class\x3d"xg_floating_module" id\x3d"xg_lightbox_alert"\x3e                     \x3cdiv class\x3d"xg_floating_container xg_lightborder"\x3e                         \x3cdiv class\x3d"xg_module_head '+(a.title?"":"notitle")+'"\x3e                             '+
(a.title?"\x3ch2\x3e"+dojo.string.escape("html",a.title)+"\x3c/h2\x3e":"")+'                         \x3c/div\x3e                         \x3cdiv class\x3d"xg_module_body"\x3e                             \x3cp\x3e'+a.bodyHtml+"\x3c/p\x3e                         \x3c/div\x3e                     \x3c/div\x3e                 \x3c/div\x3e");b=dojo.html.createNodesFromText(b)[0];this.showOverlay();xg.append(b);window.location=a.target},confirm:function(a){a.title=a.title?a.title:xg.shared.nls.text("confirmation");
a.okButtonText=a.okButtonText?a.okButtonText:xg.shared.nls.text("ok");a.cancelButtonText||(a.cancelButtonText=xg.shared.nls.html("cancel"));a.onOk=a.onOk?a.onOk:function(){};a.onCancel=a.onCancel?a.onCancel:function(){};a.bodyText&&(a.bodyHtml="\x3cp\x3e"+dojo.string.escape("html",a.bodyText)+"\x3c/p\x3e");var b=dojo.html.createNodesFromText(dojo.string.trim('                \x3cdiv class\x3d"xg_floating_module '+(a.classes||"")+'"\x3e                     \x3cdiv class\x3d"xg_floating_container xg_lightborder'+
(a.wideDisplay?" xg_floating_container_wide":"")+'"\x3e                         \x3cdiv class\x3d"xg_module_head"\x3e                             \x3ch2\x3e'+(a.titleHtml?a.titleHtml:dojo.string.escape("html",a.title))+'\x3c/h2\x3e                         \x3c/div\x3e                         \x3cdiv class\x3d"xg_module_body"\x3e                             \x3cform\x3e                                 \x3cinput type\x3d"hidden" name\x3d"xg_token" value\x3d"'+xg.token+'" /\x3e                                  '+
a.bodyHtml+'                                  \x3cp class\x3d"buttongroup"\x3e                                      \x3cinput type\x3d"submit" class\x3d"button action-primary" value\x3d"'+dojo.string.escape("html",a.okButtonText)+'"/\x3e '+(a.extraButton&&a.extraButton.title?'\x3ca class\x3d"xj_custom action-secondary" href\x3d"#"\x3e'+a.extraButton.title+"\x3c/a\x3e ":"")+('\x3ca class\x3d"xj_cancel action-secondary" href\x3d"#"\x3e'+a.cancelButtonText+"\x3c/a\x3e\x3c/p\x3e                             \x3c/form\x3e                         \x3c/div\x3e                     \x3c/div\x3e                 \x3c/div\x3e")))[0];
a.noOverlay||this.showOverlay();xg.append(b);this.fixDialogPosition(b);var c=this.getPositionedAndSizedIframe('\x3ciframe id\x3d"confirm_iframe" src\x3d"about:blank" scrolling\x3d"no" frameborder\x3d"0" /\x3e',b).appendTo("body"),d=function(){dojo.dom.removeNode(c[0])};this.applyStyleArgsToDialog(a,b);this.applyStyleArgsToDialog(a,c,b);xg.listen(xg.$(".xj_cancel",b),"onclick",this,function(e){xg.stop(e);xg.shared.util.hideOverlay();d();dojo.dom.removeNode(b);if(a.onCancel)a.onCancel(b)});a.extraButton&&
a.extraButton.title&&xg.listen(xg.$(".xj_custom",b),"onclick",this,function(){xg.shared.util.hideOverlay();d();dojo.dom.removeNode(b);if(a.extraButton.onClick)a.extraButton.onClick(b)});xg.listen(xg.$("form",b),"onsubmit",this,function(e){xg.stop(e);a.closeOnlyIfOnOk?a.onOk(b)&&(xg.shared.util.hideOverlay(),d(),dojo.style.hide(b)):(xg.shared.util.hideOverlay(),d(),dojo.style.hide(b),a.onOk(b))});return b},getPositionedAndSizedIframe:function(a,b){b=x$(".xg_floating_container",b);return x$(a).css({position:"fixed",
top:"50%",left:"50%",filter:"progid:DXImageTransform.Microsoft.Alpha(style\x3d0,opacity\x3d0)",width:b.outerWidth(),height:b.outerHeight(),"margin-left":-(b.outerWidth()/2)+7,"margin-top":-(b.outerHeight()/2),"z-index":b.parent().css("z-index")-1})},dropdownMenu:function(a){var b=x$(a.srcNode),c=x$(a.menuNode),d=a.srcActiveClass?a.srcActiveClass:"",e=a.offsetX?parseInt(a.offsetX,10):0;a.offsetY&&parseInt(a.offsetY,10);var f=a.zIndex?a.zIndex:"100";a.removeExisting&&x$(".dropdown_menu").remove();b.addClass("dropdown_link");
c.addClass("xg_floating_container dropdown_menu");b.find(".downarrow")[0]||b.append('\x3cspan class\x3d"downarrow xg_sprite xg_sprite-caret-down xg_lightborder"\x3e\x26#9660;\x3c/span\x3e');0<x$("#xg_themebody").length?c.parent().is("#xg_themebody")||c.appendTo("#xg_themebody"):c.parent().is("body")||c.appendTo("body");c.hide();var g=function(h){c[0].timer&&(clearTimeout(c[0].timer),c[0].timer=null);if(!c.is(":visible")){x$(".dropdown_menu").hide();var k=b.offset();b.addClass(d);c.css({"z-index":f,
position:"absolute",top:k.top+b.outerHeight()+"px"});"right"==a.align?c.css({right:k.left+b.width()-e+"px"}):c.css({left:k.left+e+"px"});c.show();"hover"==h&&(c.mouseout(function(n){n.relatedTarget!=b[0]&&(this.timer=setTimeout(function(){c.hide();b.removeClass(d)},a.hideDelay))}),c.mouseover(function(n){this.timer&&(clearTimeout(this.timer),this.timer=null)}));if("click"==h){var l=!0,m=function(n){l?l=!1:(n=x$(n.target),n.hasClass("dropdown_menu")||n.parents(".dropdown_menu")[0]||(x$("body").unbind("click",
m),c.hide(),b.removeClass(d)))};x$("body").click(m)}}};a.showOnClick&&b.click(function(h){h.preventDefault();g("click")});a.showOnHover&&b.mouseover(function(h){g("hover")})},closeDropdownMenu:function(){x$("body").click()},applyStyleArgsToDialog:function(a,b,c){c=[];for(var d="position top left bottom right margin-top margin-left margin-bottom margin-right".split(" "),e=x$(".xg_floating_container",b),f=0;f<d.length;f++){var g=d[f];a[g]&&(c[g]="function"==typeof a[g]?a[g](e):a[g])}x$(b).css(c)},promptToJoin:function(a,
b,c,d,e,f,g){"function"==typeof b&&(c=b,b=!1);b?this.promptIsPending():this.joined||!a?c():(b="joinNow",f=f||"signUp",!1===g&&"signUp"===f?(e=!0,c=d,f=b="signIn"):e=e||{title:xg.shared.nls.text("signIn"),onClick:dojo.lang.hitch(this,function(){this.joined=!0;d()})},xg.shared.util.showPaywallIfPresent()||xg.shared.util.confirm({title:xg.shared.nls.text(b),bodyHtml:"\x3cp\x3e"+dojo.string.escape("html",a)+"\x3c/p\x3e",okButtonText:xg.shared.nls.text(f),onOk:dojo.lang.hitch(this,function(){this.joined=
!0;c()}),extraButton:e}))},showPaywallIfPresent:function(a){var b=a&&a.noClose,c=x$("#xj_extra_paywall"),d=x$("#xj_paywall"),e=function(){var f=d.html();if(f){var g="\x3ch2\x3e"+d.attr("data-title")+"\x3c/h2\x3e";b||(g='\x3ca class\x3d"xg_icon xg_icon-close xj_close" href\x3d"#"\x3e'+xg.shared.nls.html("close")+"\x3c/a\x3e"+g);f={bodyHtmlRaw:f,titleHtml:g,customDisplayClass:"xg_floating_paywall",noClose:b,noButtons:!0};d.remove();var h=xg.shared.util.alert(f);b||x$(h).find(".xj_close").click(function(k){k.preventDefault();
x$(h).remove();xg.shared.util.hideOverlay();x$("body").append(d)});return h}};return(a=function(){var f=c.html();if(f){var g="\x3ch2\x3e"+c.attr("data-title")+"\x3c/h2\x3e",h=c.attr("data-sign-in-url");h&&(g='\x3cdiv class\x3d"dy-right sign-in"\x3e\x3ch2\x3e'+xg.shared.nls.html("alreadyMemberSignIn",' href\x3d"'+h+'"')+"\x3c/h2\x3e\x3c/div\x3e"+g);f={bodyHtmlRaw:f,titleHtml:g,wideDisplay:!0,customDisplayClass:"xg_prepaywall",noClose:b,noButtons:!0};c.remove();var k=xg.shared.util.alert(f);x$(k).find(".xj_continue").click(function(l){x$(k).remove();
x$("body").append(c);e()});b?x$(k).find(".xj_close").remove():x$(k).find(".xj_close").click(function(l){l.preventDefault();x$(k).remove();xg.shared.util.hideOverlay();x$("body").append(c)});return k}}())?a:e()},promptIsPending:function(){xg.shared.util.alert({title:xg.shared.nls.text("pendingPromptTitle"),bodyHtml:"\x3cp\x3e"+xg.shared.nls.html("youCanDoThis")+"\x3c/p\x3e"})},selectOnClick:function(a){dojo.event.connect(a,"onfocus",function(c){dojo.html.selectInputText(a)});dojo.event.connect(a,"onclick",
function(c){dojo.html.selectInputText(a)});var b=a.value;dojo.event.connect(a,"onkeyup",function(c){dojo.html.selectInputText(a);a.value=b})},preventEnterFromSubmittingForm:function(a,b){b||=function(){};dojo.event.connect(a,"onkeydown",function(c){13==c.keyCode&&(dojo.event.browser.stopEvent(c),b())})},setPlaceholder:function(a,b){""==a.value&&(a.value=b,dojo.event.connect(a,"onfocus",function(c){a.value==b&&(a.value="")}),dojo.event.connect(a,"onblur",function(c){""==a.value&&(a.value=b)}),dojo.event.connect(a.form,
"onsubmit",function(c){a.value==b&&(a.value="")}))},createCsrfTokenHiddenInput:function(){var a=document.createElement("input");a.type="hidden";a.name="xg_token";a.value=xg.token;return a},crc32:function(a){var b=-1;for(var c=0;c<a.length;c++){var d=(b^a.charCodeAt(c))&255;d="0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*
d,8);b=b>>>8^d}b^=-1;0>b&&(b+=Math.pow(2,32));return b},cdn:function(a,b){if(xg.useMultiCdn){var c=a.match(/^https?:\/\/([^\/]+)([^?]+)?/);if(c&&1<c.length){fullHost=c[1];var d=fullHost.split(".")[0]}else d=xg.cdnDefaultPolicyHost;var e=!1;c=c&&2<c.length?c[2]:a;var f=c.match(/\.([^\/.]+)$/);f&&1<f.length&&(e=f[1]);f=[];if(d in xg.cdnPolicy)for(var g in xg.cdnPolicy[d]){var h=xg.cdnPolicy[d][g];if(e&&"ext"==g&&dojo.lang.inArray(h[0],e)){f=h[1];break}else if("type"!=g&&"default"==g){f=h;break}}else f.push(xg.cdnHost);
d=f.length;d=1<d?f[this.crc32(c)%d]:f[0];d="https:"==window.location.protocol&&a.match(/^http?:\/\//)?a.replace(/^http?:\/\/[^\/]+/,"https://"+d):"http:"==window.location.protocol&&a.match(/^https?:\/\//)?a.replace(/^https?:\/\/[^\/]+/,"http://"+d):window.location.protocol+"//"+d+a;d=d.replace(/\/xn_resources\/widgets/,"/"+xg.staticRoot+"/widgets");d=d.replace(/\/xn_resources\//,"/"+ning.CurrentApp.id+"/")}else d=a.replace(/.*\/xn_resources\/widgets(.*)/,(xg.cdnHost?"http://"+xg.cdnHost:xg.cdn)+"/"+
xg.staticRoot+"/widgets$1"),d=d.replace(/.*\/xn_resources(.*)/,(xg.cdnHost?"http://"+xg.cdnHost:xg.cdn)+"/"+ning.CurrentApp.id+"$1");a!==d&&!1!==b&&(d=this.addParameter(d,"xn_version",xg.version));return d},getParameter:function(a,b){a=(a+"").split("?",2);if(a[1]){a=a[1].split("\x26");for(var c=0;c<a.length;c++){var d=a[c].split("\x3d",2);if(d[0]==b)return d[1]}}return null},removeParameter:function(a,b){a+="";var c=a.split("?",2);if(c[1]){a=c[1].split("\x26");for(var d=[],e=0;e<a.length;e++)a[e].split("\x3d",
2)[0]!=b&&d.push(a[e]);return 0<d.length?(c[1]=d.join("\x26"),c.join("?")):c[0]}return a},addParameter:function(a,b,c){a=xg.shared.util.removeParameter(a,b);var d=-1<a.indexOf("?")?"\x26":"?";return a+d+encodeURIComponent(b)+"\x3d"+encodeURIComponent(c)},addParameterString:function(a,b){a+="";var c=-1<a.indexOf("?")?"\x26":"?";return a+c+b},parseFormattedNumber:function(a){return a?(a=a.replace(/\D+/g,""),parseInt(a,10)):NaN},parseFormattedFloat:function(a,b){return""!==a?(b||(b=xg.num_decimal_sep),
a=a.replace(new RegExp("[^0-9\\-\\"+b+"]+","g"),"").replace(b,"."),parseFloat(a)):NaN},roundFloat:function(a,b){if(NaN===parseFloat(a))return NaN;NaN===parseInt(b,10)&&(b=0);return Math.round(a*Math.pow(10,b))/Math.pow(10,b)},formatNumber:function(a,b){b=b||xg.num_thousand_sep||",";if(1E3>a&&-1E3<a)return a+"";var c=0>a;a=Math.abs(a)+"";var d=a.length,e=(3-d%3)%3,f="";for(i=0;i<d;i++)f+=a.charAt(i),e=(e+1)%3,0==e&&i<d-1&&(f+=b);return c?"-"+f:f},formatFloat:function(a,b,c,d){b=b||xg.num_decimal_sep||
".";c=c||xg.num_thousand_sep||",";a=(""+a).split(".",2);var e=parseInt(a[0]);a=1<a.length?a[1]:"0";c=xg.shared.util.formatNumber(e,c);void 0===d?b+=a:0===d?b="":(e=d-a.length,0<e&&(a+=Array(e+1).join("0")),b=b+""+a.substr(0,d));return c+""+b},createQuiescenceTimer:function(a,b){var c=0;return{trigger:function(){c++;var d=c;window.setTimeout(function(){d==c&&b()},a)},cancel:function(){c++}}},setCookie:function(a,b,c,d){var e=null;if(c){var f=new Date;e=new Date;e.setTime(f.getTime()+864E5*c)}document.cookie=
encodeURIComponent(a)+"\x3d"+encodeURIComponent(b)+"; path\x3d/"+(e?"; expires\x3d"+e.toGMTString():"")+(d?"; domain\x3d"+d:"")},getCookie:function(a){var b=document.cookie.indexOf(a+"\x3d"),c=b+a.length+1;if(!b&&a!=document.cookie.substring(0,a.length)||-1==b)return null;a=document.cookie.indexOf(";",c);-1==a&&(a=document.cookie.length);return decodeURIComponent(document.cookie.substring(c,a))},addHint:function(a,b){a=x$(a);""==a.attr("value")&&a.attr("value",b).addClass("hint");a.focus(function(){this.value==
b&&x$(this).attr("value","").removeClass("hint")}).blur(function(){""==this.value&&x$(this).attr("value",b).addClass("hint")})},addHints:function(a,b,c){b=b||!1;c=c||"";x$(a).each(function(){xg.shared.util.addHint(this,b?x$(this).attr("_hint"):c)})},setMaxLengthWithCount:function(a,b,c,d){if(a&&b){d||={};var e="enforceMaxLength"in d?d.enforceMaxLength:!1,f="negativeCountClass"in d?d.negativeCountClass:"length-exceeded",g="onNegative"in d&&"function"==typeof d.onNegative?d.onNegative:!1,h="onNonNegative"in
d&&"function"==typeof d.onNonNegative?d.onNonNegative:!1,k="neverHideCount"in d&&d.neverHideCount;x$(a).bind("keyup keypress blur cut paste change",function(l){var m=l.which||l.keyCode;e&&x$(a).val().length>=c&&8!=m&&l.preventDefault();x$(b).attr("_noUpdate")||(m=x$(a).val().length,e&&m>c&&(x$(a).val(x$(a).val().substr(0,c)),m=c),0<f.length&&(m>c?x$(b).addClass(f):x$(b).removeClass(f)),l=parseInt(x$(b).html(),10),m=c-m,0<=l&&0>m&&g?g.call():0>l&&0<=m&&h&&h.call(),x$(b).text(d.showCharsLabel?xg.shared.nls.text("nChars",
m):m))});x$(a).bind("focus",function(l){x$(b).css("visibility","visible")});x$(a).bind("blur",function(l){x$(a).val().length<c&&!k&&x$(b).css("visibility","hidden")})}},postSynchronously:function(a,b,c){b=b||{};b.xg_token=xg.token;a=x$('\x3cform method\x3d"post"\x3e\x3c/form\x3e').attr("action",a);c&&a.attr("target",c);for(name in b)a.append(x$('\x3cinput type\x3d"hidden"/\x3e').attr("name",name).attr("value",b[name]));xg.append(a[0]);a[0].submit()},track:function(a,b,c,d,e,f){xn.track.pageView(10,
a+"-"+b+"-"+c+(d?"-"+d:""),e,{},f)},clickTrack:function(){},redirectToUrl:function(a){"#"!=a&&(window.location=a)},closest:function(a,b){for(;1<=a.length&&!a.is(b);)a=a.parent();return a},consoleLog:function(a){window.console&&console.log&&console.log(a)},getModule:function(a){return x$(a).parents(".xg_module")[0]},extractModuleName:function(a){return a&&x$(a).attr("data-module_name")?x$(a).attr("data-module_name"):"other"},wellFormedJSON:function(a,b){a=JSON.stringify(a);return b?a.replace(/[\u007f-\uffff]/g,
function(c){return"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)}):a}});dojo.hostenv.findModule("xg.index.i18n",!1)||(dojo.provide("xg.index.i18n"),dojo.lang.mixin(xg.index.i18n,{html:function(b){return this.text.apply(this,arguments).replace(/ & /g," \x26amp; ")},text:function(b){var a=this[b]?this[b]:b,c;if("function"==typeof a){var d=1;for(c=[];d<arguments.length;d++)c[d-1]=arguments[d];return a.apply(this,c)}if("object"==typeof a){1<arguments.length&&a[arguments[1]]?a=a[arguments[1]]:(1<arguments.length&&(d=arguments[1]),c=xg.shared.nls.choosePluralizationForm.call(this,
d),a=a[c]);if(!a)return window.console&&console.log&&console.log('Message not found for string "'+b+'" pluralization form "'+c+'"'),"";arguments[0]=a}else arguments[0]=a;return this.sprintf.apply(this,arguments)},sprintf:function(){for(var b=arguments[0],a=1;a<arguments.length;a++)b=b.replace(/%s/,arguments[a]),b=b.replace(new RegExp("%"+a+"\\$s","g"),arguments[a]);return b}}));dojo.hostenv.findModule("xg.shared.messagecatalogs.en_US",!1)||(dojo.provide("xg.shared.messagecatalogs.en_US"),dojo.evalObjPath("xg.feed.nls",!0),dojo.lang.mixin(xg.feed.nls,xg.index.i18n,{edit:"Edit",title:"Title:",feedUrl:"URL:",show:"Show:",titles:"Titles Only",titlesAndDescriptions:"Detail View",display:"Display",cancel:"Cancel",save:"Save",loading:"Loading\u2026",items:"items"}),dojo.evalObjPath("xg.chat.nls",!0),dojo.lang.mixin(xg.chat.nls,xg.index.i18n,{clearMessages:"Clear Messages",thisWillClearAllMessages:"This will clear all of the messages from your view. %1$s will still see the messages.",
clearMainRoomMessages:"Clear Main Room Messages",thisWillDeleteMainRoomMessages:"This will delete all Main Room messages for everyone.",clearChatHistory:"Clear chat history",me:"Me",connectedToChat:"Connected to chat",connecting:"Connecting\u2026",chooseLengthOfSuspension:"Choose the length of the suspension. Note that previous chat messages will not be removed.",youAreDisconnected:"You are disconnected from chat. \x3ca %1$s\x3eGo online\x3c/a\x3e.",youWereSuspendedMinutes:{f1:"You were suspended from chat. You can reconnect in 1 minute.",
f2:"You were suspended from chat. You can reconnect in %1$s minutes."},youWereSuspendedHours:{f1:"You were suspended from chat. You can reconnect in 1 hour.",f2:"You were suspended from chat. You can reconnect in %1$s hours."},youWereSuspendedByAdminMinutes:{f1:"You were suspended from chat by an administrator. You may reconnect in 1 minute.",f2:"You were suspended from chat by an administrator. You may reconnect in %1$s minutes."},youWereSuspendedByAdminHours:{f1:"You were suspended from chat by an administrator. You may reconnect in 1 hour.",
f2:"You were suspended from chat by an administrator. You may reconnect in %1$s hours."},suspensionLength:"Suspension length:",fifteenMinutes:"15 minutes",oneHour:"1 hour",twoHours:"2 hours",fourHours:"4 hours",twentyFourHours:"24 hours",yesterday:"Yesterday",suspendFromChat:"Suspend from chat",suspendedFromChat:"Suspended from chat",suspend:"Suspend",viewProfile:"View Profile",startChat:"Start Chat",viewChat:"View Chat",suspendFromChatTitleCase:"Suspend From Chat",ignore:"Ignore",stopIgnoring:"Stop Ignoring",
disconnected:"Disconnected (%1$s online)",disconnectedFull:"Disconnected (Full)",membersOnline:"Members Online (%1$s)",chatIsFullTitle:"Chat is full",chatIsFull:"The %1$s chat is full. Check back soon.",userHasDisconnected:"%1$s has disconnected and can't receive instant messages.",youAreIgnoringUser:'You are ignoring %1$s.\x3cbr/\x3e \x3ca href\x3d"#"\x3eStop ignoring them\x3c/a\x3e?',ignoreLimitReached:"Ignore limit reached",youAreCurrentlyIgnoringMaxMembers:"You are currently ignoring messages from %1$s members. This member will be ignored in this session only. To add another member to your list of ignored members, you will need to first remove one.",
deleteMessage:"Delete",deleteMessageAndSuspend:"Delete and suspend",postDeleted:"Post deleted",mainRoom:"Main Room",titlebarUserSays:"%1$s says\u2026"}),dojo.evalObjPath("xg.opensocial.nls",!0),dojo.lang.mixin(xg.opensocial.nls,xg.index.i18n,{edit:"Edit",title:"Title:",untitled:"Untitled",appUrl:"URL:",cancel:"Cancel",save:"Save",removeBox:"Remove Box",removeBoxText:function(a){return'\x3cp\x3eAre you sure you want to remove the "'+a+"\" box from My Page?\x3c/p\x3e\x3cp\x3eYou'll still be able to access this App from My Apps.\x3c/p\x3e"},
removeApplication:"Remove App",removeApplicationText:"Are you sure you want to remove this App? It will no longer be accessible on your My Apps Page.",removeApplicationNetwork:"Remove Ning App",removeApplicationTextNetwork:"Are you sure you want to remove this Ning App? It will no longer be accessible on your Ning Network.",removeBoxAndRemoveApplication:"Remove Box / Remove App",removeBoxAndRemoveApplicationHelp:"\x3cp\x3e'Remove Box' will remove this App box from your profile page only.\x3c/p\x3e\x3cp\x3e'Remove App' will remove the App from your profile page and My Apps list.\x3c/p\x3e",
allowSendAlerts:"Send alerts to me and my friends",allowSendAlertsOnMain:"Send alerts to members",canAddActivities:"Add updates to Latest Activity",canAddActivitiesOnMain:"Add Updates to Latest Activity",applicationSettingsOnMain:"%1$s Settings",allowThisApplicationToOnMain:"Allow %1$s to:",addApplication:"Add App",addNingApp:"Add Ning App",yourApplicationIsBeingAdded:"Your App is being added.",yourNingAppIsBeingAdded:"Your Ning App is being added.",yourApplicationIsBeingRemoved:"Your App is being removed.",
onlyEmailMsgSupported:"Only EMAIL message type is supported",msgExpectedToContain:"Message is expected to contain all fields: type, title and body",msgObjectExpected:"Message object expected",recipientsShdBeStringOrArray:"Recipients can only be a string (comma-separated list is ok) or an Array",recipientsShdBeSpecified:"Recipients should be specified and can not be empty",unauthorizedSender:"Unauthorized Sender: only logged-in members can send messages",unauthorizedRecipients:"Unauthorized recipients specified to send mail to",
rateLimitExceeded:"Rate limit exceeded",operationCancelled:"Operation cancelled",youAreAboutToAdd:function(a,b){return"\x3cp\x3eYou are about to add \x3cstrong\x3e"+a+"\x3c/strong\x3e to your My Page. This App was developed by a third party.\x3c/p\x3e\x3cp\x3eBy clicking 'Add App' you agree to the \x3ca "+b+"\x3eApps Terms of Use\x3c/a\x3e.\x3c/p\x3e"},youAreAboutToAddNing:function(a,b){return"\x3cp\x3eYou are about to add \x3cstrong\x3e"+a+"\x3c/strong\x3e to your My Page. This App was developed by Ning.\x3c/p\x3e\x3cp\x3eBy clicking 'Add App' you agree to the \x3ca "+
b+"\x3eApps Terms of Use\x3c/a\x3e.\x3c/p\x3e"},youAreAboutToAddNetwork:function(a,b){return"\x3cp\x3eYou are about to add \x3cstrong\x3e"+a+"\x3c/strong\x3e to your Ning Network. This Ning App was developed by a third party.\x3c/p\x3e\x3cp\x3eBy adding this Ning App to your Ning Network you are agreeing to share your information as well as the information of the members of your Ning Network with the third party who developed it.\x3c/p\x3e\x3cp\x3eBy clicking 'Add Ning App' you agree to the \x3ca "+
b+"\x3eApps Terms of Use\x3c/a\x3e.\x3c/p\x3e"},youAreAboutToAddNetworkNing:function(a,b){return"\x3cp\x3eYou are about to add \x3cstrong\x3e"+a+"\x3c/strong\x3e to your Ning Network. This Ning App was developed by Ning.\x3c/p\x3e\x3cp\x3eBy adding this Ning App to your Ning Network you are agreeing to share your information as well as the information of the members of your Ning Network with the third party who developed it.\x3c/p\x3e\x3cp\x3eBy clicking 'Add Ning App' you agree to the \x3ca "+b+
"\x3eApps Terms of Use\x3c/a\x3e.\x3c/p\x3e"},followingMessageWasSent:function(a,b,c){return"\x3cp\x3eFollowing message was sent to "+a+". \x3cblockquote\x3e\x3cstrong\x3e\x3cem\x3e"+b+"\x3c/em\x3e\x3c/strong\x3e\x3cbr/\x3e"+c+"\x3c/blockquote\x3e\x3c/p\x3e"},reviewIsTooLong:function(a,b){return"Your review is "+a+" characters long.  The maximum is "+b+"."},mustSupplyRating:"Please supply a rating along with your review.",mustSupplyReview:"Your review must include some text.",messageWasNotSent:function(a){return"\x3cp\x3eMessage was \x3cstrong\x3enot\x3c/strong\x3e sent because: \x3cstrong\x3e"+
a+"\x3c/strong\x3e."},settingIsDontSendMessage:'Message setting is set to "Don\'t send messages"',applicationSettings:"App Settings",messageSent:"Message Sent",messageNotSent:"Message Not Sent",allowThisApplicationTo:"Allow this App to:",updateSettings:"Save",isOnMyPage:"Add a box on My Apps Page",youNeedToAddEmailRecipient:"You need to add an email recipient.",yourMessageIsBeingSent:"Your message is being sent.",sendingLabel:"Sending...",deleteReview:"Delete Review",deleteReviewQ:"Delete review?",
replaceReview:"Replace Review",replaceReviewQ:"You have already added a review.  Would you like to replace the existing review?","delete":"Delete",thereHasBeenAnError:"There has been an error",whatsThis:"What's This?",hideThisApp:"Hide App from Directory",blacklistConfirmation:"This App will be hidden from the directory, and will be removed from all member profile pages.",addToProfilePages:"Display on members' My Apps pages",visibleToMembers:"Be visible to members on the Main Page",searchNingApps:"Search Ning Apps",
youveReachedMaxApps:"You've reached the maximum number of %1$s Apps you can add to your My Apps page.  Please \x3ca %2$s\x3eremove an App\x3c/a\x3e to add a new one.",maxNingAppsReached:"You've reached the maximum number of Ning Apps you can add to your Ning Network. Remove a Ning App to add a new one, or browse the \x3ca %1$s\x3eNing App Directory\x3c/a\x3e."}),dojo.evalObjPath("xg.opensocialapps.nls",!0),dojo.lang.mixin(xg.opensocialapps.nls,xg.index.i18n,{change:"Change",save:"Save",deleteApplication:"Delete Application",
deleteFeature:"Delete Feature",deleteApplicationText:"Are you sure you want to delete this application? It will automatically be removed for all users who added this application. Would you like to continue?",takeOffline:"Take Application Offline",takeOfflineText:"Are you sure you want to take this application offline? It will automatically be removed for all users who added this application. Would you like to continue?",dontRecommendApp:"Don't Recommend App",recommendApp:"Recommend App",staffPickApp:"Staff Pick App",
dontStaffPick:"Don't Staff Pick App",areYouSure:"Are you sure?"}),dojo.evalObjPath("xg.forum.nls",!0),dojo.lang.mixin(xg.forum.nls,xg.index.i18n,{items:"items",numberOfCharactersExceedsMaximum:function(a,b){return"The number of characters ("+a+") exceeds the maximum ("+b+")"},pleaseEnterFirstPost:"Please write the first post for the discussion",pleaseEnterTitle:"Please enter a title for the discussion",warnLostChanges:"Any text you've added to your discussion will be lost.",save:"Save",cancel:"Cancel",
yes:"Yes",no:"No",edit:"Edit",ok:"OK",deleteCategory:"Delete Category",discussionsWillBeDeleted:"The discussions in this category will be deleted.",whatDoWithDiscussions:"What would you like to do with the discussions in this category?",moveDiscussionsTo:"Move discussions to:",deleteDiscussions:"Delete discussions","delete":"Delete",deleteReply:"Delete Reply",deleteReplyQ:"Delete this reply?",deletingReplies:"Deleting Replies\u2026",doYouWantToRemoveReplies:"Do you also want to remove the replies to this comment?",
pleaseKeepWindowOpen:"Please keep this browser window open while processing continues. It may take a few minutes.",contributorSaid:function(a){return a+" said:"},display:"Display",from:"From",show:"Show",htmlCharacters:"HTML Characters",view:"View",discussions:"discussions",discussionsFromACategory:"Discussions from a category\u2026",MaxCategoryNotificationTitle:"Maximum limit reached",MaxCategoryNotificationMsg:"Sorry, you can create up to %s categories only."}),dojo.evalObjPath("xg.groups.nls",
!0),dojo.lang.mixin(xg.groups.nls,xg.index.i18n,{pleaseChooseAName:"Please choose a name for your group.",pleaseChooseAUrl:"Please choose a web address for your group.",urlCanContainOnlyLetters:"The web address can contain only letters and numbers (no spaces).",urlInvalid:"The group address is invalid \u2013 please choose another one.",descriptionTooLong:function(a,b){return"The length of your group's description ("+a+") exceeds the maximum ("+b+")"},nameTaken:"Our apologies - that name has already been taken. Please choose another name.",
urlTaken:"Our apologies - that web address has already been taken. Please choose another web address.",edit:"Edit",from:"From",show:"Show",groups:"groups",pleaseEnterName:"Please enter your name",pleaseEnterEmailAddress:"Please enter your email address",xIsNotValidEmailAddress:function(a){return a+" is not a valid email address"},save:"Save",cancel:"Cancel"}),dojo.evalObjPath("xg.html.nls",!0),dojo.lang.mixin(xg.html.nls,xg.index.i18n,{contentsTooLong:function(a){return"You've exceeded the maximum number of characters this Text Box can support. Please remove "+
a+" characters."},tooManyEmbeds:function(a,b,c){return"You can only place "+a+" widget"+(1<a?"s":"")+" in a Text Box. Please remove "+b+" widget"+(1<b?"s":"")+". \x3ca "+c+"\x3eLearn more\x3c/a\x3e."},edit:"Edit",wereSorry:"We're Sorry",save:"Save",cancel:"Cancel",saving:"Saving\u2026"}),dojo.evalObjPath("xg.index.nls",!0),dojo.lang.mixin(xg.index.nls,xg.index.i18n,{customizeLikeButtonSettings:"Customize Like Button Settings",chooseWhichFeatures:"Choose which features members can Like below:",customizeByFeature:"Customize by Feature",
chooseWhichFeaturesWill:"Choose which features will display the share links you\u2019ve chosen:",memberPreview:"Member Preview",peopleWhoLikedThis:"People who liked this",close:"Close",onlineProper:"Online",disable:"Disable",clickToEnlarge:"Click to enlarge",disableSignInSignUpWithX:function(a){return"Disable Sign in/Sign up with "+a},NMembersHaveConnectedOnXWithY:function(a,b,c){return a+" "+(1<a?"members have connected their profiles on ":"member has connected their profile on ")+b+" to their "+
c+" account, and may no longer be able to sign in."},thereWasAnErrorUpdatingFacebook:"There was an error saving your Facebook credentials. Please try again.",thereWasAnErrorUpdatingTwitter:"There was an error saving your Twitter credentials. Please try again.",thereWasAnErrorUpdatingGoogle:"There was an error saving your Google credentials. Please try again.",thereWasAnErrorUpdatingLinkedIn:"There was an error saving your LinkedIn credentials. Please try again.",linkedInThrottleReached:"Sorry, only %1$s LinkedIn invitations can be sent per day. The following connections did not receive invitations: %2$s",
linkedInThrottleSelected:"Sorry, you can only send up to %1$s LinkedIn invitations per day.",pleaseEnterAnApplicationIDToContinue:"Please enter an Application ID to continue",pleaseEnterAnApplicationSecretToContinue:"Please enter an Application Secret to continue",pleaseEnterAnIDToContinue:"Please enter an ID to continue",pleaseEnterAKeyToContinue:"Please enter a Key to continue",pleaseEnterASecretToContinue:"Please enter a Secret to continue",enableSocialSignIn:"Enable Social Sign-In",makeItEvenEasier:"Make it even easier for your members to sign up and sign in by enabling Social Sign-In. Allow members to access your Ning network by using:",
facebook:"Facebook",google:"Google",yahoo:"Yahoo",twitter:"Twitter",readMoreOrGet:"\x3ca %1$s\x3eRead more\x3c/a\x3e or get started now.",getStarted:"Get Started",addMedia:"Add Media",pasteEmbedCodeFrom:"Paste embed code from Youtube, etc. below:",insertPlainText:"Insert Plain Text",pasteTextFromWord:"Paste text from Word, a website, etc. below to remove all formatting:",addLink:"Add Link",editLink:"Edit Link",linkText:"Link Text",linkUrl:"Link Url",openInColon:"Open in:",sameWindow:"Same Window",
newWindow:"New Window",clickHereToDownload:"Click here to download",anErrorHasOccurred:"An error has occurred. Please try again.",exporting:"Exporting\u2026",exportingXofY:function(a,b){return"Exporting "+a+" of "+b+"\u2026"},onlyNCMayExport:"Only the network creator may export content.",contentExportIsEmpty:"No %1$s were downloaded because your Ning Network does not have any %1$s.",setUp:"Set Up",dismiss:"Dismiss",remindLater:"Remind me later",connectedAsName:"Connected as %1$s.",creatingFacebookApp:"Creating Facebook App\u2026",
wereSorryExclamation:"We\u2019re Sorry!",enterLinkUrl:"Enter a link URL:",sent:"Sent",messageHasBeenSent:"The message has been sent to %1$s.",pleaseEnterYourFullName:"Please enter your full name.",pleaseEnterAValidEmailAddress:"Please enter a valid email address.",pleaseChooseACountry:"Please choose a country.",pleaseChooseACategoryForYourNetwork:"Please choose a category for your network.",richText:"Rich Text",source:"Source",htmlSource:"HTML",toggleBold:"Toggle Bold",toggleItalic:"Toggle Italic",
toggleUnderline:"Toggle Underline",justifyLeft:"Justify Left",justifyCenter:"Justify Center",justifyRight:"Justify Right",toggleStrikethrough:"Toggle Strikethrough",indentLeft:"Indent Left",indentRight:"Indent Right",insertHorizontalRule:"Insert Horizontal Rule",insertOrderedList:"Insert Ordered List",insertUnorderedList:"Insert Unordered List",insertImage:"Insert Image",attachFile:"Attach File",createLink:"Create Link",removeLink:"Remove Link",removeFormatting:"Remove Formatting",warnLostChanges:"Any text you've added to your broadcast message will be lost.",
warnLostTermsChanges:"Any text you've changed in your custom Terms of Service will be lost.",xxSmall:"XX-Small",xSmall:"X-Small",small:"Small",medium:"Medium",large:"Large",xLarge:"X-Large",xxLarge:"XX-Large",error:"Error",processingFailed:"Sorry, processing failed. Please try again later.",saveChanges:"Save Changes?",doYouWantToSaveChanges:"Do you want to save your changes?",discard:"Discard",onlyNWords:"Only %1$s words are allowed in the Keywords field.",youCannotEnter:"You cannot enter more than %1$s characters",
messageCannotBeMore:"Your message cannot be more than %1$s characters.",pleaseEnterMessage:"Please enter a message body.",subjectCannotBeMore:"Your subject cannot be more than %1$s characters.",pleaseEnterSubject:"Please enter a subject.",warning:"Warning",customCssWarning:"Any CSS you've added on the Advanced tab will be removed if you change themes.",yes:"Yes",edit:"Edit",save:"Save",done:"Done",badgeSize:"Badge Size",size:"Size",changesSaved:"Your changes have been successfully saved.",tweetsFromThisNetwork:"Tweets from this network will now indicate they are from the Application Name you specified.",
connectToTwitter:"Connect to Twitter",connect:"Connect",toPostUpdates:"To post updates on Twitter, you must connect your profile on %s to Twitter.",postToTwitter:"Post to Twitter",postHasBeenSent:"Your post has been sent!",postTooLong:"Your post cannot be over %1$s characters",postCannotBeEmpty:"You need to add text to post an update.",problemConnectingTwitter:"Our apologies - there was a problem connecting to Twitter. Please try again later.",post:"Post",overwriteSitemap:"Automatically updating your sitemap will overwrite your current one.",
pleaseAddProfilePhoto:"Please add a profile photo.",yourMessageIsBeingSent:"Your message is being sent.",thankYouQuestionSent:"Thank you, your question has been sent to the administrator of %1$s.",youNeedToAddEmailRecipient:"You need to add an email recipient.",selectOrPaste:"You need to select a video or paste the 'embed' code",selectOrPasteMusic:"You need to select a song or paste the URL",cannotKeepFiles:"You will have to choose your files again if you wish to view more options. Would you like to continue?",
pleaseSelectPhotoToUpload:"Please select a photo to upload.",addingLabel:"Adding...",sendingLabel:"Sending...",addingInstructions:"Please leave this window open while your content is being added.",looksLikeNotImage:"One or more files do not seem to be in .jpg, .gif, or .png format. Would you like to try uploading anyway?",looksLikeNotVideo:"The file you selected does not seem to be in .mov, .mpg, .mp4, .avi, .3gp, .3g2 or .wmv format. Would you like to try uploading anyway?",looksLikeNotMusic:"The file you selected does not seem to be in .mp3 format. Would you like to try uploading anyway?",
showingNFriends:{f1:'Showing 1 friend matching %2$s. \x3ca href\x3d"#"\x3eShow everyone\x3c/a\x3e',f2:'Showing %1$s friends matching "%2$s". \x3ca href\x3d"#"\x3eShow everyone\x3c/a\x3e'},showingNFollowers:{f1:'Showing 1 follower matching %2$s. \x3ca href\x3d"#"\x3eShow everyone\x3c/a\x3e',f2:'Showing %1$s followers matching "%2$s". \x3ca href\x3d"#"\x3eShow everyone\x3c/a\x3e'},sendInvitation:"Send Invitation",sendMessage:"Send Message",latestActivityShowsAllTheActivityHappening:"Latest Activity shows all the activity happening on your Ning Network right now. Still want to remove it?",
invite:"Invite",sendInvitationToNFriends:{f1:"Send invitation to 1 friend?",f2:"Send invitation to %s friends?"},sendMessageToNFriends:{f1:"Send message to 1 friend?",f2:"Send message to %s friends?"},nFriendsSelected:{f1:"1 friend selected",f2:"%s friends selected"},nFollowersSelected:{f1:"1 follower selected",f2:"%s followers selected"},nInvitesLeftToday:{f1:"1 invite left today",f2:"%s invites left today"},nInvitesLeftThisMonth:{f1:"1 invite left this month",f2:"%s invites left this month"},nSharesLeftToday:{f1:"1 share left today",
f2:"%s shares left today"},nSharesLeftThisMonth:{f1:"1 share left this month",f2:"%s shares left this month"},yourMessageOptional:"\x3clabel\x3eYour Message\x3c/label\x3e (Optional)",subjectIsTooLong:function(a){return"Your subject is too long. Please use "+a+" characters or less."},messageIsTooLong:function(a){return"Your message is too long. Please use "+a+" characters or less."},tooManyInvites:"Too Many Invitations",onlyFirstNInvitesSent:{f1:"You only have 1 invite remaining \u2014 this will send an invitation to the first recipient.",
f2:"You only have %1$s invites remaining \u2014 this will send invitations to the first %1$s recipients."},tooManyPeopleSelected:"Too Many People Selected",invitedXButHaveYleft:"Sorry! You tried to send %1$s invites. That would put you over the limit of %2$s invitations for the month.",upgradeToMforNinvites:"\x3ca %1$s\x3e\x3cb\x3eUpgrade to %2$s\x3c/b\x3e\x3c/a\x3e to invite up to %3$s people every month.",pleaseChoosePeople:"Please choose some people to invite.",noPeopleSelected:"No People Selected",
pleaseEnterEmailAddress:"Please enter your email address.",pleaseEnterPassword:function(a){return"Please enter your password for "+a+"."},sorryWeDoNotSupport:"Sorry, we don't support the web address book for your email address. Try clicking 'Address Book Application' below to use addresses from your computer.",pleaseSelectSecondPart:"Please select the second part of your email address, e.g., gmail.com.",atSymbolNotAllowed:"Please ensure that the @ symbol is not in the first part of the email address.",
resetTextQ:"Reset Text?",resetTextToOriginalVersion:"Are you sure you wish to reset all of your text to the original version? All of your changes will be lost.",changeQuestionsToPublic:"Change questions to public?",changingPrivateQuestionsToPublic:"Changing private questions to public will expose all members' answers. Are you sure?",saveProfileQuestions:"Save Profile Questions?",areYouSureYouWantToDeleteQuestions:"Deleting profile questions or modifying answer types will remove the existing answers from member profiles. Do you want to continue?",
pleaseEnterASiteName:"Please enter a name for the Ning Network, e.g. Paris Cyclists",pleaseEnterShorterSiteName:"Please enter a shorter name (max 64 characters)",thereIsAProblem:"There is a problem with your information",basicTheme:"Basic Theme",allOptions:"All Options",addYourOwnCss:"Advanced",canBeSelectedOnlyOnce:function(a){return a+" can be selected as an 'Answer Type' only once"},pleaseEnterTheChoicesFor:function(a){return'Please enter the choices for "'+a+'" e.g. Hiking, Reading, Shopping'},
pleaseEnterTheChoices:"Please enter the choices e.g. Hiking, Reading, Shopping",bannedPasswordStrings:function(){return"password|passphrase|passwd|pass word|pass-word|pass phrase|pass-phrase"},wereSorry:"We're Sorry",youCantSendMessageUntilFriend:"You can't send a message until %s accepts your friend request.",pleaseRemoveQuestionsAskingForPasswords:"Please remove questions asking for passwords from your members.",upToTenProfileQuestions:"You can only select up to 10 profile questions for advanced search. Uncheck other questions to change which questions are added to advanced search.",
upToNProfileQuestions:function(a){return"You can only have up to "+a+" profile questions."},email:"email",subject:"Subject",message:"Message",send:"Send",cancel:"Cancel",areYouSureYouWant:"Are you sure you want to do this?",processing:"Processing\u2026",pleaseKeepWindowOpen:"Please keep this browser window open while processing continues. It may take a few minutes.",complete:"Complete!",processIsComplete:"Process is complete.",ok:"OK",body:"Body",pleaseEnterASubject:"Please enter a subject",pleaseEnterAMessage:"Please enter a message",
pleaseChooseFriends:"Please select some friends before sending your message.",thereHasBeenAnError:"There has been an error",thereWasAProblem:"There was a problem adding your content. Please try again later.",fileNotFound:"File not found",pleaseProvideADescription:"Please provide a description",pleaseEnterSomeFeedback:"Please enter some feedback",title:"Title:",copyHtmlCode:"Copy HTML Code",change:"Change",changing:"Changing...",htmlNotAllowed:"HTML not allowed",noFriendsFound:"No friends found that match your search.",
noFriends:"No friends found.",noFollowers:"No followers found.",yourSubject:"Your Subject",yourMessage:"Your Message",pleaseEnterFbApiKey:"Please enter your Facebook API key.",pleaseEnterValidFbApiKey:"Please enter a valid Facebook API key.",pleaseEnterFbApiSecret:"Please enter your Facebook API secret.",pleaseEnterValidFbApiSecret:"Please enter a valid Facebook API secret.",pleaseEnterFbTabName:"Please enter a name for your Facebook application tab.",pleaseEnterValidFbTabName:function(a){return"Please enter a shorter name for your Facebook application tab.  The maximum length is "+
a+" character"+(1==a?"":"s")+"."},newTab:"New Tab",resetToDefaults:"Reset to Defaults",youNaviWillbeRestored:"Your navigation tabs will be restored to the default setting.",hiddenWarningTop:"This tab has not been added to your Ning Network. There is a limit of %1$s top-level tabs. Please remove top-level tabs or make top-level tabs into sub-tabs. %2$s",hiddenWarningSub:function(a){return"This sub-tab has not been added to your Ning Network. There is a limit of "+a+" sub-tabs per top-level tab. Please remove sub-tabs or make sub-tabs into top-level tabs."},
removeConfirm:"Removing this tab will remove its sub-tabs as well. Click OK to continue.",no:"No",youMustSpecifyTabName:"You must specify a tab name",networkPrivacyChangeTitle:"Change Privacy",confirmNetworkPrivacyChange:"Are you sure you want to change the privacy settings of your Ning Network?",orWriteYourOwnMessage:"\u2026or write your own message",youCanOnlyAddUpToNContentItems:"You can only add %1$s content items.",add:"Add",addAContentItem:"Add a Content Item",enterTheUrlOfASpecific:"Enter the URL of a specific discussion, forum category, video, photo, note, event, page or group for this role to administer:",
unsupportedUrl:"Unsupported URL",removeUserFromRole:"Remove Member from Role?",areYouSureRemoveUser:"Are you sure you want to remove %1$s from this role?",areYouSureRemoveInvite:"Are you sure you want to cancel the invitations sent to the selected member(s)?",noContentItemFoundAtUrl:"No content item was found at that URL.",totalColonN:"Total: %1$s",fileIsTooLarge:"This file is too large.",fileIsZeroBytes:"This file is 0 bytes.",fileTypeIsInvalid:"This file type is invalid.",reachedUploadLimit:"You have reached the upload limit.",
youHaveUnsavedChanges:"You have unsaved changes. Are you sure you want to navigate away?",selectedTooManyFiles:{f1:"You have selected too many files. You may select up to 1 file to upload at once.",f2:"You have selected too many files. You may select up to %s files to upload at once."},didNotSelectAnyFiles:"You did not select any files to upload.",sorryUploadsFailed:"Sorry uploads failed",failedToUploadFiles:"We tried to upload the file(s) you selected, but encountered errors. Please try again.",
uploadedFilesButErrors:"We have uploaded your files, but encountered errors with the following:",editDetailsForSuccessfulUploads:"You may want to go back and try these files again later. You will now be taken to a page to edit your successfully uploaded files.",overCustomCssSizeLimit:"Hey There! You are %1$s characters over the maximum number of CSS characters that this Ning Network can support and still be speedy. Reduce the size of your custom CSS or contact the \x3ca %2$s\x3eNing Help Center\x3c/a\x3e for assistance.",
careful:"Careful!",youreGettingCloseToTheMaximum:"You're getting close to the maximum of %1$s features you can add to your Main Page.",youveReachedTheMaximumNumberOfFeatures:"You've reached the maximum of %1$s features you can add to your Main Page.",youveExceededTheMaximumNumberOfEmbeds:"You've exceeded the maximum of %1$s widgets on your Main Page. Please remove %2$s of your %3$s widgets.",learnMoreAboutEmbeds:"\x3ca %1$s\x3eLearn more about how widgets can slow down your Main Page.\x3c/a\x3e",
justRemoveAFeature:"Just remove a feature to add something new.",withXFeaturesYouveExceeded:"With %1$s features, you've exceeded the maximum of %2$s features you can add to your Main Page.",justRemoveXFeatures:"Just remove %1$s features to add something new.",youveReachedTheMaximumNumberOfNingApps:"You've reached the maximum number of Ning Apps you can add to your Ning Network.  Remove a Ning App to add a new one.",frameBustingMsg:"If you're trying to set up your own domain for your Ning Network, please \x3ca %1$s\x3eclick here\x3c/a\x3e for more information on how to set it up properly. Or, \x3cstrong\x3e\x3ca %2$s\x3eclick here to go to the original site\x3c/a\x3e\x3c/strong\x3e.",
frameBustingMsgTitle:"We're sorry, this site can't be embedded in a frame.",memberPickerSearchSparseText:'There are no member with the name "%1$s".',memberPickerFriendsSparseText:"You haven't made any friends yet. Try viewing all members instead.",memberPickerSparseText:"There are no members to display",softBlockMessagingForComments:"You have exceeded the maximum number of posts allowed, and you cannot post a new comment right now. Please try again in a few hours.",softBlockMessagingForNewContent:"You have exceeded the maximum number of posts allowed, and you cannot post new content right now. Please try again in a few hours.",
showMore:"Show More",showLess:"Show Less",invalidCustomURL:'A Custom URL may not contain "?" or "."',theFileCouldNotBeDeleted:"The file could not be deleted.",theSplashPageCouldNotBeSet:"The splash page could not be set.",theSplashPageCouldNotBeCleared:"The splash page could not be cleared.",customizeLink:"Customize Link",deleteThisFile:"Are you sure you want to delete this file?",newHomepageVisit:"This file is now your homepage. To check it out, go to \x3ca %1$s\x3e%2$s\x3c/a\x3e",defaultHomepageRestored:"Your default homepage has been restored.",
addConsumer:"Create Key",renameConsumer:"Edit Key",deleteConsumer:"Revoke Key",revoke:"Revoke",deleteConsumerConfirm:"Are you sure you want to revoke this API key? Any members who are currently using %1$s will lose access to it.",pleaseEnterAName:"Please enter a name",parensXPerMonth:"(%1$s per month)",priceIsRequired:"Please enter a price between $%1$s and $%2$s",priceMustBeAtLeast:"Price must be at least $%1$s",priceMustBeNoMoreThan:"Price cannot be more than $%1$s",ratePlanAndPriceRequired:"Please select a rate plan and enter a price",
selectOneOrMoreMembers:"Please select one or more members",areYouSure:"Are you sure?",grantXFreeAccess:"Are you sure you want to grant %1$s free access to the selected users?",justAMoment:"Just a moment...",deleteImage:"Are you sure you want to delete this image?",lessErrorUnknown:"Unknown LESS compilation error. Please double check your LESS code and try again.",lessError:function(a){return"LESS compilation error: "+a+"."},lessErrorIndex:function(a,b){return"LESS compilation error: "+a+" at index "+
b+"."},lessErrorLine:function(a,b){return"LESS compilation error: "+a+" at line "+b+"."},lessErrorIndexLine:function(a,b,c){return"LESS compilation error: "+a+" at index "+b+" at line "+c+"."},characterLimitExceeded:function(a){return"The character limit of "+a+" has been exceeded."},lifetimeFreeMembership:"Lifetime free membership",willBeRequiredToPay:"Will be required to pay immediately",nMonthsFreeMembership:function(a){return 1==a?"1 month free membership":a+" months free membership"},importantPleaseConsider:"IMPORTANT: Please consider your selection carefully before you publish this paywall. This specific action is not reversible.",
onceYouPublishPaywall:"Once you publish this paywall you will not be able to reduce the length of free access granted. You will be able to extend additional free access to any individual member from your Member Comp tab.",memberCompSelectionColon:"Member Comp Selection: ",confirmMemberComp:"Confirm Member Comp",confirm:"Confirm",pleaseChooseALogoImage:"Please choose a logo image.",choiceXColonHtml:"\x3cstrong\x3eChoice %1$s:\x3c/strong\x3e %2$s",noChange:"No Change",weveStartedChanges:"We've started making these changes. Where there's a large number of them, we'll continue processing in the background and it may take a few minutes before they're complete.",
disableNativeSignIn:"Disable Native Sign In",disableSignIn:"Disable Sign In",leaveOneSignInOption:"You must leave at least one sign in option enabled so you can continue to access your network.",unblockEmailDomainFromSignUp:"Unblock email domain from sign up",deletingWillAllowSIgnUpUsingThoseEmailAddresses:"Deleting '%1$s' will allow members to sign up using those email addresses. Do you want to continue?",XIsNotAValidEmailDomainUseFollowingFormat:"'%1$s' is not a valid email domain. It should use the following format: @domain.com",
unblockIpAddressFromSignUp:"Unblocking IP address from sign up",deletingWillAllowSIgnUpUsingThatIpAddress:"Deleting '%1$s' will allow members to sign up using from that IP address. Do you want to continue?",XIsNotAValidIpAddressUseFollowingFormat:"'%1$s' is not a valid IP address. It should use the following format: 111.222.333.444",XIsAReservedIpCannotBeBlocked:"'%1$s' is a reserved IP address and cannot be blocked."}),dojo.evalObjPath("xg.music.nls",!0),dojo.lang.mixin(xg.music.nls,xg.index.i18n,
{play:"play",error:"Error",pleaseSelectTrackToUpload:"Please select a song to upload.",pleaseEnterTrackLink:"Please enter a song URL.",thereAreUnsavedChanges:"There are unsaved changes.",processingFailed:"Sorry, processing failed. Please try again later.",autoplay:"Autoplay",showPlaylist:"Show Playlist",playLabel:"Play",url:"URL",rssXspfOrM3u:"rss, xspf, or m3u",save:"Save",cancel:"Cancel",customizePlayerColors:"Customize Colors",edit:"Edit",shufflePlaylist:"Shuffle Playlist",fileIsNotAnMp3:"One of the files does not seem to be an MP3. Try uploading it anyway?",
entryNotAUrl:"One of the entries does not appear to be a URL. Make sure all entries start with \x3ckbd\x3ehttp://\x3c/kbd\x3e"}),dojo.evalObjPath("xg.page.nls",!0),dojo.lang.mixin(xg.page.nls,xg.index.i18n,{resetMetaTags:"Reset Meta Tags",resettingMetaTags:"Resetting your meta tags will erase any customizations you have made.",numberOfCharactersExceedsMaximum:function(a,b){return"The number of characters ("+a+") exceeds the maximum ("+b+")"},pleaseEnterContent:"Please enter the page content",pleaseEnterTitle:"Please enter a title for the page",
pleaseEnterAComment:"Please enter a comment",pleaseEnterAUrl:"Please enter a url for the page",save:"Save",cancel:"Cancel",edit:"Edit",close:"Close",displayPagePosts:"Display Page Posts",directory:"Directory",displayTab:"Display tab",addAnotherPage:"Add Another Page",tabText:"Tab text",urlDirectory:"URL directory",displayTabForPage:"Whether to display a tab for the page",tabTitle:"Tab Title",remove:"Remove",thereIsAProblem:"There is a problem with your information"}),dojo.evalObjPath("xg.photo.nls",
!0),dojo.lang.mixin(xg.photo.nls,xg.index.i18n,{random:"Random",loop:"Loop",untitled:"Untitled",photo:"Photo",photos:"Photos",edit:"Edit",photosFromAnAlbum:"Albums",show:"Show",rows:"rows",cancel:"Cancel",customizePlayerColors:"Customize Colors",save:"Save",numberOfCharactersExceedsMaximum:function(a,b){return"The number of characters ("+a+") exceeds the maximum ("+b+")"},pleaseSelectPhotoToUpload:"Please select a photo to upload.",importingNofMPhotos:function(a,b){return'Importing \x3cspan id\x3d"currentP"\x3e'+
a+"\x3c/span\x3e of "+b+" photos."},enterAlbumTitle:"Please enter a title for the album",enterPhotosTitle:"Please enter titles for the photos",starting:"Starting\u2026",done:"Done!",from:"From",display:"Display",takingYou:"Taking you to see your photos\u2026",anErrorOccurred:"Unfortunately an error occurred. Please report this issue using the link at the bottom of the page.",weCouldntFind:"We couldn't find any photos! Why don't you try one of the other options?",wereSorry:"We're Sorry",makeThisTheAlbumCover:"Make this the album cover",
thisIsTheAlbumCover:"This is the album cover"}),dojo.evalObjPath("xg.activity.nls",!0),dojo.lang.mixin(xg.activity.nls,xg.index.i18n,{edit:"Edit",show:"Show",events:"events",setWhatActivityGetsDisplayed:"Set what activity gets displayed",save:"Save",cancel:"Cancel",newItems:{f1:"1 new item",f2:"%s new items"},limitNewItems:"%1$s+ new items"}),dojo.evalObjPath("xg.profiles.nls",!0),dojo.lang.mixin(xg.profiles.nls,xg.index.i18n,{select:"Select:",uploadingElipsis:"Uploading\u2026",savingElipsis:"Saving\u2026",
loadingElipsis:"Loading\u2026",errorUploadingPhotoColon:"There was an error uploading your photo: %1$s",uploadAProfilePhoto:"Upload A Profile Photo",selectVisiblePhoto:"Select the visible region of your photo.",wereSorryExclamation:"We\u2019re Sorry!",problemOccurred:"A problem occurred. Please try again.",close:"Close",connectToTwitter:"Connect to Twitter",toPostStatus:"To post your Status updates on Twitter, you must connect your profile on %s to Twitter.",postToTwitter_step1:"A pop-up page will automatically open in order to authorize the Twitter widget to use your account.",
postToTwitter_step2:'Type your Username and Password and click the "Authorize app" button.',postToTwitter_step3:"After you have successfully signed in, a one time Pin code will be generated for you in order to use the Twitter widget.",postToTwitter_step4:"Type the Pin code that has been generated from the authorization process in the relevant field.",pinCode:"Pin code",addTwitterAccount:"Add Twitter Account",toConnectTwitterAccount:'To connect a new account to Twitter, sign out of Twitter, then click the "Connect" button below. Then, sign in with the credentials for the new account.',
connect:"Connect",youAreConnectedAsX:"You are connected as %s",youAreConnectedAsFanPage:"You are connected as the %s Facebook Page",ageMustBeAtLeast0:"Age must be at least zero",wereSorryProper:"We're Sorry",pleaseEnterSubject:"Please enter a subject.",messageIsTooLong:function(a){return"Your message is too long. Please use "+a+" characters or less."},comments:"comments",requestLimitExceeded:"Friend Request Limit Exceeded",removeFriendTitle:function(a){return"Remove "+a+" As Friend?"},removeFriendConfirm:function(a){return"Are you sure you want to remove "+
a+" as a friend?"},pleaseEnterValueForPost:"Please add some text to the body of the post",postTooLong:"Please limit your blog post to %1$s characters",edit:"Edit",selectCredits:"Please select how many credits you would like.",recentlyAdded:"Recently Added",featured:"Featured",iHaveRecentlyAdded:"I've Recently Added",fromTheSite:"From the Ning Network",cancel:"Cancel",save:"Save",loading:"Loading\u2026",renewMembership:"Renew Membership",pleaseEnterPostBody:"Please enter something for the post body",
pleaseEnterChatter:"Please enter something for your comment",warnLostChanges:"Any text you've added to your blog post will be lost.",letMeApproveChatters:"Let me approve comments before posting?",noPostChattersImmediately:"No \u2013 post comments immediately",yesApproveChattersFirst:"Yes \u2013 approve comments first",memberHasChosenToModerate:function(a){return a+" has chosen to moderate comments."},reallyDeleteThisPost:"Really delete this post?",commentWall:"Comment Wall",commentWallNComments:{f1:"Comment Wall (1 comment)",
f2:"Comment Wall (%s comments)"},statusTooLong:function(a){return"Your status cannot be over "+a+" characters."},statusCannotBeEmpty:"You need to add text to post an update.",errorUpdatingStatus:"An error occurred while updating your status. Please try again later.",statusHintTooLong:"Please limit your Status update prompt to be under %1$s characters.",youPostedY:"You posted '%1$s'",linkHasBeenPosted:"The link has been posted to Latest Activity",commentTooLong:"Your comment cannot be over %1$s characters.",
display:"Display",from:"From",show:"Show",rows:"rows",posts:"posts",htmlCharacters:"HTML Characters",networkError:"Error",wereSorry:"We're sorry, but we are unable to save your new layout at this time. This is likely due to a lost Internet connection. Please check your connection and try again.",returnToDefaultWarning:"This will move all features on your My Page back to the default settings. Would you like to proceed?",returnToDefaultThemeWarning:"This will reset your My Page theme to the network theme. Would you like to proceed?",
unableToCompleteAction:"Sorry, we were unable to complete your last action. Please try again later.",selectAtLeastOneMessage:"Sorry, you have to select at least one message to perform that action.",selectedSendersBlocked:{f1:"The selected sender has been blocked.",f2:"The selected senders have been blocked."},bulkConfirm_blockSender:"This will block the senders of the checked messages.",bulkConfirm_delete:"This will delete the checked messages.",sendingHeader:"Sending message",sendingLabel:"Sending ...",
messageSent:"Message Sent",yourMessageHasBeenSent:"Your message has been sent!",nameIsEmpty:"Please enter your name.",countryIsEmpty:"Please enter your country.",zipIsEmpty:"Please enter your zip code.",zipIsIncorrect:"Please enter a valid zip code.",locationIsEmpty:"Please enter your city/state.",birthdays:"birthdays",deleteMessage:"Are you sure you want to delete the selected message?",deleteMessages:function(a){return"Are you sure you want to delete the "+a+" selected messages?"},blockSender:"Are you sure you want to block the selected member?",
blockSenders:function(a){return"Are you sure you want to block the "+a+" selected members?"}}),dojo.evalObjPath("xg.shared.nls",!0),dojo.lang.mixin(xg.shared.nls,xg.index.i18n,{CONNECTED_TO_CHAT:"Connected to chat",MESSAGE_DELETED:"Message deleted",CHAT_DELETE:"Delete",BAN_USER_FROM_GROUP:"Ban this person from the group",LOADING_MORE_MESSAGES:"Loading more messages\u2026",FINDING_MORE_PEOPLE:"Finding more people\u2026",YOU_HAVE_BLOCKED:"You have blocked this person. \x3ca %1$s\x3eUnblock.\x3c/a\x3e",
PROBLEM_SENDING_MESSAGE:"Your message was not sent",SEEN:"Seen",DELIVERED:"Delivered",ME:"Me",USER_LEFT_GROUP:"%1$s left the group",JAN_DAY:"Jan %1$s",FEB_DAY:"Feb %1$s",MAR_DAY:"Mar %1$s",APR_DAY:"Apr %1$s",MAY_DAY:"May %1$s",JUN_DAY:"Jun %1$s",JUL_DAY:"Jul %1$s",AUG_DAY:"Aug %1$s",SEP_DAY:"Sep %1$s",OCT_DAY:"Oct %1$s",NOV_DAY:"Nov %1$s",DEC_DAY:"Dec %1$s",YESTERDAY_CAPITALIZED:"Yesterday",BLOCK_PERSON:"Block this person\u2026",ARE_YOU_SURE_BLOCK_USER:"Are you sure that you want to block %1$s? This person will not be able to contact you.",
BLOCK:"Block",LEAVE_CONVERSATION:"Leave group\u2026",ARE_YOU_SURE_LEAVE_CONVERSATION:"Are you sure that you want to leave this conversation?",LEAVE:"Leave",DELETE_CONVERSATION:"Delete conversation\u2026",ARE_YOU_SURE_DELETE_CONVERSATION:"Are you sure that you want to delete this conversation? The messages will be removed from your history.",DELETE:"Delete",UPLOADING_LABEL:"Uploading...",FAILED_TO_UPLOAD_IMAGE:"An error occurred and your image could not be uploaded.",EDIT:"Edit",MAIN_ROOM:"Main Room",
UNTITLED:"Untitled",TOO_MANY_IMAGES:"You have selected too many images. Please select fewer than %1$s.",FILE_IS_BIGGER_THAN_LIMIT:"%1$s is bigger than the limit (%2$s MB).",TOO_MANY_FILES:"You have selected too many files. Please select fewer than %1$s.",FAILED_TO_UPLOAD_FILE:"An error occurred and your file could not be uploaded.",TITLEBAR_USER_SAYS:"%1$s says\u2026",REMOVE_THIS_PERSON:"Remove this person?",UNABLE_TO_CHAT:"%1$s won\u2019t be able to chat in this group.",REMOVE:"Remove",CONNECTING:"Connecting\u2026",
YOU_ARE_DISCONNECTED:"You are disconnected from chat. \x3ca %1$s\x3eGo online\x3c/a\x3e.",DISCONNECTED:"Disconnected",time:function(a,b,c,e,d){return a+":"+d+" "+(12>c?"AM":"PM")},facebookWillOpen:"Facebook will open a popup window.",autoRecover:"AutoRecover",ifYouAccidentally:"If you accidentally lost your work recently, click this to recover it.",restoreContent:"Restore auto-saved content",noAutoSaveContent:"There is no auto-save content available to restore",ifRestoreSavedContent:"If you restore the saved content, you will lose all the content that is currently in the editor. Are you sure you want to restore the saved content?",
fileDoesNotSeem:"The file does not seem to be in .jpg, .gif, or .png format. Would you like to try uploading it anyway?",alreadyMemberSignIn:"Already a member? \x3ca %1$s\x3eSign in\x3c/a\x3e",unsavedChanges:"You have unsaved changes.",areYouSure:"Are You Sure?",pasteText:"Paste as Plain Text",noFileAtUrl:"There is no file at that URL. Please try again.",edit:"Edit","delete":"Delete",ROTATE:"Rotate",uploadFileAnyType:"Upload a file of any type. The file will appear as a link.",linkUrl:"Link URL",
title:"Title",uploadFile:"Upload File",media:"Media",file:"File",image:"Image",url:"URL",padding:"Padding",fromMyComputer:"From my computer",fromUrl:"From a URL",link:"Link",linkColon:"Link:",imageColon:"Image:",width:"Width",layout:"Layout",addImage:"Add Image",font:"Font",size:"Size",color:"Color",blockquote:"Blockquote",unorderedList:"Unordered list",orderedList:"Ordered list",removeFormatting:"Remove formatting",addColon:"Add:",visualMode:"Visual Mode",htmlEditor:"HTML Editor",fullscreen:"Fullscreen",
returnToNormalSize:"Return to normal size",returnToVisualMode:"Return to Visual Mode",reasonColon:"Reason:",spam:"Spam",contentHasBeenFlagged:"This content has been flagged",contentHasBeenUnFlagged:"The content has been restored",porn:"Sexual Content",illegal:"Illegal",flag:"Flag",inappropriate:"Inappropriate",error:"Error",friendLimitExceeded:"Friend Limit Exceeded",requestLimitExceeded:"Friend Request Limit Exceeded",addNameAsFriend:function(a){return"Add "+a+" as a friend?"},nameMustBeFriendsToMessage:"You and %1$s must be friends before you can send messages.",
nameMustConfirmFriendship:function(a){return a+" will have to accept your friendship."},nameMustConfirmYourFriendship:"%1$s will have to confirm your friendship.",addPersonalMessage:"Add a personal message",includePersonalMessage:"Include personal message",typePersonalMessage:"Type your personal message\u2026",thereHasBeenAnError:"There has been an error",message:"Message",send:"Send",addAsFriend:"Add as Friend",friendRequestSent:"Friend Request Sent!",yourFriendRequestHasBeenSent:"Your friend request has been sent.",
yourMessage:"Your Message",updateMessage:"Update Message",updateMessageQ:"Update Message?",removeWords:"To make sure your email is delivered successfully, we recommend going back to change or remove the following words:",warningMessage:"It looks like there are some words in this email that might send your email to a Spam folder.",errorMessage:"There are 6 or more words in this email that might send your email to a Spam folder.",goBack:"Go Back",sendAnyway:"Send Anyway",messageIsTooLong:function(a,
b){return"We're sorry. The maximum number of characters is "+b+"."},yourMessageIsTooLong:function(a){return"Your message is too long. Please use "+a+" characters or less."},locationNotFound:function(a){return"\x3cem\x3e"+a+"\x3c/em\x3e not found."},confirmation:"Confirmation",showMap:"Show Map",hideMap:"Hide Map",yourCommentMustBeApproved:"Your comment must be approved before everyone can see it.",nComments:{f1:"1 Comment",f2:"%s Comments"},numberOfCharactersExceedsMaximum:"The number of characters (%1$s) exceeds the maximum (%2$s)",
pleaseEnterAComment:"Please enter a comment",uploadAPhoto:"Upload a Photo",uploadAnImage:"Upload an image",gifJpgPngLimit:"(GIF, JPEG or PNG; limit %s)",uploadAPhotoEllipsis:"Upload a Photo\u2026",uploadAnImageEllipsis:"Upload an Image\u2026",useExistingImage:"Use existing image:",useExistingPhoto:"Use existing photo:",existingPhoto:"Existing photo",noPhoto:"No photo",uploadPhotoFromComputer:"Upload a photo from your computer",currentPhoto:"Current photo",existingImage:"Existing image",useThemeImage:"Use theme image:",
themeImage:"Theme Image",noImage:"No image",uploadImageFromComputer:"Upload an image from your computer",tileThisImage:"Tile this image",done:"Done",currentImage:"Current image",pickAColor:"Select a Color",openColorPicker:"Open Color Picker",transparent:"Transparent",loading:"Loading\u2026",ok:"OK",save:"Save",cancel:"Cancel",saving:"Saving\u2026",addAnImage:"Add an Image",editImage:"Edit Image",uploadAFile:"Upload a File",fileSizeLimit:"Size limit: %1$sMB",pleaseEnterAWebsite:"Please enter a website address",
bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",addHyperink:"Add Hyperlink",options:"Options",wrapTextAroundImage:"Wrap text around image?",alignImage:"Align image on the...",left:"Left",center:"Center",right:"Right",full:"Full",close:"Close",createThumbnail:"Create thumbnail?",resizeImage:"Resize image?",pixels:"pixels",createSmallerVersion:"Create a smaller version of your image to display. Set the width in pixels.",createSmallerVersionSetLongestDimension:"Create a smaller version of your image to display. Set the longest dimension in pixels.",
popupWindow:"Popup Window?",linkToOriginal:"Link to original?",linkToFullSize:"Link to the full-size version of the image in a popup window.",add:"Add",update:"Update",keepWindowOpen:"Please keep this browser window open while upload continues.",cancelUpload:"Cancel Upload",pleaseSelectAFile:"Please select an Image File",pleaseSpecifyAThumbnailSize:"Please specify a thumbnail size",thumbnailSizeMustBeNumber:"The thumbnail size must be a number",orUseExistingImage:"or use the existing image",addExistingImage:"or insert an existing image",
addExistingFile:"or insert an existing file",clickToEdit:"Click to edit",requestSent:"Request Sent!",pleaseCorrectErrors:"Please correct these errors",noo:"NEW",none:"NONE",joinNow:"Join Now",join:"Join",signIn:"Sign In",signUp:"Sign Up",addToFavorites:"Favorite",removeFromFavorites:"Remove from Favorites",follow:"Follow",stopFollowing:"Stop Following",pendingPromptTitle:"Membership Pending Approval",youCanDoThis:"You can do this once your membership has been approved by the administrators.",editYourTags:"Edit Your Tags",
addTags:"Add Tags",editLocation:"Edit Location",editTypes:"Edit Event Type",imageSizeLimit:"(Limit 10 MB)",nChars:{f1:"1 character",f2:"%1$s characters"},youHaveUnsavedChanges:"You have unsaved changes. Are you sure you want to navigate away?",resetProfilePages:"Reset Profile Pages",thisWillResetProfilePages:"This will reset profile pages to match your new theme.",commentWall:"Comment Wall",commentWallNComments:{f1:"Comment Wall (1 comment)",f2:"Comment Wall (%s comments)"},marketingParagraph:"Thank you for visiting! Because of the high-quality content found here, we charge for membership.",
pricingModifier:"Best Value!",siteDescription:"This site is the #1 destination for learning and sharing about social media. Some of the leaders in the social media space are members.",share:"Share",showAllComments:'Show all \x3cspan class\x3d"xj_comment_count"\x3e%1$s\x3c/span\x3e comments',addAComment:"add a comment",fileNeedsToBeUnderX:"Sorry, files need to be under %1$sMB.",fileTooLarge:"Sorry, that file is too large, please try a smaller one.",choosePluralizationForm:function(a){return 1==a?"f1":
"f2"},justNow:"just now",nSecondsAgo:{f1:"1 second ago",f2:"%s seconds ago"},nMinutesAgo:{f1:"1 minute ago",f2:"%s minutes ago"},nHoursAgo:{f1:"1 hour ago",f2:"%s hours ago"},yesterday:"yesterday",onDay0:"on Sunday",onDay1:"on Monday",onDay2:"on Tuesday",onDay3:"on Wednesday",onDay4:"on Thursday",onDay5:"on Friday",onDay6:"on Saturday",month0Day:"Jan %1$s",month1Day:"Feb %1$s",month2Day:"Mar %1$s",month3Day:"Apr %1$s",month4Day:"May %1$s",month5Day:"Jun %1$s",month6Day:"Jul %1$s",month7Day:"Aug %1$s",
month8Day:"Sep %1$s",month9Day:"Oct %1$s",month10Day:"Nov %1$s",month11Day:"Dec %1$s",month0DayYear:"Jan %1$s, %2$s",month1DayYear:"Feb %1$s, %2$s",month2DayYear:"Mar %1$s, %2$s",month3DayYear:"Apr %1$s, %2$s",month4DayYear:"May %1$s, %2$s",month5DayYear:"Jun %1$s, %2$s",month6DayYear:"Jul %1$s, %2$s",month7DayYear:"Aug %1$s, %2$s",month8DayYear:"Sep %1$s, %2$s",month9DayYear:"Oct %1$s, %2$s",month10DayYear:"Nov %1$s, %2$s",month11DayYear:"Dec %1$s, %2$s"}),dojo.evalObjPath("xg.video.nls",!0),dojo.lang.mixin(xg.video.nls,
xg.index.i18n,{edit:"Edit",display:"Display",detail:"Detail",player:"Player",from:"From",show:"Show",videos:"videos",cancel:"Cancel",customizePlayerColors:"Customize Colors",save:"Save",numberOfCharactersExceedsMaximum:function(a,b){return"The number of characters ("+a+") exceeds the maximum ("+b+")"},approve:"Approve",approving:"Approving\u2026",keepWindowOpenWhileApproving:"Please keep this browser window open while videos are being approved. This process may take a few minutes.","delete":"Delete",
deleting:"Deleting\u2026",keepWindowOpenWhileDeleting:"Please keep this browser window open while videos are being deleted. This process may take a few minutes.",pasteInEmbedCode:"Please enter embed code for a video below.",invalidUrlFormat:"The URL you entered appears to be an invalid URL format.",pleaseSelectVideoToUpload:"Please select a video to upload.",embedCodeContainsMoreThanOneVideo:"The embed code contains more than one video. Please make sure it has only one \x3cobject\x3e and/or \x3cembed\x3e tag.",
embedCodeMissingTag:"The embed code is missing an \x26lt;embed\x26gt; or \x26lt;object\x26gt; tag.",fileIsNotAMov:"This file does not seem to be a .mov, .mpg, .mp4, .avi, .3gp, .3g2 or .wmv. Try uploading it anyway?",embedHTMLCode:"HTML Embed Code:",directLink:"Direct Link",addToMyspace:"Add to MySpace",shareOnFacebook:"Share on Facebook",expand:"Expand",collapse:"Collapse"}),dojo.evalObjPath("xg.uploader.nls",!0),dojo.lang.mixin(xg.uploader.nls,xg.index.i18n,{fileBrowserHeader:"My Computer",fileRoot:"My Computer",
fileInformationHeader:"Information",uploadHeader:"Files to Upload",dragOutInstructions:"Drag files out to remove them",dragInInstructions:"Drag Files Here",selectInstructions:"Select a File",files:"Files",totalSize:"Total Size",fileName:"Name",fileSize:"Size",nextButton:"Next \x3e",okayButton:"OK",yesButton:"Yes",noButton:"No",uploadButton:"Upload",cancelButton:"Cancel",backButton:"Back",continueButton:"Continue",uploadingStatus:function(a,b){return"Uploading "+a+" of "+b},uploadLimitWarning:function(a){return"You can upload "+
a+" files at a time."},uploadLimitCountdown:{0:"You've added the maximum number of files.",f1:"You can upload 1 more file.",f2:"You can upload %s more files."},uploadingLabel:"Uploading...",uploadingInstructions:"Please leave this window open while your upload is in progress",iHaveTheRight:'I have the right to upload these files under the \x3ca href\x3d"/main/authorization/termsOfService"\x3eTerms of Service\x3c/a\x3e',updateJavaTitle:"Update Java",updateJavaDescription:'The bulk uploader requires a more recent version of Java. Click "Okay" to get Java.',
batchEditorLabel:"Edit Information for All Items",applyThisInfo:"Apply this info to the files below",titleProperty:"Title",descriptionProperty:"Description",tagsProperty:"Tags",viewableByProperty:"Can be viewed by",viewableByEveryone:"Anyone",viewableByFriends:"Just My Friends",viewableByMe:"Just Me",albumProperty:"Album",artistProperty:"Artist",enableDownloadLinkProperty:"Enable download link",enableProfileUsageProperty:"Allow people to put this song on their pages",licenseProperty:"License",creativeCommonsVersion:"3.0",
selectLicense:"\u2014 Select license \u2014",copyright:"\u00a9 All Rights Reserved",ccByX:function(a){return"Creative Commons Attribution "+a},ccBySaX:function(a){return"Creative Commons Attribution Share Alike "+a},ccByNdX:function(a){return"Creative Commons Attribution No Derivatives "+a},ccByNcX:function(a){return"Creative Commons Attribution Non-commercial "+a},ccByNcSaX:function(a){return"Creative Commons Attribution Non-commercial Share Alike "+a},ccByNcNdX:function(a){return"Creative Commons Attribution Non-commercial No Derivatives "+
a},publicDomain:"Public Domain",other:"Other",errorUnexpectedTitle:"Oops!",errorUnexpectedDescription:"There's been an error. Please try again.",errorTooManyTitle:"Too Many Items",errorTooManyDescription:function(a){return"We're sorry, but you can only upload "+a+" items at a time."},errorNotAMemberTitle:"Not Allowed",errorNotAMemberDescription:"We're sorry, but you need to be a member to upload.",errorContentTypeNotAllowedTitle:"Not Allowed",errorContentTypeNotAllowedDescription:"We're sorry, but you're not allowed to upload this type of content.",
errorUnsupportedFormatTitle:"Oops!",errorUnsupportedFormatDescription:"We're sorry, but we don't support this type of file.",errorUnsupportedFileTitle:"Oops!",errorUnsupportedFileDescription:"foo.exe is in an unsupported format.",errorUploadUnexpectedTitle:"Oops!",errorUploadUnexpectedDescription:function(a){return a?"There appears to be a problem with the "+a+" file. Please remove it from the list before uploading the rest of your files.":"There appears to be a problem with the file at the top of the list. Please remove it before uploading the rest of your files."},
cancelUploadTitle:"Cancel Upload?",cancelUploadDescription:"Are you sure you want to cancel the remaining uploads?",uploadSuccessfulTitle:"Upload Completed",uploadSuccessfulDescription:"Please wait while we take you to your uploads...",uploadPendingDescription:"Your files were successfully uploaded and are awaiting approval.",photosUploadHeader:"Photos to Upload",photosDragOutInstructions:"Drag photos out to remove them",photosDragInInstructions:"Drag Photos Here",photosSelectInstructions:"Select a Photo",
photosFiles:"Photos",photosUploadingStatus:function(a,b){return"Uploading Photo "+a+" of "+b},photosErrorTooManyTitle:"Too Many Photos",photosErrorTooManyDescription:function(a){return"We're sorry, but you can only upload "+a+" photos at a time."},photosErrorContentTypeNotAllowedDescription:"We're sorry, but photo uploading has been disabled.",photosErrorUnsupportedFormatDescription:"We're sorry, but you can only upload .jpg, .gif or .png format images.",photosErrorUnsupportedFileDescription:function(a){return a+
" is not a .jpg, .gif or .png file."},photosBatchEditorLabel:"Edit Information for All Photos",photosApplyThisInfo:"Apply this info to the photos below",photosErrorUploadUnexpectedDescription:function(a){return a?"There appears to be a problem with the "+a+" file. Please remove it from the list before uploading the rest of your photos.":"There appears to be a problem with the photo at the top of the list. Please remove it before uploading the rest of your photos."},photosUploadSuccessfulDescription:"Please wait while we take you to your photos...",
photosUploadPendingDescription:"Your photos were successfully uploaded and are awaiting approval.",photosUploadLimitWarning:function(a){return"You can upload "+a+" photos at a time."},photosUploadLimitCountdown:{0:"You've added the maximum number of photos.",f1:"You can upload 1 more photo.",f2:"You can upload %s more photos."},photosIHaveTheRight:'I have the right to upload these photos under the \x3ca href\x3d"/main/authorization/termsOfService"\x3eTerms of Service\x3c/a\x3e',videosUploadHeader:"Videos to Upload",
videosDragInInstructions:"Drag Videos Here",videosDragOutInstructions:"Drag videos out to remove them",videosSelectInstructions:"Select a Video",videosFiles:"Videos",videosUploadingStatus:function(a,b){return"Uploading Video "+a+" of "+b},videosErrorTooManyTitle:"Too Many Videos",videosErrorTooManyDescription:function(a){return"We're sorry, but you can only upload "+a+" videos at a time."},videosErrorContentTypeNotAllowedDescription:"We're sorry, but video uploading has been disabled.",videosErrorUnsupportedFormatDescription:"We're sorry, but you can only upload .avi, .mov, .mp4, .wmv or .mpg format videos.",
videosErrorUnsupportedFileDescription:function(a){return a+" is not a .avi, .mov, .mp4, .wmv or .mpg file."},videosBatchEditorLabel:"Edit Information for All Videos",videosApplyThisInfo:"Apply this info to the videos below",videosErrorUploadUnexpectedDescription:function(a){return a?"There appears to be a problem with the "+a+" file. Please remove it from the list before uploading the rest of your videos.":"There appears to be a problem with the video at the top of the list. Please remove it before uploading the rest of your videos."},
videosUploadSuccessfulDescription:"Please wait while we take you to your videos...",videosUploadPendingDescription:"Your videos were successfully uploaded and are awaiting approval.",videosUploadLimitWarning:function(a){return"You can upload "+a+" videos at a time."},videosUploadLimitCountdown:{0:"You've added the maximum number of videos.",f1:"You can upload 1 more video.",f2:"You can upload %s more videos."},videosIHaveTheRight:'I have the right to upload these videos under the \x3ca href\x3d"/main/authorization/termsOfService"\x3eTerms of Service\x3c/a\x3e',
musicUploadHeader:"Songs to Upload",musicTitleProperty:"Song Title",musicDragOutInstructions:"Drag songs out to remove them",musicDragInInstructions:"Drag Songs Here",musicSelectInstructions:"Select a Song",musicFiles:"Songs",musicUploadingStatus:function(a,b){return"Uploading Song "+a+" of "+b},musicErrorTooManyTitle:"Too Many Songs",musicErrorTooManyDescription:function(a){return"We're sorry, but you can only upload "+a+" songs at a time."},musicErrorContentTypeNotAllowedDescription:"We're sorry, but song uploading has been disabled.",
musicErrorUnsupportedFormatDescription:"We're sorry, but you can only upload .mp3 format songs.",musicErrorUnsupportedFileDescription:function(a){return a+" is not a .mp3 file."},musicBatchEditorLabel:"Edit Information for All Songs",musicApplyThisInfo:"Apply this info to the songs below",musicErrorUploadUnexpectedDescription:function(a){return a?"There appears to be a problem with the "+a+" file. Please remove it from the list before uploading the rest of your songs.":"There appears to be a problem with the song at the top of the list. Please remove it before uploading the rest of your songs."},
musicUploadSuccessfulDescription:"Please wait while we take you to your songs...",musicUploadPendingDescription:"Your songs were successfully uploaded and are awaiting approval.",musicUploadLimitWarning:function(a){return"You can upload "+a+" songs at a time."},musicUploadLimitCountdown:{0:"You've added the maximum number of songs.",f1:"You can upload 1 more song.",f2:"You can upload %s more songs."},musicIHaveTheRight:'I have the right to upload these songs under the \x3ca href\x3d"/main/authorization/termsOfService"\x3eTerms of Service\x3c/a\x3e'}),
dojo.evalObjPath("xg.events.nls",!0),dojo.lang.mixin(xg.events.nls,xg.index.i18n,{pleaseEnterTitle:"Please enter a title for the event",pleaseEnterDescription:"Please enter a description for the event",messageIsTooLong:function(a){return"Your message is too long. Please use "+a+" characters or less."},pleaseEnterLocation:"Please enter a location for the event",pleaseEnterType:"Please enter at least one type for the event",sendMessageToGuests:"Message Guests",sendMessageToGuestsThat:"Send message to guests that:",
areAttending:"Are attending",mightAttend:"Might attend",haveNotYetRsvped:"Have not yet RSVPed",areNotAttending:"Are not attending",yourMessage:"Your Message",send:"Send",sending:"Sending\u2026",yourMessageIsBeingSent:"Your message is being sent.",messageSent:"Message Sent!",yourMessageHasBeenSent:"Your message has been sent.",chooseRecipient:"Please choose a recipient.",pleaseEnterAMessage:"Please enter a message",thereHasBeenAnError:"There has been an error",datePickerDateFormat:"mm/dd/yy",monday:"Monday",
tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday",mondayAbbreviated:"Mon",tuesdayAbbreviated:"Tue",wednesdayAbbreviated:"Wed",thursdayAbbreviated:"Thu",fridayAbbreviated:"Fri",saturdayAbbreviated:"Sat",sundayAbbreviated:"Sun",mondayShort:"M",tuesdayShort:"T",wednesdayShort:"W",thursdayShort:"T",fridayShort:"F",saturdayShort:"S",sundayShort:"S",januaryShort:"J",februaryShort:"F",marchShort:"M",aprilShort:"A",mayShort:"M",juneShort:"J",julyShort:"J",
augustShort:"A",septemberShort:"S",octoberShort:"O",novemberShort:"N",decemberShort:"D",januaryAbbreviated:"Jan",februaryAbbreviated:"Feb",marchAbbreviated:"Mar",aprilAbbreviated:"Apr",mayAbbreviated:"May",juneAbbreviated:"Jun",julyAbbreviated:"Jul",augustAbbreviated:"Aug",septemberAbbreviated:"Sep",octoberAbbreviated:"Oct",novemberAbbreviated:"Nov",decemberAbbreviated:"Dec",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",
october:"October",november:"November",december:"December"}),dojo.evalObjPath("xg.notes.nls",!0),dojo.lang.mixin(xg.notes.nls,xg.index.i18n,{addNewNote:"Add New Note",pleaseEnterNoteTitle:"Please enter a note title!",noteTitleTooLong:"Note title is too long",pleaseEnterNoteEntry:"Please enter a note entry",noteHasBeenChanged:"Note has been changed."}),dojo.evalObjPath("xg.gifts.nls",!0),dojo.lang.mixin(xg.gifts.nls,xg.index.i18n,{thereHasBeenAnError:"There has been an error",pleaseSelectGift:"Please select a gift.",
buyCredits:"Buy Credits",moreCreditsRequired:"More Credits Required",added:"Added!",creditsRequired:"Credits Required:",xCreditsForYUSD:"%1$s Credits \u2013 $%2$s USD",xCreditsForYUSDBonus:"%1$s Credits \u2013 $%2$s USD, \x3cspan %4$s\x3e%3$s Bonus\x3c/span\x3e",purchaseCreditsToSend:"Please purchase some credits to send this gift.",purchaseCredits:"Purchase Credits:",byMakingPurchase:"By making a purchase, you are agreeing to the \x3ca %1$s\x3eVirtual Gifts Terms\x3c/a\x3e.",payPalCheckout:"PayPal Checkout",
close:"Close",removeCategory:"Remove Category",thisWillRemoveThisCategory:"This will remove this category from the Gift Store as well as all gifts in that category. You can add this category back at any time, and the gifts will reappear in the Gift Store.",pleaseEnterMessage:"Please enter a message.",unableToCompleteAction:"We were unable to complete your last action. Please try again later.",messageHasToBeShorter:"Message has to be shorter than %1$s characters.",pleaseEnterAGiftName:"Please enter a gift name.",
pleaseEnterAGiftImage:"Please select a gift image.",pleaseEnterName:"Please enter your name.",pleaseEnterPhone:"Please enter your phone number.",pleaseEnterPayPal:"Please enter your PayPal email address.",contactEmailInvalid:"The contact email does not seem to be valid.",pleaseEnterStreetAddress:"Please enter your street address.",pleaseEnterCity:"Please enter your city.",pleaseEnterStateOrProvince:"Please enter your state or province.",pleaseEnterPostalCode:"Please enter your postal code.",pleaseEnterDescription:"Please enter a description for your Ning Network.",
credits:"Credits",xCredits:"%1$s Credits",totalCostXCredits:function(a){return 1==a?"Total Cost: 1 Credit":"Total Cost: "+a+" Credits"},oneCredit:"1 Credit",free:"Free",wereSorry:"We're Sorry",giftSent:"Gift Sent!",feature:"Feature",stopFeaturing:"Stop Featuring",yourGiftsHasBeenSentToXMembers:{f1:"Your gift has been sent. You now have %2$s credits left.",f2:"Your gifts have been sent to %1$s members. You now have %2$s credits left."},yourGiftsHasBeenSentToXMembersModerate:{f1:"Your gift has been sent but the recipient has chosen to moderate gifts, and will need to approve the gifts before they appear. You now have %2$s credits left.",
f2:"Your gifts have been sent to %1$s members. Some recipients have chosen to moderate gifts, and will need to approve the gifts before they appear. You now have %2$s credits left."},unableToSendGiftsMsg:"There was some problem sending your gifts. Please try again.",cannotDeleteCategory:"You cannot remove this category because you must have a minimum of %1$s categories in the Gift Store. Please add another category before removing this one.",cannotDeleteGiftItem:"\x3cp\x3eYou cannot remove this gift because there must be a minimum of %1$s gifts in the Gift Store. Please \x3ca %2$s\x3eadd another gift\x3c/a\x3e before removing this one. You can also \x3ca %3$s\x3eupload a custom gift\x3c/a\x3e.\x3c/p\x3e",
searchGifts:"Search Gifts",removeACategory:"Remove a Category",clickToSelectTheCategoryYouWouldLikeToRemove:'Click to select a category you would like to remove, and then click the "X" icon that appears to the right side of the category name. You will be asked to confirm the removal. Please note that you cannot remove the All, Custom, Featured or Awards categories.',renameACategory:"Rename a Category",clickToSelectTheCategoryYouWouldLikeToRename:'Click to select a category you would like to rename, and then click the "Edit" link that appears to the right of the category name. Please note that you cannot rename the All, Custom, Featured or Awards categories.',
pleaseSelectARecipient:"Please select a recipient",pleaseEnterKeywordToSearch:"Please enter a keyword to search",giftMessageHasHTMLConfirmTitle:"Please Check Your Gift Message",giftMessageHasHTMLConfirmBody:"HTML will be removed from your message. Do you still want to send your gift?",sendGift:"Send Gift",editMessage:"Edit Message",imagesMustBeUnder:'Please select a gift image that is under 10 KB. The image you selected is too large. \x3ca href\x3d"http://www.ning.com/help/?p\x3d4373" target\x3d"_blank"\x3eNeed help?\x3c/a\x3e',
giftImageUnder:"Please select a gift image that is under 10 KB. The image you selected is too large. \x3ca %1$s\x3eClick here\x3c/a\x3e to get help creating a custom gift image.",imageInInvalidFormat:"Please select an accepted image type (PNG, GIF, or JPEG).",enterAMessageFor:"Enter a Message for %1$s",enterAMessage:"Enter a Message",waitWhileRedirect:"Please wait while we redirect you to PayPal\u2026",yourGiftHasBeenAddedToYourProfilePage:"Your gift has been added to your profile page. You now have %1$s credits left.",
ncOnly:"Network Creator Only",autoManageGiftStore:"Automatic Ning Gift Management",autoManageGiftStoreExpl:"Choose whether the Gift Store updates automatically.",autoManageGiftStoreOnExpl:"The Gift Store will automatically update with new and seasonal Ning Gifts. ",autoManageGiftStoreOffExpl:'All Ning Gifts will be removed from the Gift Store. You can pick and choose which Ning Gifts appear in the Gift Store by going to "Add Ning Gifts".',onCap:"On",offCap:"Off",unlimited:"Unlimited",nLeft:"%1$s Left",
sellingOut:"Selling Out",awards:"Awards",notEnoughGiftsLeft:"Not enough gifts left. Please choose fewer recipients.",next:"Next \x26gt;",previous:"\x26lt; Previous",searchMembers:"Search Members",showFriendsOnly:"Show Friends Only",maxN:function(a){return"max "+a},nSelected:function(a,b){return"\x3cspan "+a+"\x3e"+b+"\x3c/span\x3e Selected"},addRecipients:"Add Recipients"}),dojo.evalObjPath("xg.appearance.nls",!0),dojo.lang.mixin(xg.appearance.nls,xg.index.i18n,{sorryYourImageIsGreaterThan1MB:"Sorry, your image is greater than 1MB",
errorUploadingImage:"There was an unknown error uploading your image.  Please try again later.",uploadAccessDenied:"Upload access denied.  Please make sure you are still logged in.",unsupportedFormat:"File is not an image, or has an unsupported image format."}),dojo.evalObjPath("xg.spamfolder.nls",!0),dojo.lang.mixin(xg.spamfolder.nls,xg.index.i18n,{updatingEllipsis:"Updating\u2026"}));dojo.hostenv.findModule("xg.shared.PostLink",!1)||(dojo.provide("xg.shared.PostLink"),dojo.widget.defineWidget("xg.shared.PostLink",dojo.widget.HtmlWidget,{_url:"\x3crequired\x3e",_confirmQuestion:"",_confirmTitle:"",_confirmOkButtonText:"",_reload:!1,posting:!1,_joinPromptText:"",_isPending:!1,_checkPaywall:!1,_doPromptJoin:1,fillInTemplate:function(b,c){this._confirmOkButtonText=this._confirmOkButtonText||xg.index.nls.text("ok");b=this.getFragNodeRef(c);dojo.style.show(b);dojo.event.connect(b,"onclick",
dojo.lang.hitch(this,function(a){dojo.event.browser.stopEvent(a);this._checkPaywall&&xg.shared.util.showPaywallIfPresent()||this.posting||(a=dojo.lang.hitch(this,function(){this._confirmQuestion?xg.shared.util.confirm({title:this._confirmTitle,bodyHtml:"\x3cp\x3e"+dojo.string.escape("html",this._confirmQuestion)+"\x3c/p\x3e",onOk:dojo.lang.hitch(this,this.post),okButtonText:this._confirmOkButtonText}):this.post()}),this._doPromptJoin?xg.shared.util.promptToJoin(this._joinPromptText,this._isPending,
a):a())}))},post:function(){this.posting=!0;0!=this._reload?dojo.io.bind({url:this._url,method:"post",encoding:"utf-8",load:function(b,c,a){window.location.reload(!0)}}):xg.shared.util.postSynchronously(this._url)}}));dojo.hostenv.findModule("xg.shared.OptionBox",!1)||(dojo.provide("xg.shared.OptionBox"),dojo.widget.defineWidget("xg.shared.OptionBox",dojo.widget.HtmlWidget,{fillInTemplate:function(a,b){a=x$(this.getFragNodeRef(b));if(a.find("li")[0]){a.addClass("optionbox");a.removeClass("adminbox").removeClass("adminbox-right").removeClass("actionpadding");a.find(".xg_module_head").remove();b=a.find(".xg_module");if(a.hasClass("xg_module")){b=a.find(".xg_module_body");var c=x$('\x3cdiv class\x3d"xg_module"\x3e\x3c/div\x3e');
a.hasClass("xg_span-4")&&(c.addClass("xg_span-4"),a.removeClass("xg_span-4"));a.removeClass("xg_module");a.append(c);c.append(b)}else if(b&&!b[0]){var d=x$('\x3cdiv class\x3d"xg_module"\x3e\x3cdiv class\x3d"xg_module_body"\x3e\x3c/div\x3e\x3c/div\x3e');a.append(d);a.children().not(".xg_module").each(function(){d.find(".xg_module_body").append(this)})}b=x$("ul.navigation").eq(0);c=b.find(".optionlink");if(!c[0]){c=x$('\x3ca href\x3d"#" id\x3d"xj_optionlink" class\x3d"xg_sprite xg_sprite-setting optionlink"\x3e'+
xg.shared.nls.html("options")+"\x3c/a\x3e");var e=x$('\x3cli class\x3d"right xg_lightborder navbutton"\x3e\x3c/li\x3e');e.append(c);b.append(e)}xg.shared.util.dropdownMenu({srcNode:c.parent(),menuNode:a,showOnClick:!0});x$(".xj_pa_delete").click(function(f){f.preventDefault();xg.shared.util.alert({bodyHtml:x$(this).attr("data-text"),title:x$(this).attr("data-title")})})}}}));dojo.hostenv.findModule("xg.shared.FlagLink",!1)||(dojo.provide("xg.shared.FlagLink"),dojo.widget.defineWidget("xg.shared.FlagLink",dojo.widget.HtmlWidget,{_url:"\x3crequired\x3e",_action:"flag",_completeText:"",_completeTitle:"",_completeOkButtonText:"",_link:null,fillInTemplate:function(a,b){this._completeOkButtonText=this._completeOkButtonText||xg.index.nls.text("ok");xg.shared.FlagLink._type="unspecified";a=this.getFragNodeRef(b);dojo.style.show(a);xg.shared.FlagLink._link=a;dojo.event.connect(a,
"onclick",dojo.lang.hitch(this,function(c){dojo.event.browser.stopEvent(c);"flag"==this._action?(xg.shared.FlagLink._type="inappropriate",html="\x3cp\x3e",html+='\x3ctable\x3e\x3ctr\x3e\x3ctd valign\x3d"top"\x3e'+xg.shared.nls.text("reasonColon")+" \x3c/td\x3e\x3ctd\x3e",html+='\x3cinput checked onclick\x3d"xg.shared.FlagLink._type\x3dthis.value" type\x3d"radio" id\x3d"a4" name\x3d"abuseType" value\x3d"inappropriate"\x3e\x3clabel for\x3d"a4"\x3e '+xg.shared.nls.text("inappropriate")+"\x3c/label\x3e\x3c/input\x3e\x3cbr/\x3e",
html+='\x3cinput onclick\x3d"xg.shared.FlagLink._type\x3dthis.value" type\x3d"radio" id\x3d"a1" name\x3d"abuseType" value\x3d"spam"\x3e\x3clabel for\x3d"a1"\x3e '+xg.shared.nls.text("spam")+"\x3c/label\x3e\x3c/input\x3e\x3cbr/\x3e",html+='\x3cinput onclick\x3d"xg.shared.FlagLink._type\x3dthis.value" type\x3d"radio" id\x3d"a2" name\x3d"abuseType" value\x3d"porn"\x3e\x3clabel for\x3d"a2"\x3e '+xg.shared.nls.text("porn")+"\x3c/label\x3e\x3c/input\x3e\x3cbr/\x3e",html+='\x3cinput onclick\x3d"xg.shared.FlagLink._type\x3dthis.value" type\x3d"radio" id\x3d"a3" name\x3d"abuseType" value\x3d"illegal"\x3e\x3clabel for\x3d"a3"\x3e '+
xg.shared.nls.text("illegal")+"\x3c/label\x3e\x3c/input\x3e",html+="\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",html+="\x3c/p\x3e",xg.shared.util.confirm({title:xg.shared.nls.text("flag"),onOk:dojo.lang.hitch(this,this.post),bodyHtml:html})):(xg.shared.FlagLink._type=null,this.post())}))},post:function(){url=this._url+("flag"==this._action?"\x26flag\x3d"+xg.shared.FlagLink._type:"");dojo.io.bind({url,method:"post",encoding:"utf-8",mimetype:"text/javascript",preventCache:!0,load:dojo.lang.hitch(this,function(a,
b,c){})});x$(xg.shared.FlagLink._link).replaceWith("flag"==this._action?xg.shared.nls.text("contentHasBeenFlagged"):xg.shared.nls.text("contentHasBeenUnFlagged"))}}));dojo.hostenv.findModule("xg.shared.PromptToJoinButton",!1)||(dojo.provide("xg.shared.PromptToJoinButton"),dojo.widget.defineWidget("xg.shared.PromptToJoinButton",dojo.widget.HtmlWidget,{_joinPromptText:"",_url:"",_signInUrl:"",_isPending:!1,fillInTemplate:function(a,b){a=this.getFragNodeRef(b);dojo.event.connect(a,"onclick",dojo.lang.hitch(this,function(c){dojo.event.browser.stopEvent(c);xg.shared.util.promptToJoin(this._joinPromptText,this._isPending,dojo.lang.hitch(this,function(){window.location=
this._url}),dojo.lang.hitch(this,function(){window.location=this._signInUrl}))}))}}));dojo.hostenv.findModule("xg.shared.PromptToJoinLink",!1)||(dojo.provide("xg.shared.PromptToJoinLink"),dojo.widget.defineWidget("xg.shared.PromptToJoinLink",dojo.widget.HtmlWidget,{_joinPromptText:"",_signInUrl:"",_isPending:!1,_extraButtonData:!1,_signUpText:"signUp",_hasSignUp:!0,fillInTemplate:function(e,b){var a=this.getFragNodeRef(b),c=this._signInUrl;dojo.event.connect(a,"onclick",dojo.lang.hitch(this,function(d){dojo.event.browser.stopEvent(d);xg.shared.util.promptToJoin(this._joinPromptText,
this._isPending,function(){window.location=a.href},function(){window.location=c},this._extraButtonData,this._signUpText,this._hasSignUp)}))}}));dojo.hostenv.findModule("xg.shared.frameBusting",!1)||(dojo.provide("xg.shared.frameBusting"),dojo.widget.defineWidget("xg.shared.frameBusting",dojo.widget.HtmlWidget,{_isAdminOrNC:"",_appUrl:"",fillInTemplate:function(a,b){self!=top&&("1"==this._isAdminOrNC?this.showBanner():top.location.replace(this._appUrl))},showBanner:function(){var a='\x3cdiv class\x3d"framebusting-banner" id\x3d"frame_error_overlay_content"\x3e \t\t\t\t    \t\x3cdiv style\x3d"margin: 0pt auto; padding: 1.5em 0pt; width: 440px;"\x3e \t\t\t\t        \t\x3ch3\x3e\x3cstrong\x3e'+
xg.index.nls.text("frameBustingMsgTitle")+"\x3c/strong\x3e\x3c/h3\x3e \t\t\t\t\t        \x3cp\x3e"+xg.index.nls.text("frameBustingMsg",'target\x3d"_top" href\x3d"http://help.ning.com"','target\x3d"_blank"  href\x3d"/"')+"\x3c/p\x3e\x3cbr/\x3e \t\t\t\t\t    \x3c/div\x3e \t\t\t\t\t\x3c/div\x3e";x$("#xj_msg").html(a);x$("#xj_msg").show();x$("#xg").css("padding-top","150px");xg.shared.util.showOverlay()}}));dojo.hostenv.findModule("xg.shared.SpamWarning",!1)||(dojo.provide("xg.shared.SpamWarning"),dojo.widget.defineWidget("xg.shared.SpamWarning",dojo.widget.HtmlWidget,{_messageParts:"",_attachTo:"",_url:"",fillInTemplate:function(a,b){this._attachTo=dojo.json.evalJson(this._attachTo);for(a=0;a<this._attachTo.length;a++)this.installHandler(this._attachTo[a])},installHandler:function(a){var b=dojo.byId(a),c=this;b&&x$(b).submit(function(d){c.doCheck(d,b,function(){xg.shared.util.hideOverlay();b.submit()},
function(){xg.shared.util.hideOverlay()},function(){})})},doCheck:function(a,b,c,d,l){a&&dojo.event.browser.stopEvent(a);b=b.getElementsByTagName("textarea");a=[];for(var h=this,f=0;f<b.length;f++)b[f].name.match(/message/i)&&a.push(b[f].value);if(1<a.length)return alert("Assertion failed: SpamWarning form cannot contain more than 1 TEXTAREA with name ~ /message/");a.length?(b=dojo.json.evalJson(this._messageParts),b[xg.shared.nls.text("yourMessage")]=a[0],b=dojo.json.serialize(b)):b=this._messageParts;
dojo.io.bind({url:this._url,mimetype:"text/javascript",method:"post",content:{xn_out:"json",messageParts:b},encoding:"utf-8",preventCache:!0,load:function(g,e,m){switch(e.status){default:case "ok":c();break;case "warning":h.showDialog(xg.shared.nls.text("updateMessageQ"),xg.shared.nls.text("warningMessage"),e.messageParts,c,d,l);break;case "error":h.showDialog(xg.shared.nls.text("updateMessage"),xg.shared.nls.text("errorMessage"),e.messageParts,void 0,d,l)}}})},showDialog:function(a,b,c,d,l,h){var f=
"",g;for(g in c)if(c[g].length){for(var e=0,m=[];e<c[g].length;e++)m[e]='"'+c[g][e].replace(/<\/?[\w-]+[^>]*>/g,"")+'"';f+="\x3cp\x3e\x3cstrong\x3e"+g+"\x3c/strong\x3e\x3cbr/\x3e"+m.join(", ")+"\x3c/p\x3e"}var k=dojo.html.createNodesFromText('\x3cdiv class\x3d"xg_floating_module"\x3e\x3cdiv style\x3d"background-image: none;" class\x3d"xg_floating_container xg_lightborder xg_module"\x3e\x3cdiv class\x3d"xg_module_head"\x3e\x3ch2\x3e'+a+'\x3c/h2\x3e\x3c/div\x3e\x3cdiv class\x3d"xg_module_body"\x3e\x3cp\x3e'+
b+"\x3c/p\x3e\x3cp\x3e"+xg.shared.nls.text("removeWords")+"\x3c/p\x3e"+f+'\x3cp class\x3d"buttongroup"\x3e\x3cinput class\x3d"button action-primary" type\x3d"button" value\x3d"'+xg.shared.nls.text("goBack")+'"\x3e '+(d?'\x3cinput class\x3d"button" type\x3d"button" value\x3d"'+xg.shared.nls.text("sendAnyway")+'"\x3e':"")+"\x3c/p\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e")[0];h&&h();xg.shared.util.showOverlay();xg.append(k);dojo.event.connect(dojo.html.getElementsByClass("button",k)[0],"onclick",dojo.lang.hitch(this,
function(n){dojo.event.browser.stopEvent(n);dojo.dom.removeNode(k);l()}));d&&dojo.event.connect(dojo.html.getElementsByClass("button",k)[1],"onclick",dojo.lang.hitch(this,function(n){dojo.event.browser.stopEvent(n);dojo.dom.removeNode(k);d()}))}}),xg.shared.SpamWarning.checkForSpam=function(a){var b=new xg.shared.SpamWarning;b._url=a.url;b._messageParts=a.messageParts;b.doCheck(null,a.form,a.onContinue,a.onBack,a.onWarning)});dojo.hostenv.findModule("xg.shared.IframeUpload",!1)||(dojo.provide("xg.shared.IframeUpload"),function(){var k=function(a){return a.contentDocument||a.name&&a.document&&document.getElementsByTagName("iframe")[a.name].contentWindow&&document.getElementsByTagName("iframe")[a.name].contentWindow.document||a.name&&document.frames[a.name]&&document.frames[a.name].document||null},c=void 0,g=void 0,l=void 0,e=void 0,f=void 0,m=function(){g?e.setAttribute("target",g):e.removeAttribute("target");e.setAttribute("action",
l);f=void 0};xg.shared.IframeUpload={_onLoadTransport:function(){if(c&&"about:blank"!=k(c).location&&f){var a=void 0,d=f;m();if(x$(c).attr("_jsonContainsHtml"))try{a=x$(k(c).body).text()}catch(h){a=null}else try{a=k(c).body.innerHTML}catch(h){a=null}a.match(/^<pre[^>]*>([\s\S]*)<\/pre>/i)&&(a=RegExp.$1);a=x$(c).attr("_jsonContainsHtml")?x$("\x3cdiv/\x3e").html(a).text():a.replace(/&amp;/gm,"\x26").replace(/&quot;/gm,'"').replace(/&#39;/gm,"'").replace(/&lt;/gm,"\x3c").replace(/&gt;/gm,"\x3e");d(a)}},
_fixUrlParamsForJsonContainingHtml:function(a){var d=a.getAttribute("action");d=xg.shared.util.addParameter(d,"escapeHtmlInResponse","1");a.setAttribute("action",xg.shared.util.removeParameter(d,"xn_out"))},start:function(a,d,h,b,n){"undefined"!=typeof b&&1==b&&(f=l=e=g=void 0);c||(window.xg_shared_transport?c=window.xg_shared_transport:window.frames.xg_shared_transport?c=window.frames.xg_shared_transport:(x$.browser.msie&&9>parseInt(x$.browser.version,10)?b=document.createElement('\x3ciframe name\x3d"xg_shared_transport" src\x3d"about:blank" onload\x3d"xg.shared.IframeUpload._onLoadTransport()"\x3e'):
(b=document.createElement("iframe"),b.setAttribute("name","xg_shared_transport"),b.setAttribute("id","xg_shared_transport"),b.setAttribute("src","about:blank"),b.onload=new Function("xg.shared.IframeUpload._onLoadTransport()")),dojo.render.html.safari&&(b.style.position="absolute"),b.style.left=b.style.top=b.style.height=b.style.width="1px",b.style.visibility="hidden",c=xg.append(b)));n||a.getAttribute("data-jsonContainsHtml")?x$(c).attr("_jsonContainsHtml","1"):x$(c).removeAttr("_jsonContainsHtml");
f=d;e=a;g=a.getAttribute("target");l=a.getAttribute("action");a.setAttribute("target","xg_shared_transport");h&&a.setAttribute("action",h);(n||a.getAttribute("data-jsonContainsHtml"))&&xg.shared.IframeUpload._fixUrlParamsForJsonContainingHtml(a);a.submit()},stop:function(){m();c.src="about:blank"}}}());dojo.hostenv.findModule("xg.index.util.ScrollIntoView",!1)||(dojo.provide("xg.index.util.ScrollIntoView"),xg.index.util.ScrollIntoView={scrollIntoView:function(a){a=x$(a);var b=a.css("padding-top"),c=a.css("padding-bottom");b=b&&-1<b.indexOf("px")?parseInt(b,10):0;var d=c&&-1<c.indexOf("px")?parseInt(c,10):0;c=a.offset().top+b;a=a.offset().top+a.height()+d;b=x$(window).scrollTop();d=x$(window).scrollTop()+x$(window).height();var e;c<b?e=c:a>d&&(e=Math.min(c,b+(a-d)));e&&x$("html,body").animate({scrollTop:e},
100)}});dojo.hostenv.findModule("xg.index.util.FormHelper",!1)||(dojo.provide("xg.index.util.FormHelper"),xg.index.util.FormHelper={runValidation:function(a,b,c,d){xg.index.util.FormHelper.hideErrorMessages(a);dojo.lang.forEach(dojo.html.getElementsByClass("success",dojo.byId("xg_body")),function(e){dojo.style.hide(e)});xg.index.util.FormHelper.trimTextInputsAndTextAreas(a);b=b(a);if(dojo.lang.isEmpty(b))return!0;d&&dojo.event.browser.stopEvent(d);xg.index.util.FormHelper.showErrorMessages(a,b,c);return!1},
configureValidation:function(a,b,c){if("FORM"==a.tagName){var d="onsubmit";var e=a}else d="onclick",e=dojo.dom.getFirstAncestorByTag(a,"form");dojo.event.connect(e,d,function(f){return xg.index.util.FormHelper.runValidation(e,b,c,f)})},validateAndProcess:function(a,b,c,d,e){if("FORM"==a.tagName){var f="onsubmit";var g=a}else f="onclick",g=dojo.dom.getFirstAncestorByTag(a,"form");dojo.event.connect(a,f,function(h){dojo.lang.forEach(dojo.html.getElementsByClass("error",g),function(l){dojo.html.removeClass(l,
"error")});xg.index.util.FormHelper.trimTextInputsAndTextAreas(g);var k=b(g);xg.index.util.FormHelper.hideErrorMessages(g);dojo.event.browser.stopEvent(h);dojo.lang.isEmpty(k)?"undefined"!==typeof e?e(c,g):c(g):xg.index.util.FormHelper.showErrorMessages(g,k,d)})},validateAndSave:function(a,b,c,d,e,f){xg.index.util.FormHelper.validateAndProcess(a,b,function(g){xg.index.util.FormHelper.save(g,c,g.action,e)},d,f)},trimTextInputsAndTextAreas:function(a){dojo.lang.forEach(a.getElementsByTagName("textarea"),
function(b){b.value=dojo.string.trim(b.value)});dojo.lang.forEach(a.getElementsByTagName("input"),function(b){"text"==b.type&&(b.value=dojo.string.trim(b.value))})},save:function(a,b,c,d){xg.index.util.FormHelper.validateFileInputsSpeciallyForIE(a)&&dojo.io.bind({url:c,mimetype:"text/plain",formNode:a,method:"post",encoding:"utf-8",preventCache:!0,load:function(e,f,g){e=f;"string"==typeof e&&(e=dj_parseJSON(e));try{"errorMessages"in e?(xg.index.util.FormHelper.showErrorMessages(a,e.errorMessages),
d&&d(e)):b(e)}catch(h){xg.index.util.FormHelper.showErrorMessages(a,{})}},error:function(e,f){throw f.message;}})},hideErrorMessages:function(a){var b=xg.index.util.FormHelper.notificationNode(a);b&&(b.innerHTML="",dojo.html.hide(b));dojo.lang.forEach(dojo.html.getElementsByClass("error",a),function(c){dojo.html.removeClass(c,"error")},!0)},showErrorMessages:function(a,b,c){var d=xg.index.util.FormHelper.notificationNode(a),e="";xg.index.util.FormHelper.hideErrorMessages(a);if(dojo.lang.isString(b)){for(var f=
null,g=null,h=0;null==f&&(g=a[h]);)"FIELDSET"!=g.tagName&&(f=g.name),h++;f&&(g={},g[f]=b,b=g)}for(name in b)a[name]&&xg.index.util.FormHelper.showErrorMessage("SELECT"!=a[name].tagName&&a[name].length?a[name][0]:a[name]),dojo.lang.isArray(b[name])?dojo.lang.forEach(b[name],function(k){e+="\x3cli\x3e"+k+"\x3c/li\x3e"},!0):e+="\x3cli\x3e"+b[name]+"\x3c/li\x3e";d&&e.length&&"DL"==d.tagName&&(c&&c.length||(c=xg.index.nls.html("wereSorry")),"std"==x$(d).attr("_fmt")?d.innerHTML="\x3ch3\x3e"+c+'\x3c/h3\x3e\x3cul class\x3d"errors last-child"\x3e'+
e+"\x3c/ul\x3e":(d.innerHTML="\x3cdt\x3e"+c+"\x3c/dt\x3e\x3cdd\x3e\x3cul\x3e"+e+"\x3c/ul\x3e\x3c/dd\x3e",dojo.html.setClass(d,"errordesc msg clear")));d&&e.length&&"DIV"==d.tagName&&!x$(d).hasClass("dy-error-msg")&&(c&&c.length||(c=xg.index.nls.html("wereSorry")),d.innerHTML="\x3ch3\x3e"+c+'\x3c/h3\x3e\x3cul class\x3d"errors last-child"\x3e'+e+"\x3c/ul\x3e",dojo.html.setClass(d,"errordesc"));d&&e.length&&"DIV"==d.tagName&&x$(d).hasClass("dy-error-msg")&&(c&&c.length||(c=xg.index.nls.html("wereSorry")),
d.innerHTML="\x3cp\x3e"+c+'\x3c/p\x3e\x3cul class\x3d"errors last-child"\x3e'+e+"\x3c/ul\x3e");d&&e.length&&(dojo.html.show(d),xg.index.util.ScrollIntoView.scrollIntoView(d))},notificationNode:function(a){if(null!=dojo.byId("form_notify"))return dojo.byId("form_notify");a=dojo.lang.isString(a)?a+"_notify":a.id+"_notify";return dojo.byId(a)},showErrorMessage:function(a){if("Editor"==a.getAttribute("dojotype"))return!1;a=a.parentNode;"LABEL"==a.tagName&&(a=a.parentNode);"DIV"==a.tagName&&dojo.html.hasClass("texteditor",
a)&&(a=a.parentNode);"LI"==a.tagName&&(dojo.dom.getFirstAncestorByTag(a,"UL")?a=dojo.dom.getFirstAncestorByTag(a,"UL").parentNode:dojo.dom.getFirstAncestorByTag(a,"OL")&&(a=dojo.dom.getFirstAncestorByTag(a,"OL").parentNode));dojo.html.addClass(a,"error");"DD"==a.tagName&&(a=dojo.dom.prevElement(a),"DT"==a.tagName&&dojo.html.addClass(a,"error"))},showMessage:function(a,b,c,d){dojo.html.setClass(a,b+" msg");d=dojo.string.trim(d);d.length&&"\x3c"!=d.charAt(0)&&(d="\x3cp\x3e"+d+"\x3c/p\x3e");a.innerHTML=
"\x3cdt\x3e"+c+"\x3c/td\x3e\x3cdd\x3e"+d+"\x3c/dd\x3e";dojo.html.show(a)},hasFileFields:function(a){a=a.getElementsByTagName("input");for(var b=0;b<a.length;b++)if(a[b].type&&"file"==a[b].type.toLowerCase())return!0;return!1},indexOf:function(a,b){for(var c=0;c<b.length;c++)if(b.options[c].value===a)return c;return null},select:function(a,b){a=xg.index.util.FormHelper.indexOf(a,b);if(null!=a)b.selectedIndex=a;else return!1;return!0},selectedOption:function(a){return a[a.selectedIndex]},radioValue:function(a){for(var b=
0;b<a.length;b++)if(a[b].checked)return a[b].value;return null},showOrHide:function(a,b){b?dojo.html.show(a):dojo.html.hide(a)},iframeTransportSupportsBrowser:function(){return!1},replaceHashAnchors:function(a){a=a.getElementsByTagName("a");for(var b=0;b<a.length;b++)a[b].href.match(/#$/)&&(a[b].href="javascript:void(0)")},scrollIntoView:function(a){xg.index.util.ScrollIntoView.scrollIntoView(a)},validateFileInputsSpeciallyForIE:function(a){if(!(dojo.render.html.ie50||dojo.render.html.ie55||dojo.render.html.ie60))return!0;
for(var b={},c=a.getElementsByTagName("input"),d=0;d<c.length;d++)"INPUT"==c[d].tagName&&"file"==c[d].type&&0!==c[d].value.length&&(c[d].value.match(/^[A-Za-z]:\\/)||(b[c[d].name]=xg.index.nls.html("fileNotFound")));xg.index.util.FormHelper.showErrorMessages(a,b);return dojo.lang.isEmpty(b)},validateRequired:function(a,b,c,d){b[c]&&(x$(b[c]).is(":checkbox")?0==xg.index.util.FormHelper.checkedCount(b[c])&&(a=xg.index.util.FormHelper.addValidationError(a,c,d)):b[c].value.length||(a=xg.index.util.FormHelper.addValidationError(a,
c,d)));return a},parseDateFromForm:function(a,b){var c=a[b+"_month"],d=a[b+"_day"];a=a[b+"_year"];return c&&d&&a?(c=parseInt(c.value),d="dd"==d.value?0:parseInt(d.value.replace(/^0*/,"")),a="yyyy"==a.value?0:parseInt(a.value),0==c||0==d||0==a?!1:{month:c,day:d,year:a}):null},isDateValid:function(a,b,c){var d=new Date(a,b-1,c);return d.getFullYear()==a&&d.getMonth()==b-1&&d.getDate()==c},validateRequiredDate:function(a,b,c,d,e){b=xg.index.util.FormHelper.parseDateFromForm(b,c);!1===b?a=xg.index.util.FormHelper.addValidationError(a,
c+"_month",d):b&&!xg.index.util.FormHelper.isDateValid(b.year,b.month,b.day)&&(a=xg.index.util.FormHelper.addValidationError(a,c+"_month",e));return a},validateDate:function(a,b,c,d){(b=xg.index.util.FormHelper.parseDateFromForm(b,c))&&!xg.index.util.FormHelper.isDateValid(b.year,b.month,b.day)&&(a=xg.index.util.FormHelper.addValidationError(a,c+"_month",d));return a},validateChoice:function(a,b,c,d,e){var f=xg.index.util.FormHelper.checkedCount(b[c]);if(b[c]&&0<f){e=xg.index.util.FormHelper.buildValidationLabel(c,
e);1<f&&(a=xg.index.util.FormHelper.addValidationError(a,c,e+" can only have one value "));f=null;if("undefined"!==typeof b[c].length)for(var g=0;g<b[c].length;g++)!0===b[c][g].checked&&(f=b[c][g].value);else f=b[c].value;dojo.lang.inArray(d,f)||(a=xg.index.util.FormHelper.addValidationError(a,c,e+" has to be one of: "+d.join(", ")))}return a},validateMultipleChoice:function(a,b,c,d,e){if(b[c]&&0<xg.index.util.FormHelper.checkedCount(b[c])){e=xg.index.util.FormHelper.buildValidationLabel(c,e);var f=
[];if("undefined"!==typeof b[c].length)for(var g in b[c])!0===b[c][g].checked&&f.push(b[c][g].value);else f.push(b[c].value);dojo.lang.forEach(f,function(h){dojo.lang.inArray(d,h)||(a=xg.index.util.FormHelper.addValidationError(a,c,e+" has to be some of: "+d.join(", ")))},!0)}return a},capitalize:function(a){a=a.split(" ");for(var b=0;b<a.length;b++)a[b]=a[b].charAt(0).toUpperCase()+a[b].substring(1);return a.join(" ")},buildValidationLabel:function(a,b){b||=xg.index.util.FormHelper.capitalize(a.replace(/_/,
" "));return b},addValidationError:function(a,b,c){a[b]?a[b].push(c):a[b]=c;return a},checkedCount:function(a){var b=0;if(a&&"undefined"!=typeof a.length)for(var c=0;c<a.length;c++)!0===a[c].checked&&b++;return b},fixPopupZIndexAfterShow:function(a){dojo.render.html.ie&&dojo.lang.forEach(xg.index.util.FormHelper.popupAncestorsForZIndexFix(a),function(b){b.style.zIndex=10})},fixPopupZIndexBeforeHide:function(a){dojo.render.html.ie&&dojo.lang.forEach(xg.index.util.FormHelper.popupAncestorsForZIndexFix(a),
function(b){b.style.zIndex=null})},popupAncestorsForZIndexFix:function(a){return dojo.dom.getAncestors(a,function(b){return dojo.html.hasClass(b,"xg_module")||dojo.html.hasClass(b,"xg_module_body")})},setTokenData:function(a){if(0!=x$(".xj_stgnfst").length){var b=x$(".xj_gnfst"),c=x$(".xj_gnfstTs");"undefined"!=typeof a&&(b=x$(a+" .xj_gnfst"),c=x$(a+" .xj_gnfstTs"));a=b.attr("_url");xg.get(a,"",function(d,e){"object"===typeof e&&1!==e.part0&&(d=e.part1,e=e.part1.replace(/[a-zA-Z]/g,function(f){return String.fromCharCode(("Z">=
f?90:122)>=(f=f.charCodeAt(0)+13)?f:f-26)}),tp=e.substr(0,10),tn=e.substr(10,d.length),c.val(tp),b.val(tn))})}}});dojo.hostenv.findModule("xg.shared.AddAsFriendLink",!1)||(dojo.provide("xg.shared.AddAsFriendLink"),dojo.widget.defineWidget("xg.shared.AddAsFriendLink",dojo.widget.HtmlWidget,{_screenName:"",_name:"",_maxMessageLength:0,_requestSentClasses:"",_xgSourceParam:void 0,_friendLimitExceededMessage:"",_sentFriendRequestLimitExceededMessage:"",_sendMessageAttempt:!1,_checkFriendStatusAndLimitsUrl:"",_sendMessageUrl:"",fillInTemplate:function(b,d){this.a=this.getFragNodeRef(d);var a=this;x$(this.a).click(function(f){f.preventDefault();
f=a._checkFriendStatusAndLimitsUrl;"undefined"!=typeof this._xgSourceParam&&(f=f+"\x26xg_source\x3d"+this._xgSourceParam);xg.get(f,null,function(e,c){if(c.friendLimitExceeded)return xg.shared.util.alert({title:xg.shared.nls.text("friendLimitExceeded"),bodyHtml:dojo.string.escape("html",a._friendLimitExceededMessage)}),!1;if(c.sentFriendRequestLimitExceeded)return xg.shared.util.alert({title:xg.shared.nls.text("requestLimitExceeded"),bodyHtml:dojo.string.escape("html",a._sentFriendRequestLimitExceededMessage)}),
!1;if(void 0!=c.friendStatus){if("pending"==c.friendStatus)return xg.shared.util.alert({title:xg.index.nls.text("wereSorry"),bodyHtml:xg.index.nls.html("youCantSendMessageUntilFriend",a._name)}),!1;if("friend"==c.friendStatus)return document.location.href=a._sendMessageUrl,!1}a.showDialog(a.a)})})},toggleDescIcon:function(b,d){d&&("working"==d?(dojo.html.removeClass(b,"xg_sprite"),dojo.html.removeClass(b,"xg_sprite-add"),dojo.html.addClass(b,"desc"),dojo.html.addClass(b,"working")):(dojo.html.removeClass(b,
"working"),dojo.html.removeClass(b,"desc"),dojo.html.addClass(b,"xg_sprite"),dojo.html.addClass(b,"xg_sprite-add")))},showDialog:function(b){var d=xg.shared.nls.html("typePersonalMessage"),a=xg.shared.util.confirm({title:xg.shared.nls.text("addNameAsFriend",this._name),bodyHtml:'                 \x3cdl class\x3d"errordesc msg clear" style\x3d"display: none"\x3e\x3c/dl\x3e                 \x3cp\x3e'+(this._sendMessageAttempt?xg.shared.nls.html("nameMustBeFriendsToMessage",dojo.string.escape("html",
this._name))+" "+xg.shared.nls.html("nameMustConfirmYourFriendship",dojo.string.escape("html",this._name)):xg.shared.nls.html("nameMustConfirmFriendship",dojo.string.escape("html",this._name)))+'\x3c/p\x3e                 \x3cp\x3e\x3ca href\x3d"#"\x3e'+xg.shared.nls.html(this._sendMessageAttempt?"includePersonalMessage":"addPersonalMessage")+'\x3c/a\x3e\x3c/p\x3e                 \x3cp style\x3d"display:none"\x3e\x3ctextarea class\x3d"add-friend-message" name\x3d"message" cols\x3d"20" rows\x3d"3"\x3e\x3c/textarea\x3e\x3c/p\x3e',
okButtonText:xg.shared.nls.text(this._sendMessageAttempt?"addAsFriend":"send"),closeOnlyIfOnOk:!0,onOk:dojo.lang.hitch(this,function(e){var c=e.getElementsByTagName("form")[0];if(!this.validate(c))return!1;xg.shared.SpamWarning.checkForSpam({url:"/main/invitation/checkMessageForSpam",messageParts:"{}",form:c,onContinue:dojo.lang.hitch(this,function(){dojo.style.hide(e);c.message.value==d&&(c.message.value="");this.send(e,c,b)}),onBack:function(){dojo.style.show(e)},onWarning:function(){dojo.style.hide(e)}})})}).getElementsByTagName("form")[0];
xg.shared.util.setAdvisableMaxLength(a.message,this._maxMessageLength);var f=a.getElementsByTagName("a")[0];dojo.event.connect(f,"onclick",dojo.lang.hitch(this,function(e){dojo.event.browser.stopEvent(e);x$(f.parentNode).remove();x$(a.message.parentNode).show();a.message.value=d;a.message.focus();dojo.html.selectInputText(a.message)}))},send:function(b,d,a){dojo.style.hide(b);dojo.io.bind({url:"/profiles/friendrequest/create?xn_out\x3djson\x26screenName\x3d"+this._screenName,mimetype:"text/javascript",
formNode:d,method:"post",encoding:"utf-8",preventCache:!0,load:dojo.lang.hitch(this,function(f,e,c){e.success&&(xg.shared.util.alert({title:xg.shared.nls.text("friendRequestSent"),bodyHtml:xg.shared.nls.html("yourFriendRequestHasBeenSent"),autoCloseTime:2E3}),f=x$("#add-as-friend-link")[0],e=x$("#send-message-link")[0],c=dojo.html.createNodesFromText('\x3ca class\x3d"'+this._requestSentClasses+'"\x3e'+xg.shared.nls.html("requestSent")+"\x3c/a\x3e")[0],this._sendMessageAttempt&&a!=f?(f.parentNode.replaceChild(c,
f),a.parentNode.removeChild(a)):(e&&e.parentNode.removeChild(e),a.parentNode.replaceChild(c,a)))})})},validate:function(b){var d=[];dojo.lang.forEach(dojo.html.getElementsByClass("error",b),function(a){dojo.html.removeClass(a,"error")});dojo.string.trim(b.message.value).length>this._maxMessageLength&&(d.push(xg.shared.nls.html("yourMessageIsTooLong",this._maxMessageLength)),xg.index.util.FormHelper.showErrorMessage(b.message));b=b.getElementsByTagName("dl")[0];b.innerHTML="\x3cdt\x3e"+xg.shared.nls.html("thereHasBeenAnError")+
"\x3c/dt\x3e\x3cdd\x3e\x3col\x3e\x3cli\x3e"+d.join("\x3c/li\x3e\x3cli\x3e")+"\x3c/li\x3e\x3c/ol\x3e\x3c/dd\x3e";dojo.style.setShowing(b,0<d.length);return 0==d.length}}));dojo.hostenv.findModule("xg.shared.Pagination",!1)||(dojo.provide("xg.shared.Pagination"),dojo.widget.defineWidget("xg.shared.Pagination",dojo.widget.HtmlWidget,{_gotoUrl:"",_maxPage:1,span:null,fillInTemplate:function(a,b){this.span=x$(this.getFragNodeRef(b));this.span.show();(a=this.span.children(".goto_button:first"))&&a.click(dojo.lang.hitch(this,function(c){dojo.event.browser.stopEvent(c);this.gotoUrl()}))},gotoUrl:function(){var a=this.span.children(".pagination_input:first");a&&-1!=(new String(a.val())).search(/^[1-9][0-9]*$/)&&
(pageUrl=(new String(this._gotoUrl)).replace(/__PAGE___/,a.val()>this._maxPage?this._maxPage:a.val()),window.location.href=pageUrl)}}));dojo.hostenv.findModule("xg.shared.combobox",!1)||(dojo.provide("xg.shared.combobox"),xg.shared.combobox={showList:function(a,b){var c=a.offset(),e=a.outerHeight(),f=a.outerWidth();b.attr("id","xj_combobox");b.addClass("xg_combobox");b.css({position:"absolute",top:c.top+e+2,left:c.left+1,width:f});x$("body").append(b);xg.shared.combobox.clickaway&&x$("body").unbind("click",xg.shared.combobox.clickaway);var g=function(d){x$("body").unbind(d);xg.shared.combobox.isDescendent(d.target,a.parent()[0])||
xg.shared.combobox.isDescendent(d.target,b[0])?x$("body").click(function(h){g(h)}):xg.shared.combobox.hideList(b)};x$("body").click(function(d){g(d)});xg.shared.combobox.clickaway=g;b.keydown(function(d){var h=b[0].selectedIndex;switch(d.keyCode){case 38:0==h&&(d.preventDefault(),b[0].selectedIndex=-1,a.focus());break;case 40:h==b[0].options.length-1&&(d.preventDefault(),b[0].selectedIndex=-1,a.focus());break;case 13:d.preventDefault(),b.find("option:selected").click()}});b.find("option").mouseover(function(d){b.focus();
this.selected=!0});b.find("option").click(function(d){d.preventDefault();a.val(x$(this).val());a.change();xg.shared.combobox.hideList(b)});b.click(function(d){d.preventDefault();d=b.find("option:selected");a.val(d.val());xg.shared.combobox.hideList(b)});b[0].selectedIndex=-1;a.focus()},isDescendent:function(a,b){var c=!1;if(b==a)return!0;x$(b).find("*").each(function(e,f){f==a&&(c=!0)});return c},hideList:function(a){a||=x$("#xj_combobox");if(!a.length)return!1;xg.shared.combobox.clickaway&&x$("body").unbind("click",
xg.shared.combobox.clickaway);a.remove();return!0},click:function(a,b){xg.shared.combobox.hideList()||b.prop("disabled")||(a=xg.shared.combobox.getList(b))&&xg.shared.combobox.showList(b,a)},keydown:function(a,b){var c=x$("#xj_combobox");if(c.length)switch(a.keyCode){case 38:a.preventDefault();c.focus();window.setTimeout(function(){c[0].selectedIndex=c[0].options.length-1},1);xg.shared.combobox.cancelKey=!0;break;case 40:a.preventDefault(),c=x$("#xj_combobox"),c.focus(),window.setTimeout(function(){c[0].selectedIndex=
0},1),xg.shared.combobox.cancelKey=!0}},keyup:function(a,b){xg.shared.combobox.cancelKey?xg.shared.combobox.cancelKey=!1:(a=xg.shared.combobox.getList(b,!0),xg.shared.combobox.hideList(),a&&xg.shared.combobox.showList(b,a))},getList:function(a,b){var c=b?a.val().toLowerCase():"";a=a.data("list");var e=[],f=x$("\x3cdiv/\x3e");a.find("option").each(function(g,d){g=x$(d).val();g=f.text(g).html();c&&-1==g.toLowerCase().indexOf(c)||e.push('\x3coption value\x3d"'+g+'"\x3e'+g+"\x3c/option\x3e")});if(0!=
e.length)return a=x$("\x3cselect\x3e"+e.join("")+"\x3c/select\x3e"),a.attr("size",Math.min(e.length+1,10)),a},initialize:function(){x$("input[list]").each(function(a,b){var c=x$(b);c.wrap("\x3cspan\x3e");a=c.attr("list");c.removeAttr("list");c.attr("autocomplete","off");"string"==typeof a?(b=x$("#"+a),0==b.find("option").length&&(b=x$("#"+a+"-select")),a=b.remove()):a=x$(a);c.data("list",a);c.css({"padding-right":"1.5em"});c.keydown(function(f){xg.shared.combobox.keydown(f,c)});c.keyup(function(f){xg.shared.combobox.keyup(f,
c)});var e=x$('\x3cspan class\x3d"xg_combobox_arrow"\x3e\u25bc\x3c/span\x3e');a=c.outerHeight();b=c.parents(":hidden").filter(function(){return"none"==x$(this).css("display")});b.length&&(b.show(),a=c.outerHeight(),b.hide());e.css({color:c.css("color"),"font-size":.45*a});x$.browser.safari&&e.css({"line-height":"1.7em","text-indent":"-2px"});c.focus(function(f){e.css({color:c.css("color")})});c.after(e);e.click(function(f){xg.shared.combobox.click(f,c)})})}},xg.addOnRequire(function(){xg.shared.combobox.initialize()}));dojo.hostenv.findModule("xg.shared.SubTabHover",!1)||(dojo.provide("xg.shared.SubTabHover"),dojo.widget.defineWidget("xg.shared.SubTabHover",dojo.widget.HtmlWidget,{a:null,subTabDiv:null,li:null,showTimeoutHandle:null,hideTimeoutHandle:null,showSubTabTime:150,hideSubTabTime:150,fillInTemplate:function(a,b){this.li=this.getFragNodeRef(b);this.a=dojo.dom.firstElement(this.li);this.subTabDiv=dojo.dom.nextElement(this.a);"ontouchstart"in window?this.initForTouchScreenDevice():this.initForNonTouchScreenDevice()},
initForTouchScreenDevice:function(){var a=x$(this.a),b=x$('\x3cli style\x3d"list-style:none !important;display:block;text-align:left;"\x3e\x3c/li\x3e'),d=x$('\x3ca style\x3d"float:none;"\x3e\x3cspan\x3e\x3c/span\x3e\x3c/a\x3e');d.prop("target",a.attr("target"));d.attr("href",a.attr("href"));d.find("span").html(a.find("span").html());b.append(d);var e=this;x$(this.subTabDiv).find("ul").prepend(b);a.click(function(c){c.preventDefault();c.stopPropagation();c=!a.hasClass("hovered");e.hideAllSubTabs();
c&&e.showSubTab()});x$(document).click(function(c){e.hideAllSubTabs()})},initForNonTouchScreenDevice:function(){xg.listen(this.a,"onmouseover",this,function(a){clearTimeout(this.hideTimeoutHandle);this.showTimeoutHandle=setTimeout(dojo.lang.hitch(this,"showSubTab"),this.showSubTabTime)});xg.listen(this.a,"onmouseout",this,function(a){clearTimeout(this.showTimeoutHandle);this.hideTimeoutHandle=setTimeout(dojo.lang.hitch(this,"hideSubTab"),this.hideSubTabTime)});xg.listen(this.subTabDiv,"onmouseover",
this,function(a){clearTimeout(this.hideTimeoutHandle)});xg.listen(this.subTabDiv,"onmouseout",this,function(a){this.hideTimeoutHandle=setTimeout(dojo.lang.hitch(this,"hideSubTab"),this.hideSubTabTime)})},hideAllSubTabs:function(){x$.each(dojo.widget.manager.getWidgetsByType("SubTabHover"),function(a,b){b.hideSubTab()})},showSubTab:function(){clearTimeout(this.hideTimeoutHandle);var a=xg.shared.util.getOffset(this.li,this.subTabDiv);dojo.html.addClass(this.a,"hovered");dojo.style.setStyleAttributes(this.subTabDiv,
"z-index:100;position:absolute;display:block;left: "+a.x+"px; top:"+(a.y+parseInt(this.li.offsetHeight))+"px;")},hideSubTab:function(){clearTimeout(this.showTimeoutHandle);dojo.style.hide(this.subTabDiv);this.ieiframe&&(this.ieiframe.style.display="none");dojo.html.removeClass(this.a,"hovered")}}));dojo.hostenv.findModule("xg.index.panel",!1)||(dojo.provide("xg.index.panel"),xg.addOnRequire(function(){var a=dojo.byId("xg_sitename");a&&(a=a.getElementsByTagName("img"))&&xg.shared.util.fixImagesInIE(a,!0)}));dojo.hostenv.findModule("xg.index.embed.search",!1)||(dojo.provide("xg.index.embed.search"),xg.addOnRequire(function(){xg.shared.util.addHints(x$(".xj_search_hint"),!0)}));dojo.hostenv.findModule("xg.shared.CookieStore",!1)||(dojo.provide("xg.shared.CookieStore"),xg.shared.CookieStore=function(){var c={},f={},d={},e={};f.initialize=function(){c.reloadSessionCookie();c.reloadPersistentCookie()};c.reloadSessionCookie=function(){var a=xg.shared.util.getCookie("xg_sc");if(a)try{d=x$.evalJSON(a)}catch(b){try{d=x$.evalJSON(decodeURIComponent(a.replace(/\+/g," ")))}catch(g){}}d instanceof Array&&(d={})};c.reloadPersistentCookie=function(){var a=xg.shared.util.getCookie("xg_pc");
if(a)try{e=x$.evalJSON(a)}catch(b){try{e=x$.evalJSON(decodeURIComponent(a.replace(/\+/g," ")))}catch(g){}}e instanceof Array&&(e={})};c.setSessionCookieValue=function(a,b){null===b||0===b.length?delete d[a]:d[a]=b;f.setCookieProper("xg_sc",x$.toJSON(d),0)};c.getSessionCookieValue=function(a){return d[a]};c.setPersistentCookieValue=function(a,b){null===b||0===b.length?delete e[a]:e[a]=b;f.setCookieProper("xg_pc",x$.toJSON(e),366)};c.getPersistentCookieValue=function(a){return e[a]};f.setCookieProper=
function(a,b,g){xg.shared.util.setCookie(a,b,g,"."+window.location.hostname)};xg.addOnRequire(function(){f.initialize()});return c}());dojo.hostenv.findModule("xg.index.authorization.social",!1)||(dojo.provide("xg.index.authorization.social"),xg.index.authorization.social=function(){return{openAuthWindow:function(a){window.open(a,"Authentication","menubar\x3dno,location\x3dno,resizable\x3dno,scrollbars\x3dno,status\x3dno, width\x3d450, height\x3d730, top\x3d"+(screen.height/2-365)+", left\x3d"+(screen.width/2-225))}}}());dojo.hostenv.findModule("xg.index.embed.sidebarUserBox",!1)||(dojo.provide("xg.index.embed.sidebarUserBox"),xg.index.embed.sidebarUserBox={isPopulated:function(a){return"1"!=x$(a).attr("_notCached")},toggleFriendRequestCounts:function(a){var d=[],e="undefined"!=typeof a||isNaN(a);d.xj_no_friend_requests=!e||1>a;d.xj_multiple_friend_requests=e&&1<a;d.xj_one_friend_request=e&&1==a;for(var f in d)d[f]?x$("."+f).show():x$("."+f).hide()}},xg.addOnRequire(function(){var a=xg.index.embed.sidebarUserBox,
d=x$(".xj_count_unreadMessages")[0],e=x$(".xj_count_unreadAlerts")[0],f=x$(".xj_count_friendRequestsReceived .xj_count")[0],g=x$("#xj_approvalBox")[0],c={preventCache:!0,getMessageCount:a.isPopulated(d)?0:1,getAlertCount:a.isPopulated(e)?0:1,getFriendRequestCount:a.isPopulated(f)?0:1,getApprovalLinks:a.isPopulated(g)?0:1};(c.getMessageCount||c.getAlertCount||c.getFriendRequestCount||c.getApprovalLinks)&&xg.get("/main/embed/getSidebarCounts?xn_out\x3djson",c,function(h,b){"undefined"!=typeof b&&(c.getMessageCount&&
(0<b.messageCount?(x$(d).html(b.messageCount),x$(".xj_messages_present").show()):x$(".xj_messages_present").hide()),c.getAlertCount&&(0<b.alertCount?(x$(e).html(b.alertCount),x$(".xj_alerts_present").show()):x$(".xj_alerts_present").hide()),c.getFriendRequestCount&&(0<b.friendRequestCount&&x$(f).html(b.friendRequestCount),a.toggleFriendRequestCounts(b.friendRequestCount)),c.getApprovalLinks&&b.approvalLinksHtml&&x$(g).html(b.approvalLinksHtml).show())})}));dojo.hostenv.findModule("xg.index.embed.footer",!1)||(dojo.provide("xg.index.embed.footer"),xg.addOnRequire(function(){try{document.execCommand("BackgroundImageCache",!1,!0)}catch(a){}}));dojo.hostenv.findModule("xg.index.embed.announcementBar",!1)||(dojo.provide("xg.index.embed.announcementBar"),xg.addOnRequire(function(){var a=x$("#announcement_close_id");0<a.length&&a.click(function(b){b.preventDefault();x$("#xj_announcement_bar").hide();xg.get(x$(this).attr("_url"),{},function(c,d){})})}));dojo.hostenv.findModule("xg.shared.EventRegistry",!1)||(dojo.provide("xg.shared.EventRegistry"),xg.shared.EventRegistry=function(){var e={};var d={};e.fire=function(a,c){if(a=d[a]){var b=[];x$.each(a,function(f,g){b.push(g(c))});return b}};e.listen=function(a,c){d[a]||(d[a]=[]);d[a].push(c)};e.listenMultiple=function(a){x$.each(a,function(c,b){e.listen(c,b)})};e.unlisten=function(a,c){var b=d[a];b&&(d[a]=x$.grep(b,function(f,g){return f!==c}))};e.listenOnce=function(a,c){if(d[a])for(var b=0;b<d[a].length;b++)if(d[a][b]+
""===c+"")return;e.listen(a,c)};return e}());dojo.hostenv.findModule("xg.shared.EditUtil",!1)||(dojo.provide("xg.shared.EditUtil"),xg.shared.EditUtil={showModuleForm:function(a,d,b){a.style.height="0px";dojo.html.show(a);dojo.lfx.html.wipeIn(a,200).play()},hideModuleForm:function(a,d,b,c){dojo.html.removeClass(b,"close");dojo.lfx.html.wipeOut(a,200,null,function(){dojo.html.hide(a);c&&c()}).play()}});dojo.hostenv.findModule("xg.shared.RecaptchaV2Popup",!1)||(dojo.provide("xg.shared.RecaptchaV2Popup"),xg.shared.RecaptchaV2Popup=function(d){d={};var a={open:!1,initialize:function(){}};d.showIfNeeded=function(b,c){a.open&&(a.hide(),a.onCancel());a.onSuccess=b;a.onCancel=c||function(){};xg.captcha.shouldShow?(b=xg.shared.util.alert({customDisplayClass:"xg_recaptcha_popup",bodyHtmlRaw:'\x3cdiv class\x3d"rp-recaptcha"\x3e\x3c/div\x3e\x3cp\x3e\x3ca href\x3d"#" class\x3d"rp-cancel"\x3e'+xg.shared.nls.html("cancel")+
"\x3c/a\x3e\x3c/p\x3e",noButtons:!0}),x$(b).find(".rp-cancel").click(function(e){e.preventDefault();a.hide();a.onCancel()}),a.renderRecaptcha(x$(b).find(".rp-recaptcha")),a.open=!0):(a.hide(),a.onSuccess(""))};a.renderRecaptcha=function(b){a.onRecaptchaReady(function(){var c=grecaptcha.render(b[0],{sitekey:xg.captcha.siteKey,callback:function(){var e=grecaptcha.getResponse(c);a.hide();a.onSuccess(e)}})})};a.onRecaptchaReady=function(b){if(window.grecaptcha)b();else var c=setInterval(function(){window.grecaptcha&&
(clearInterval(c),b())},1E3)};a.hide=function(){a.open&&(dojo.dom.removeNode(dojo.byId("xg_lightbox_alert")),xg.shared.util.hideOverlay(),a.open=!1)};xg.addOnRequire(a.initialize);return d}());dojo.hostenv.findModule("xg.shared.Facebook",!1)||(dojo.provide("xg.shared.Facebook"),xg.shared.Facebook=function(){var f={},c={};f._=c;c.initCalled=!1;c.initFinished=!1;c.onConnectedListeners=[];c.onNotConnectedListeners=[];c.callIfDefined=function(a){a&&a()};f.parseXfbml=function(a){xg.addOnFacebookLoad(function(){FB.XFBML.parse(a)})};f.requirePublishStreamPermission=function(a,b,d,e){xg.addOnFacebookLoad(function(){f.requireSession(function(){d?c.isUserPageAdmin(d,function(){c.requirePublishStreamPermissionProper(a,
b,d)},function(){c.disconnectUserFromPage();c.callIfDefined(e);c.requirePublishStreamPermissionProper(a,b)},function(){c.callIfDefined(b)}):c.requirePublishStreamPermissionProper(a,b)},function(){c.callIfDefined(b)})})};f.requireManagePagesPermission=function(a,b){xg.addOnFacebookLoad(function(){f.requireSession(function(){c.requireManagePagesPermissionProper(a,b)},function(){c.callIfDefined(b)})})};c.requireManagePagesPermissionProper=function(a,b){c.userHasManagePagesPermission(function(d){d?c.callIfDefined(a):
c.showPermissionDialog("publish_actions,manage_pages,publish_pages",function(e){e.authResponse?c.callIfDefined(a):c.callIfDefined(b)})})};f.getLoginStatus=function(a){FB.getLoginStatus(a)};f.requireSession=function(a,b){b=b||function(){};FB.getLoginStatus(function(d){d.authResponse?a():FB.login(function(e){e.authResponse?a():b()})})};f.logout=function(a){FB.logout(a)};f.getCurrentUid=function(){return FB.getAuthResponse().userID};f.getCurrentUserName=function(a){FB.api("/me",function(b){b.error||
a(b.name)})};f.getPagesAdministeredByCurrentUser=function(a){FB.api("/me/accounts","get",{},function(b){if(b.error)a({error_code:b.error.code});else{for(var d=[],e=0;e<b.data.length;e++)-1<x$.inArray("ADMINISTER",b.data[e].perms)&&d.push({name:b.data[e].name,page_id:b.data[e].id});a(d)}})};f.streamPublish=function(a,b,d,e,g,h){FB.ui({method:"stream.publish",display:"iframe",user_message_prompt:e,message:a,attachment:b,action_links:d,from:h},g)};f.feed=function(a,b,d,e,g,h,k,l,m){FB.ui({method:"feed",
display:"iframe",user_message_prompt:k,message:a,name:b,link:d,picture:e,caption:g,description:h},l)};f.publishPost=function(a,b){f.requireSession(function(){null==b?FB.api("/me/feed","post",a,function(){}):FB.api("/me/accounts","get",{},function(d){for(var e=0;e<d.data.length;e++)if(b==d.data[e].id){a.access_token=d.data[e].access_token;break}FB.api("/me/feed","post",a,function(){})})})};c.showPermissionDialog=function(a,b){xg.shared.util.alert({bodyHtml:xg.shared.nls.html("facebookWillOpen"),onOk:function(){FB.login(b,
{scope:a})}})};c.isUserPageAdmin=function(a,b,d,e){f.requireManagePagesPermission(function(){FB.api("/me/accounts","get",{},function(g){if(g.error)e();else{for(var h=0;h<g.data.length;h++)if(a==g.data[h].id){-1<x$.inArray("ADMINISTER",g.data[h].perms)?b():d();return}d()}})},e)};c.disconnectUserFromPage=function(){xg.post("/profiles/connections/update?xn_out\x3djson",{pageId:"",pageName:"",userId:f.getCurrentUid()},function(){})};c.requirePublishStreamPermissionProper=function(a,b,d){c.userHasPublishStreamPermission(function(e){e?
c.callIfDefined(a):c.showPermissionDialog(d?"publish_actions,manage_pages,publish_pages":"publish_actions",function(g){g.authResponse?c.callIfDefined(a):c.callIfDefined(b)})},d)};c.userHasPublishStreamPermission=function(a,b){var d=["publish_actions"];b&&(d.push("manage_pages"),d.push("publish_pages"));c.userHasPermissions(d,a)};c.userHasManagePagesPermission=function(a){c.userHasPermissions(["manage_pages","publish_pages"],a)};c.userHasPermissions=function(a,b){FB.api("/me/permissions",function(d){for(var e=
0;e<a.length;e++){for(var g=!1,h=0;h<d.data.length;h++)if(a[e]==d.data[h].permission&&"granted"==d.data[h].status){g=!0;break}if(!g){b(!1);return}}b(!0)})};return f}());dojo.hostenv.findModule("xg.shared.EngagementUtil",!1)||(dojo.provide("xg.shared.EngagementUtil"),xg.shared.EngagementUtil={addEngagementContextToParams:function(c,a){var b=x$(a).attr("data-page-type");b&&(c.pageType=b,("main"==b||"profile"==b||"group"==b)&&(a=(a=xg.shared.util.getModule(a))?xg.shared.util.extractModuleName(a):"")&&(c.moduleName=a));return c}});dojo.hostenv.findModule("xg.profiles.connections.twitter",!1)||(dojo.provide("xg.profiles.connections.twitter"),xg.profiles.connections.twitter=function(b){return{showTwitterPinInputDialog:function(c){xg.shared.util.confirm({bodyHtml:"\x3col\x3e\x3cli\x3e"+xg.profiles.nls.html("postToTwitter_step1")+"\x3c/li\x3e\x3cli\x3e"+xg.profiles.nls.html("postToTwitter_step2")+"\x3c/li\x3e\x3cli\x3e"+xg.profiles.nls.html("postToTwitter_step3")+"\x3c/li\x3e\x3cli\x3e"+xg.profiles.nls.html("postToTwitter_step4")+
"\x3c/li\x3e\x3c/ol\x3e\x3cp\x3e\x3clabel\x3e"+xg.profiles.nls.html("pinCode")+'\x3c/label\x3e\x3cinput name\x3d"twitterPin" type\x3d"number" /\x3e\x3c/p\x3e',title:xg.profiles.nls.html("connectToTwitter"),okButtonText:xg.profiles.nls.html("confirm"),wideDisplay:!0,closeOnlyIfOnOk:!0,onOk:function(d){var e=x$('input[name\x3d"twitterPin"]',this.form).val();x$.ajax("/profiles/connections/twitterAccessToken?xn_out\x3djsonencode",{type:"POST",data:{xg_token:xg.token,twitterPin:e}}).done(function(a,f,
g){a&&a.success&&!0===a.success&&window.location.reload()}).fail(function(a,f,g){a=JSON.parse(a.responseText)||"";b(d).remove();xg.shared.util.alert({bodyHtml:'\x3cp style\x3d"display: block" class\x3d"normal errordesc xj_error"\x3e'+a.errorMsg+"\x3c/p\x3e"})});return!1},onCancel:c})}}}(x$));dojo.hostenv.findModule("xg.profiles.embed.status",!1)||(dojo.provide("xg.profiles.embed.status"),xg.profiles.embed.status={statusDiv:null,currentStatusSpan:null,currentUpdatedSpan:null,form:null,submitButton:null,clearStatusLink:null,statusInput:null,hintContainer:null,ownedByUser:!1,activityModule:null,columnForAF:null,textEntered:!1,defaultHeight:18,pageId:null,setStatusCount:1,clearStatusCount:1,requirePermissionsIsProcessing:!1,facebookPermissionsGranted:!1,pendingFacebookStatus:null,initialize:function(){this.statusDiv=
x$("div.xj_status");if(0<this.statusDiv.length){this.form=x$("form",this.statusDiv[0]);this.form.attr("_twitterAuthenticationNeeded")&&x$("input[name\x3dpostToTwitter]",this.form).click(function(){x$(this).is(":checked")&&xg.profiles.embed.status.showTwitterAuthenticationDialog()});var a=this;this.form.attr("_facebookEnabled")&&(xg.profiles.embed.status.pageId=this.form.attr("_pageId"),onClickFacebookCheckbox=function(f){!a.requirePermissionsIsProcessing&&x$("input[name\x3dpostToFacebook]",a.form).prop("checked")?
(a.requirePermissionsIsProcessing=!0,xg.addOnFacebookLoad(function(){xg.shared.Facebook.requirePublishStreamPermission(function(){a.facebookPermissionsGranted=!0;a.requirePermissionsIsProcessing=!1;a.pendingFacebookStatus&&(a.updateFacebookStatus(a.pendingFacebookStatus),a.pendingFacebookStatus=null)},function(){x$("input[name\x3dpostToFacebook]",a.form).prop("checked")&&x$("input[name\x3dpostToFacebook]",a.form).prop("checked",!1);a.facebookPermissionsGranted=!1;a.requirePermissionsIsProcessing=
!1;a.pendingFacebookStatus=null;a.updateFacebookStatus("")},xg.profiles.embed.status.pageId)})):a.facebookPermissionsGranted=!1},x$("input[name\x3dpostToFacebook]",this.form).click(onClickFacebookCheckbox),x$("input[name\x3dpostToFacebook]",a.form).prop("checked")&&onClickFacebookCheckbox());this.submitButton=x$("button.xj_submit",this.statusDiv[0]);this.clearStatusLink=x$("a.xj_clear_status",this.statusDiv[0]);this.statusInput=x$("textarea.xj_status_input",this.statusDiv[0]);this.hintContainer=x$("div.xj_hint_container",
this.statusDiv[0]);this.inputContainer=x$("div.xj_input_container",this.statusDiv[0]);this.defaultHeight=this.statusInput.height();0<this.submitButton.length&&(this.ownedByUser=!0,this.clearStatusCount=this.setStatusCount=0);var b=x$("span.xj_remaining_count",this.statusDiv[0]);xg.shared.util.setMaxLengthWithCount(this.statusInput[0],b[0],b.attr("_maxLength"),{onNonNegative:dojo.lang.hitch(this,this.clearStatusInputErrors),showCharsLabel:!1,neverHideCount:!0});this.statusInput.bind("keyup",dojo.lang.hitch(this,
function(f){0<this.statusInput.val().length?(this.clearStatusInputErrors(),this.textEntered=!0):this.textEntered=!1}));var d=this;this.statusInput.blur(function(f){0==x$(this).val().length&&x$(this).height(d.defaultHeight)});this.activityModule=x$("div[data-module_name\x3d'activity']").filter(":first");this.ownedByUser&&0<this.activityModule.length&&(this.columnForAF=this.activityModule.attr("_columnCount"));xg.shared.util.addHints(x$(".xj_hint",this.statusDiv[0]),!0);this.statusInput.autoResize({extraSpace:10});
this.form.bind("submit",dojo.lang.hitch(this,this.onSubmit));this.submitButton.bind("click",dojo.lang.hitch(this,this.onSubmit));this.clearStatusLink.bind("click",dojo.lang.hitch(this,this.onClearStatus))}x$(".xj_status textarea").focus(function(){x$(".xj_remaining_count",this.hintContainer).removeAttr("_noUpdate");x$(".xj_status").addClass("xg_active")});x$(".xj_status textarea").blur(function(){x$(".xj_status").removeClass("xg_active")});x$(".xj_status textarea").removeAttr("style")},onSubmit:function(a){a.preventDefault();
x$(this.submitButton).add(this.statusInput).prop("disabled",!0).css("opacity",".4");var b=x$.trim(this.statusInput.val());b!==this.statusInput.attr("_hint")||this.textEntered||(b="");0==b.length?this.setInputError(xg.profiles.nls.html("statusCannotBeEmpty")):xg.shared.RecaptchaV2Popup.showIfNeeded(function(d){xg.profiles.embed.status.setStatus(b,d)},function(){xg.profiles.embed.status.enable()})},onClearStatus:function(a){a.preventDefault();this.setStatus("")},updateFacebookStatus:function(a){xg.post("/profiles/profile/setPostFacebookStatusPreference",
{postStatus:a});0<a.length&&xg.shared.Facebook.publishPost({message:a},xg.profiles.embed.status.pageId)},setStatus:function(a,b){var d=x$("[_maxLength]:first",this.hintContainer).attr("_maxLength"),f=this.form.attr("_ajaxAction");this.columnForAF&&(f=xg.shared.util.addParameter(f,"columnForAF",this.columnForAF));var e={xg_token:xg.token,status:a,source:"status","g-recaptcha-response":b};(b=x$(this.form).closest(".xg_module_activity"))&&(e.parentAfOwner=b.data("ownerName"));e=xg.shared.EngagementUtil.addEngagementContextToParams(e,
this.form);a.length>parseInt(d)?this.setInputError(xg.profiles.nls.html("statusTooLong",d)):xg.post(f,e,dojo.lang.hitch(this,function(k,h){"shouldShowCaptcha"in h&&(xg.captcha.shouldShow=h.shouldShowCaptcha);var c=this;x$(c.statusInput).fadeTo("fast",0,function(){c.updateStatusInterface(k,h,function(){c.form.attr("_facebookEnabled")&&(c.facebookPermissionsGranted?c.updateFacebookStatus(a):x$("input[name\x3dpostToFacebook]",c.form).is(":checked")?c.pendingFacebookStatus=a:c.updateFacebookStatus(""));
if(c.form.attr("_twitterEnabledForUser")){if(x$("input[name\x3dpostToTwitter]",c.form).is(":checked")){if(c.form.attr("_twitterAuthenticationNeeded")){c.showTwitterAuthenticationDialog();return}e.tweetStatus=1}else delete e.status,e.tweetStatus=0;xg.shared.RecaptchaV2Popup.showIfNeeded(function(l){e["g-recaptcha-response"]=l;xg.post("/profiles/profile/setTwitterStatus?xn_out\x3djson",e,function(m,g){"shouldShowCaptcha"in g&&(xg.captcha.shouldShow=g.shouldShowCaptcha);g.warning&&(c.setInputError(g.warning),
c.hintContainer.find("span:last-child").addClass("twitter-warning"))})})}})})}))},showTwitterAuthenticationDialog:function(){xg.shared.util.confirm({title:xg.profiles.nls.html("connectToTwitter"),bodyText:xg.profiles.nls.html("toPostStatus",xg.qh(ning.CurrentApp.name)),okButtonText:xg.profiles.nls.html("connect"),onOk:function(){xg.profiles.connections.twitter.showTwitterPinInputDialog();xg.index.authorization.social.openAuthWindow("/profiles/connections/authenticateWithTwitter")},onCancel:dojo.lang.hitch(this,
function(){x$("input[name\x3dpostToTwitter]",this.form).prop("checked",!1)})})},updateStatusInterface:function(a,b,d){d||=function(){};b.success?(a=b.status,0<a.length?(this.clearStatusInputErrors(),this.resetCurrentStatusInput(),d(),0==this.setStatusCount&&window.xn&&xn.track&&xn.track.pageView&&xn.track.pageView(4556,"set-status",String(a.length)),this.setStatusCount++,this.activityModule&&0<x$(".module-feed",this.activityModule).length&&b.newAFHtml&&xg.activity.embed.ActivityFeedUpdater.addItemsToFeed(this.activityModule.attr("id"),
b.newAFHtml,function(){xg.profiles.embed.status.enable()})):(this.hideCurrentStatus(),0==this.clearStatusCount&&window.xn&&xn.track&&xn.track.pageView&&xn.track.pageView(4556,"clear-status"),this.clearStatusCount++),this.statusInput.blur()):b&&"errorMessage"in b?this.setInputError(b.errorMessage):this.setInputError(xg.profiles.nls.html("errorUpdatingStatus"))},hideCurrentStatus:function(){this.ownedByUser?this.resetCurrentStatusInput():this.statusDiv.hide("fast")},resetCurrentStatusInput:function(){var a=
x$(".xj_remaining_count",this.hintContainer);a.attr("_noUpdate","true");this.statusInput.val(this.statusInput.attr("_hint"));x$(this.statusInput).change();this.textEntered=!1;this.clearStatusInputErrors();a.html(a.attr("_maxLength")).removeClass("length-exceeded")},clearStatusInputErrors:function(){this.inputContainer.removeClass("error");this.statusDiv.removeClass("form-error");this.hintContainer.removeClass("form-error");var a=this.hintContainer.find("span:last-child");a.removeClass("form-validation-msg").text(a.attr("_hint"));
a.removeClass("twitter-warning")},setInputError:function(a){this.inputContainer.addClass("error");xg.profiles.embed.publisher.setInputError(this.statusDiv,a);this.enable()},enable:function(){x$(this.submitButton).add(this.statusInput).prop("disabled",!1).css("opacity","1")}});dojo.hostenv.findModule("xg.shared.DateFormatter",!1)||(dojo.provide("xg.shared.DateFormatter"),xg.shared.DateFormatter=function(){var e={elapsedTime:function(a,c){c="undefined"===typeof c?!0:c;var d=new Date,b=0,f=0;a&&(f=Date.parse(a),b=d.getTime()-f,b=Math.floor(b/1E3));if(0>=b)return xg.shared.nls.text("justNow");if(60>b)return xg.shared.nls.text("nSecondsAgo",b);if(3600>b)return xg.shared.nls.text("nMinutesAgo",Math.floor(b/60));if(86400>b)return xg.shared.nls.text("nHoursAgo",Math.floor(b/60/
60));if(172800>b)return xg.shared.nls.text("yesterday");a=new Date(f);return 518400>b?(d=a.getUTCDay(),c?xg.shared.nls.text("onDay"+d):xg.events.nls.text(g[d])):d.getUTCFullYear()===a.getUTCFullYear()?e.monthDay(a.getUTCMonth(),a.getUTCDate()):e.monthDayYear(a.getUTCMonth(),a.getUTCDate(),a.getUTCFullYear())}},g="sunday monday tuesday wednesday thursday friday saturday".split(" ");e.monthDay=function(a,c){return xg.shared.nls.text("month"+a+"Day",c)};e.monthDayYear=function(a,c,d){return xg.shared.nls.text("month"+
a+"DayYear",c,d)};return e}());dojo.hostenv.findModule("xg.shared.timeUpdater",!1)||(dojo.provide("xg.shared.timeUpdater"),xg.addOnRequire(function(){var a={initialize:function(){xg.shared.EventRegistry.listenOnce("activity-feed-updated",a.updateTimes);window.setInterval(a.updateTimes,6E4)},updateTimes:function(){var b;x$(".event-info-timestamp").each(function(){x$(this).data("time")&&(b=xg.shared.DateFormatter.elapsedTime(x$(this).data("time"),!1),x$(this).html(xg.qh(b)))})}};a.initialize()}));dojo.hostenv.findModule("xg.activity.embed.ActivityModule",!1)||(dojo.provide("xg.activity.embed.ActivityModule"),dojo.widget.defineWidget("xg.activity.embed.ActivityModule",dojo.widget.HtmlWidget,{_setValuesUrl:"",_displaySet:"",_displayOptionsJson:"",_activityNum:"",_excerptLengthOptionsJson:"",_excerptLengthSet:"",_numOptionsJson:"",_settingsUrl:"",_privacySettingsUrl:"",_isProfile:"",_isAdmin:"",_activityOptionsAvailable:"",isContainer:!0,fillInTemplate:function(b,c){this.module=this.getFragNodeRef(c);
this.h2=this.module.getElementsByTagName("h2")[0];this._setValuesUrl&&(dojo.dom.insertAfter(dojo.html.createNodesFromText('\x3cp class\x3d"edit"\x3e\x3ca class\x3d"button" href\x3d"#"\x3e\x3cspan\x3e'+xg.activity.nls.html("edit")+"\x3c/span\x3e\x3c/a\x3e\x3c/p\x3e")[0],this.h2),dojo.event.connect(this.module.getElementsByTagName("a")[0],"onclick",dojo.lang.hitch(this,function(a){dojo.event.browser.stopEvent(a);this.form&&"0px"!=this.form.style.height?this.hideForm():this.showForm()})))},showForm:function(){var b=
this.module.getElementsByTagName("a")[0],c="";dojo.lang.forEach(dj_eval(this._displayOptionsJson),function(e){c+='\x3coption value\x3d"'+dojo.string.escape("html",e.value)+'"\x3e'+dojo.string.escape("html",e.label)+"\x3c/option\x3e"});var a="";dojo.lang.forEach(dj_eval(this._numOptionsJson),function(e){a+='\x3coption value\x3d"'+dojo.string.escape("html",e.value)+'"\x3e'+dojo.string.escape("html",e.label)+"\x3c/option\x3e"});var d="";dojo.lang.forEach(dj_eval(this._excerptLengthOptionsJson),function(e){d+=
'\x3coption value\x3d"'+e+'"\x3e'+e+"\x3c/option\x3e"});this.head=dojo.html.getElementsByClass("xg_module_head",this.module)[0];if(this.form)dojo.html.removeClass(this.form,"collapsed");else{var f="";this._activityOptionsAvailable&&!this._isProfile?f+='                \x3cdl\x3e                     \x3cdt\x3e\x3c/dt\x3e                     \x3cdd style\x3d"line-height:1.2em!important"\x3e                         \x3ca href\x3d"'+this._settingsUrl+'"\x3e'+xg.activity.nls.html("setWhatActivityGetsDisplayed")+
"\x3c/a\x3e                     \x3c/dd\x3e                 \x3c/dl\x3e":this._isProfile&&(f+='                \x3cdl\x3e                     \x3cdt\x3e\x3c/dt\x3e                     \x3cdd style\x3d"line-height:1.2em!important"\x3e                         \x3ca href\x3d"'+this._privacySettingsUrl+'"\x3e'+xg.activity.nls.html("setWhatActivityGetsDisplayed")+"\x3c/a\x3e                     \x3c/dd\x3e                 \x3c/dl\x3e");this.form=dojo.html.createNodesFromText(dojo.string.trim('             \x3cform class\x3d"xg_module_options"\x3e             \x3cfieldset class\x3d"dy-form-2"\x3e                 \x3cdl class\x3d"setting_display"\x3e                    \x3cdt\x3e\x3clabel for\x3d"'+
this.widgetId+'_display"\x3e'+xg.profiles.nls.html("display")+'\x3c/label\x3e\x3c/dt\x3e                    \x3cdd\x3e                         \x3cselect id\x3d"'+this.widgetId+'_display"\x3e                             '+c+'                         \x3c/select\x3e                     \x3c/dd\x3e                 \x3c/dl\x3e                 \x3cdl class\x3d"setting_num"\x3e                     \x3cdt\x3e\x3clabel for\x3d"'+this.widgetId+'_num"\x3e'+xg.activity.nls.html("show")+'\x3c/label\x3e\x3c/dt\x3e                     \x3cdd\x3e                     \x3cselect id\x3d"'+
this.widgetId+'_num" class\x3d"short"\x3e                         '+a+"                     \x3c/select\x3e "+xg.activity.nls.html("events")+'                    \x3c/dd\x3e                 \x3c/dl\x3e                 \x3cdl class\x3d"setting_excerptLength"\x3e                     \x3cdt class\x3d"excerptItem"\x3e\x3clabel for\x3d"'+this.widgetId+'_excerptLength"\x3e'+xg.profiles.nls.html("show")+'\x3c/label\x3e\x3c/dt\x3e                     \x3cdd class\x3d"excerptItem"\x3e                         \x3cselect id\x3d"'+
this.widgetId+'_excerptLength"\x3e                             '+d+"                        \x3c/select\x3e "+xg.profiles.nls.html("htmlCharacters")+"                    \x3c/dd\x3e                 \x3c/dl\x3e                 "+f+'                 \x3cdl class\x3d"setting_sort"\x3e                     \x3cdt\x3e\x3c/dt\x3e                     \x3cdd\x3e\x3cinput type\x3d"submit" value\x3d"'+xg.activity.nls.html("save")+'" class\x3d"button submit"/\x3e                     \x3ca class\x3d"action-secondary"  id\x3d"'+
this.widgetId+'_cancelbtn" href\x3d"#"\x3e'+xg.activity.nls.html("cancel")+"\x3c/a\x3e \x3c/dd\x3e                 \x3c/dl\x3e             \x3c/fieldset\x3e         \x3c/form\x3e                 "))[0];dojo.dom.insertAfter(this.form,this.head);this.formHeight=this.form.offsetHeight;this.form.style.height="0px";xg.index.util.FormHelper.select(this._displaySet,dojo.byId(this.widgetId+"_display"));xg.index.util.FormHelper.select(this._activityNum,dojo.byId(this.widgetId+"_num"));xg.index.util.FormHelper.select(this._excerptLengthSet,
dojo.byId(this.widgetId+"_excerptLength"));dojo.event.connect(this.form,"onsubmit",dojo.lang.hitch(this,function(e){this.save(e)}));dojo.event.connect(dojo.byId(this.widgetId+"_cancelbtn"),"onclick",dojo.lang.hitch(this,function(e){dojo.event.browser.stopEvent(e);this.hideForm()}))}this.updateFieldDisplay();var g=this;x$("#"+this.widgetId+"_display").change(function(){g.updateFieldDisplay()});xg.shared.EditUtil.showModuleForm(this.form,this.formHeight,b)},updateFieldDisplay:function(){"detail"==dojo.byId(this.widgetId+
"_display").value?x$(".excerptItem",this.form).show():x$(".excerptItem",this.form).hide()},hideForm:function(){var b=this.module.getElementsByTagName("a")[0];xg.shared.EditUtil.hideModuleForm(this.form,this.formHeight,b)},save:function(b){dojo.event.browser.stopEvent(b);this._displaySet=xg.index.util.FormHelper.selectedOption(dojo.byId(this.widgetId+"_display")).value;this._activityNum=xg.index.util.FormHelper.selectedOption(dojo.byId(this.widgetId+"_num")).value;this._excerptLengthOptionsJson&&(this._excerptLengthSet=
x$("#"+this.widgetId+"_excerptLength").val());this.hideForm();xg.activity.embed.main.startUpdate(x$(this.module));b=xg.activity.embed.main.addWidthParameters(this._setValuesUrl,x$(this.module));dojo.io.bind({url:b,method:"post",content:{displaySet:this._displaySet,activityNum:this._activityNum,excerptLengthSet:this._excerptLengthSet},preventCache:!0,mimetype:"text/javascript",encoding:"utf-8",load:dojo.lang.hitch(this,function(c,a,d){xg.activity.embed.main.handleLoad(x$(this.module),a)})})},updateEmbed:function(b){xg.activity.embed.main.refresh(b.item)}}),
xg.activity.embed.main=function(){var b={},c={};b.fadeOutTo=.25;b.initialize=function(){x$(".xg_module_activity").delegate(".xj_activity_feed_view_option a","click",function(a){a.preventDefault();a=x$(this).parent();b.updating||a.hasClass("selected-activity-view")||($selected=a.siblings(".selected-activity-view"),$selected.html('\x3ca href\x3d"#"\x3e'+$selected.html()+"\x3c/a\x3e"),$selected.removeClass("selected-activity-view"),a.addClass("selected-activity-view"),a.html(a.find("a").html()),b.activityFeedView=
a.data("id"),c.refresh(a.closest(".xg_module_activity")))})};c.refresh=function(a,d){c.startUpdate(a);var f={activityFeedView:b.activityFeedView,timeToPreventCaching:(new Date).getTime()},g=xg.activity.embed.main.addWidthParameters(a.attr("_refreshUrl"),a);xg.get(g,f,function(e,h){a.css("visibility","");c.handleLoad(a,h,d);a.find("div.xg_handle").first().hide()})};c.addWidthParameters=function(a,d){var f=d.closest(".ui-sortable").attr("_maxembedwidth")||d.attr("_maxEmbedWidth");d=d.closest(".ui-sortable").attr("_columncount")||
d.attr("_columnCount");a=xg.shared.util.addParameter(a,"maxEmbedWidth",f);return a=xg.shared.util.addParameter(a,"columnCount",d)};c.handleLoad=function(a,d,f){x$(".xg_module_body, .xg_module_foot",a).remove();$newFeed=x$(d.moduleBodyAndFooterHtml);x$(".module-feed",$newFeed).css("opacity",b.fadeOutTo);a.append($newFeed);c.stopUpdate(a);b.initializeJavascript(a);f&&f()};c.startUpdate=function(a){b.updating||(b.updating=!0,x$(".module-feed",a).fadeTo("fast",b.fadeOutTo))};c.stopUpdate=function(a){b.updating&&
(x$(".module-feed",a).fadeTo("fast",1),b.updating=!1)};b.initializeJavascript=function(a){xg.profiles.embed.status.initialize();xg.shared.util.parseWidgets(x$('div[dojotype\x3d"quickAddBar"]',a).get(0))};xg.addOnRequire(function(){b.initialize()});return c}());dojo.hostenv.findModule("xg.activity.embed.ActivityFeedUpdater",!1)||(dojo.provide("xg.activity.embed.ActivityFeedUpdater"),xg.activity.embed.ActivityFeedUpdater=function(){var g=this,c={uploadFeedEndpoint:"/activity/index/setSocialFeedData?xn_out\x3djson",eventRegistry:xg.shared.EventRegistry,$newFeedItems:{},addingItems:{},newItemLimit:30,uploadSocialFeedData:function(a,b,d,e){if(!b||0>=b.length)return!1;xg.post(c.uploadFeedEndpoint,{feedId:a,socialFeedData:b,socialFeedIdentifier:d,socialFeedProvider:e})},
showNewFeedItemsIndicator:function(a,b){var d=x$("#"+a).find(".xj-new-feed-items");c.$newFeedItems[a]=x$(b);if(!b||0>=b.length)return d.parent().hide(),!1;a=c.newItemText(x$(b).length);d.find(".xj-new-item-text").html(a);d.parent().fadeIn("fast")},newItemText:function(a){return a<c.newItemLimit?xg.activity.nls.html("newItems",a):xg.activity.nls.html("limitNewItems",c.newItemLimit)}};g.addItemsToFeed=function(a,b,d){c.addingItems[a]=!0;$parentModule=x$("#"+a);if(b=c.$newFeedItems[a]?x$(b).add(c.$newFeedItems[a]):
x$(b))b.hide(),b.length>=c.newItemLimit?xg.activity.embed.main.refresh($parentModule,c.doneAddingNewItems(a,d)):($parentModule.find(".module-feed").prepend(b),b.fadeIn("slow",c.doneAddingNewItems(a,d))),c.$newFeedItems[a]=null;$parentModule.find(".xg_new_activity_items_container").hide()};c.doneAddingNewItems=function(a,b){return function(){c.addingItems[a]=!1;c.eventRegistry.fire("activity-feed-updated");"function"===typeof b&&b()}};c.eventRegistry.listenMultiple({"social-feed-retrieved":function(a){c.uploadSocialFeedData(a.feedId||
"xg_network_activity",a.feedItems,a.feedIdentifier,a.feedProvider)},"new-feed-items-retrieved":function(a){c.showNewFeedItemsIndicator(a.feedId||"xg_network_activity",a.feedHtml)}});g.updateFeed=function(a,b,d){c.addingItems[a]=!0;if(!b||""==x$.trim(b))return!1;var e=x$("#"+a);b="\x3cdiv\x3e"+b.replace("\r\n","").replace("\n","").replace("\r","")+"\x3c/div\x3e";b=x$(b);b=x$(b).find(".module-feed");var f=x$(e).find(".module-feed");x$(f).find(".xj_activity_item").addClass("removal-candidate");var l=
[],h=!1;x$(b).find(".xj_activity_item").each(function(){var k=x$(this).attr("id"),m=x$(f).find("#"+k);0==m.size()?(x$(this).css("display","none"),x$(this).addClass("new-feed-item"),l.push(this)):m.removeClass("removal-candidate");h&&x$(this).attr("_lastId",h);h=k});x$(l).each(function(k,m){(k=x$(this).attr("_lastId"))?x$(this).insertAfter(x$("#"+k,f)):x$(f).prepend(x$(m))});x$(".removal-candidate").remove();"function"==typeof d&&d();x$(".new-feed-item").fadeIn("slow",function(){x$(this).removeClass("new-feed-item");
c.addingItems[a]=!1});x$(b).remove();e.find(".xg_new_activity_items_container").hide()};g.addGetLatestFeedParams=function(a,b){b="#"+b;var d=x$(b).attr("_columncount"),e=x$(b).attr("_maxembedwidth"),f=x$(b).attr("_embedlocatorid");d={columnCount:d,maxEmbedWidth:e,activityEmbedId:f,returnLatestFeed:"1"};x$(".xj_activity_feed_view_option",b)&&(d.activityFeedView=x$(".selected-activity-view",b).data("id"));x$.each(d,function(l,h){a=xg.shared.util.addParameter(a,l,h)});return a};c.checkForNewItems=function(){x$(".xg_module_activity").each(function(a,
b){$elem=x$(b);a=$elem.attr("id");if(!(c.addingItems[a]||c.$newFeedItems[a]&&c.$newFeedItems[a].length>=c.newItemLimit)){$newestEvent=$elem.find(".event-info-timestamp:first");if(!$newestEvent)return!1;b={activityFeedView:$elem.find(".selected-activity-view").data("id"),ownerName:$elem.data("ownerName"),excerptLength:$elem.data("excerptLength"),afterTime:$newestEvent.data("time")};var d=$elem.data("getItemsUrl");d=xg.activity.embed.main.addWidthParameters(d,$elem);d=xg.shared.util.addParameter(d,
"noCache",Math.floor((new Date).getTime()/6E4));x$.get(d,b,c.feedItemsRetrievedCallback(a));c.blurred&&(window.clearInterval(c.intervalId),c.intervalId=null)}})};c.feedItemsRetrievedCallback=function(a){return function(b){b=dj_parseJSON(b);c.addingItems[a]||xg.shared.EventRegistry.fire("new-feed-items-retrieved",{feedId:a,feedHtml:b.html})}};c.initializeLiveUpdate=function(){c.pollingFrequency=6E4;x$(window).on("blur",function(){c.blurred=!0});x$(window).on("focus",function(){c.intervalId||(c.blurred&&
window.setTimeout(c.checkForNewItems,100),c.startLiveUpdateInterval());c.blurred=!1});x$(".xg_module_activity").on("click",".xj-new-feed-items",function(a){a.preventDefault();g.addItemsToFeed(x$(this).closest(".xg_module_activity").attr("id"))});c.startLiveUpdateInterval()};c.startLiveUpdateInterval=function(){c.intervalId=window.setInterval(c.checkForNewItems,c.pollingFrequency)};xg.addOnRequire(function(){c.initializeLiveUpdate()});return g}());dojo.hostenv.findModule("xg.shared.editors.PlainEditor",!1)||(dojo.provide("xg.shared.editors.PlainEditor"),xg.shared.editors.PlainEditor=function(a){var b={setMaxLength:function(c){xg.shared.util.setAdvisableMaxLength(a[0],c)},updateBackgroundColor:function(){},val:function(){if(arguments.length)a.val(arguments[0]);else return a.val()},valWithLineBreakAdjustments:function(){return b.val()},adjustLineBreaks:function(){},unadjustLineBreaks:function(){},initializeAfterPageLoad:function(){return b},
uninitialize:function(){return b},focus:function(){a[0].focus()},moveCursorToStart:function(){xg.shared.editors.Editor.moveCursorToStart(a[0])},updateTextarea:function(){},setEnabled:function(c){c?a.removeClass("disabled").prop("disabled",!1):a.addClass("disabled").prop("disabled",!0)},getTextarea:function(){return a}};return b});dojo.hostenv.findModule("xg.shared.editors.tinymce.WordpressLineBreakRules",!1)||(dojo.provide("xg.shared.editors.tinymce.WordpressLineBreakRules"),xg.shared.editors.tinymce.WordpressLineBreakRules=function(e){return{adjustLineBreaksEnteredInHtmlMode:function(a){if(a.match(/<script\b|<p\b|<br\b/i))return a;var b=[];for(a=a.replace(/<form\b[\s\S]*?<\/form>/gi,function(c){b.push(c);return"\x3cform\x3e"+(b.length-1)+"\x3c/form\x3e"});;){var d=a.replace(RegExp("(\x3c[^\\s](?:[^\x3e\\n\"']|'([^'\\n]|\\\\')*'|\"([^\"\\n]|\\\\\")*\")*)\\n+",
"g"),"$1 ");if(a==d)break;a=d}a=a.replace(/<p>\s*<\/p>/g,"\x3cp\x3e\x26nbsp;\x3c/p\x3e");a=a.replace(/<div>\s*<\/div>/g,"\x3cdiv\x3e\x26nbsp;\x3c/div\x3e");a=a.replace(/\r\n/g,"\n");a=a.replace(RegExp("\x3cBR\\s*/?\x3e\\n","gi"),"\x3cbr /\x3e");a=a.replace(RegExp("\x3c/?P\\s*\x3e\\n?","gi"),"\n\n");a=a.replace(/(^[\n\s]*)|([\n\s]*$)/g,"");a=a.replace(RegExp("[\\n\\s]*(\x3c/?(?:OBJECT|EMBED|PARAM|APPLET|IFRAME|SCRIPT|BR|ADDRESS|BLOCKQUOTE|CENTER|DIR|DIV|DL|FIELDSET|FORM|H1|H2|H3|H4|H5|H6|HR|ISINDEX|MENU|NOFRAMES|NOSCRIPT|OL|P|PRE|TABLE|UL|DD|DT|FRAMESET|LI|TBODY|TD|TFOOT|TH|THEAD|TR)\\b)",
"gi"),"$1");a=a.replace(/\n\s*(\n\s*)+/g,"\x3cp\x3e");a=a.replace(/\n/g,"\x3cbr /\x3e");a=a.replace(RegExp("^\\s*(?!\x3c/?(OBJECT|EMBED|PARAM|APPLET|IFRAME|SCRIPT|BR|ADDRESS|BLOCKQUOTE|CENTER|DIR|DIV|DL|FIELDSET|FORM|H1|H2|H3|H4|H5|H6|HR|ISINDEX|MENU|NOFRAMES|NOSCRIPT|OL|P|PRE|TABLE|UL|DD|DT|FRAMESET|LI|TBODY|TD|TFOOT|TH|THEAD|TR)\\b)","i"),"\x3cp\x3e");x$.each(b,function(c,f){a=a.replace("\x3cform\x3e"+c+"\x3c/form\x3e",b[c])});return a},adjustLineBreaksEnteredInVisualMode:function(a){return a=a.replace(RegExp("\x3cBR\\s*/?\x3e(?!\\n)",
"gi"),"\x3cbr /\x3e\n")}}}(x$));dojo.hostenv.findModule("xg.shared.editors.tinymce.Utilities",!1)||(dojo.provide("xg.shared.editors.tinymce.Utilities"),xg.shared.editors.tinymce.Utilities=function(p){var c={},k={},g,e,m=[["mce_code"],["mce_link"],["mce_image"],["mce_file"],["mce_bold"],["mce_italic"],["mce_underline"],["mce_bullist"],["mce_numlist"],["mce_media"],["mce_removeformat"],["mce_justifyleft","mce_justifycenter","mce_justifyright"],["mce_strikethrough"],["mce_pastetext"],["mce_blockquote"],["mce_tinyautosave"]],n=0;k.initialize=
function(){};c.addIdIfNecessary=function(a){a.attr("id")||a.attr("id","xj_mce_"+n++)};c.getEditor=function(a){return window.tinymce?tinymce.get("mce_fullscreen")||tinymce.get(a.attr("id")):null};c.updateLiquidLayout=function(a){var b=c.getEditor(a)?x$(".mceToolbar:first",c.getEditor(a).getContainer()):a.data("xj_html_toolbar").getElement().find("table:first"),d=b.find(".mceToolbarRow1:first").find("td");if(a.parent().hasClass("ultracompact-editor"))if(d.addClass("dy-displaynone"),a.parent().removeClass("uninitialized-liquid-layout"),
a.data("xj_html_toolbar").updateWidth(),a.data("xj_html_dragbar").updateWidth(),a=b.width())for(b=0;b<m.length;b++){var f=m[b];if(7*d.filter(":visible").find(".mceSeparator").length+9+27*d.filter(":visible").find(".mceButton").length+27*f.length>a)break;for(var h=0;h<f.length;h++)d.find("."+f[h]).parent().removeClass("dy-displaynone");var l=!0;d.each(function(){x$(this).find(".mceSeparator").length?(l?x$(this).addClass("dy-displaynone"):x$(this).removeClass("dy-displaynone"),l=!0):x$(this).find(".mceButton").length&&
x$(this).is(":visible")&&(l=!1)})}else d.find(".mce_code, .mce_link, .mce_image, .mce_bold, .mce_italic").parent().removeClass("dy-displaynone"),d.find(".mce_bold, .mce_code").parent().prev().removeClass("dy-displaynone");else d.removeClass("dy-displaynone"),a.parent().removeClass("uninitialized-liquid-layout"),a.data("xj_html_toolbar").updateWidth(),a.data("xj_html_dragbar").updateWidth()};c.updateBackgroundColor=function(a,b){b.getDoc()&&(b=x$(b.getDoc().body),(a=0<xg.shared.util.closest(a,".error").length)&&
!b.hasClass("error")?b.addClass("error").css("background-color","#FFF4F2"):!a&&b.hasClass("error")&&b.removeClass("error").css("background-color","#FFFFFF"))};c.saveSelection=function(a){e=g=void 0;var b=c.getEditor(a);return b?(contentWindow=b.getWin(),contentWindow.focus(),contentWindow.document.selection&&(g=contentWindow.document.selection.createRange()),b.selection.getContent({format:"text"})):document.selection?(a.focus(),g=document.selection.createRange(),g.text):a[0].selectionStart||"0"==
a[0].selectionStart?(e={start:a[0].selectionStart,end:a[0].selectionEnd},a[0].value.substring(e.start,e.end)):""};c.overwriteSelection=function(a,b,d){c.restoreSelection(a);var f=c.getEditor(a);if(f)d&&f.selection.collapse(!1),tinyMCE.execCommand("mceInsertContent",!1,b);else if(g)g.text=b,d&&g.collapse();else if(e){f=a[0];e.end>a.val().length&&(e.end=a.val().length);var h=f.scrollTop;a.val(a.val().slice(0,e.start)+b+a.val().slice(e.end));f.scrollTop=h;f.selectionStart=e.start;f.selectionEnd=e.end=
e.start+b.length;d&&(f.selectionStart=e.start=e.end)}else a[0].value+=b};c.restoreSelection=function(a){var b=c.getEditor(a);b?(contentWindow=b.getWin(),g&&g.select(),contentWindow.focus()):a.focus()};c.getDefaultTargetForUrl=function(a){if(0===a.indexOf(ning.CurrentApp.url))return"_self";for(var b=0;b<ning.CurrentApp.domains.length;b++)if(0===a.indexOf("http://"+ning.CurrentApp.domains[b]))return"_self";return-1!=a.indexOf("api.ning.com")?"_self":"_blank"};c.isMaxFileUploadCountReached=function(a){var b=
parseInt(a.attr("_maxFileLimit"),10);return b?k.countUploadedFiles(a)>=b:!1};k.countUploadedFiles=function(a){a=(c.getEditor(a)?c.getEditor(a).getContent():a.val()).match(/https?:\/\/api\.(xn.\.ningops\.net|ning\.com)(:[0-9]+)?\/[^"'\s?]+/gi)||[];var b={},d=0;x$.each(a,function(f,h){b[h]||(b[h]=h,d++)});return d};c.adjustLineBreaksEnteredInHtmlMode=function(a){return!a.parents(".texteditor:first").find(".html_editor_toolbar table").is(":visible")||a.val().match(/<script/i)?a.val():xg.shared.editors.tinymce.WordpressLineBreakRules.adjustLineBreaksEnteredInHtmlMode(a.val())};
c.adjustLineBreaksEnteredInVisualMode=function(a){return xg.shared.editors.tinymce.WordpressLineBreakRules.adjustLineBreaksEnteredInVisualMode(a.val())};c.removeCdataTags=function(a){return a.replace(/\/\/ ?<!\[CDATA\[\n?/g,"").replace(/\/\/ ?\]\]>\n?/g,"")};xg.addOnRequire(function(){k.initialize()});return c}(x$));dojo.hostenv.findModule("xg.shared.editors.tinymce.LinkDialog",!1)||(dojo.provide("xg.shared.editors.tinymce.LinkDialog"),xg.shared.editors.tinymce.LinkDialog=function(f,d){var k={},g={},e=xg.shared.editors.tinymce.Utilities.getEditor(f),l={heading:xg.index.nls.text("addLink"),targetSectionVisible:!1,getTarget:function(b,a){return xg.shared.editors.tinymce.Utilities.getDefaultTargetForUrl(b)},initializeForm:function(b){var a=xg.shared.editors.tinymce.Utilities.saveSelection(f);b.find("input[name\x3dtext]").val(a);
b.find("input[name\x3durl]").val("http://")},onOk:function(b){xg.shared.editors.tinymce.Utilities.overwriteSelection(f,b)}},m={heading:xg.index.nls.text("editLink"),targetSectionVisible:!0,getTarget:function(b,a){return a.find("input[name\x3dtarget]:checked").val()},initializeForm:function(b){xg.shared.editors.tinymce.Utilities.saveSelection(f);b.find("input[name\x3dtext]").val(d.text());b.find("input[name\x3durl]").val(d.attr("href"));d.attr("target")&&"_blank"===d.attr("target").toLowerCase()?b.find("input[value\x3d_blank]").prop("checked",
!0):b.find("input[value\x3d_self]").prop("checked",!0)},onOk:function(b){var a=e?e.getDoc():null;e.dom.replace(x$(b,a)[0],d[0]);e.undoManager.add()}},h;g.initialize=function(){d||=g.findLink();h=d?m:l};g.findLink=function(){if(!e||!e.selection.getNode())return null;$node=x$(e.selection.getNode());return"A"===$node[0].nodeName?$node:null};k.show=function(){var b=g.createDialog({onOk:function(a){var c=x$("form",a)[0];if((a=x$.trim(c.url.value))&&"http://"!==a){var n=x$.trim(c.text.value)||a;0>a.indexOf(":")&&
(a="http://"+a);c=h.getTarget(a,x$(c));h.onOk('\x3ca href\x3d"'+a+'" target\x3d"'+c+'"\x3e'+xg.qh(n)+"\x3c/a\x3e")}else xg.shared.editors.tinymce.Utilities.restoreSelection(f)},onCancel:function(a){xg.shared.editors.tinymce.Utilities.restoreSelection(f)}});xg.shared.util.showOverlay();x$(b).show();$form=x$("form",b);h.initializeForm($form);$form.find("input[name\x3durl]")[0].select();$form.find("input[name\x3durl]").focus()};g.createDialog=function(b){var a=x$('             \x3cdiv class\x3d"xg_theme xg_floating_module" style\x3d"display:none; z-index: 300000"\x3e     \x3cdiv class\x3d"xg_floating_container xg_tinymce_dialog xg_floating_container_wide xg_module xg_lightborder"\x3e         \x3cdiv class\x3d"xg_module_head"\x3e             \x3ch2\x3e'+
xg.qh(h.heading)+'\x3c/h2\x3e             \x3ca class\x3d"xg_icon xg_icon-close cancel5" href\x3d"#" \x3e'+xg.index.nls.html("close")+'\x3c/a\x3e         \x3c/div\x3e         \x3cdiv class\x3d"xg_module_body"\x3e             \x3cform\x3e                 \x3cfieldset class\x3d"dy-form-2"\x3e                     \x3cdl\x3e                         \x3cdt\x3e\x3clabel for\x3d"xj_link_text" class\x3d"dy-label"\x3e'+xg.index.nls.html("linkText")+'\x3c/label\x3e\x3c/dt\x3e                         \x3cdd\x3e\x3cinput type\x3d"text" name\x3d"text" id\x3d"xj_link_text" class\x3d"dy-input-text dy-input-medium"/\x3e\x3c/dd\x3e                     \x3c/dl\x3e                     \x3cdl\x3e                         \x3cdt\x3e\x3clabel for\x3d"xj_link_url" class\x3d"dy-label"\x3e'+
xg.shared.nls.html("linkUrl")+'\x3c/label\x3e\x3c/dt\x3e                         \x3cdd\x3e\x3cinput type\x3d"text" name\x3d"url" id\x3d"xj_link_url" class\x3d"dy-input-text dy-input-medium"/\x3e\x3c/dd\x3e                     \x3c/dl\x3e                     \x3cdl class\x3d"target_section"\x3e                         \x3cdt\x3e\x3clabel class\x3d"dy-label"\x3e'+xg.index.nls.html("openInColon")+'\x3c/label\x3e\x3c/dt\x3e                         \x3cdd\x3e\x3cinput type\x3d"radio" name\x3d"target" value\x3d"_self" id\x3d"xg_link_self" /\x3e \x3clabel for\x3d"xg_link_self"\x3e'+
xg.index.nls.html("sameWindow")+'\x3c/label\x3e\x3c/dd\x3e                         \x3cdd\x3e\x3cinput type\x3d"radio" name\x3d"target" value\x3d"_blank" id\x3d"xg_link_blank" /\x3e \x3clabel for\x3d"xg_link_blank"\x3e'+xg.index.nls.html("newWindow")+'\x3c/label\x3e\x3c/dd\x3e                     \x3c/dl\x3e                 \x3c/fieldset\x3e                     \x3cfieldset class\x3d"dy-form-2"\x3e\x3cdl\x3e\x3cdt\x3e\x3c/dt\x3e                        \x3cdd\x3e\x3cinput type\x3d"submit" class\x3d"button" value\x3d"'+
xg.index.nls.html("ok")+'" /\x3e                         \x3ca class\x3d"cancel5 dy-action-secondary" href\x3d"#" \x3e'+xg.index.nls.html("cancel")+"\x3c/a\x3e\x3c/dd\x3e\x3c/dl\x3e\x3c/fieldset\x3e             \x3c/form\x3e         \x3c/div\x3e     \x3c/div\x3e \x3c/div\x3e").appendTo("body")[0];x$("form",a).submit(function(c){c.preventDefault();xg.shared.util.hideOverlay();x$(a).remove();b.onOk(a)});x$("a.cancel5",a).click(function(c){c.preventDefault();xg.shared.util.hideOverlay();x$(a).remove();
b.onCancel(a)});x$(a).keydown(function(c){27==c.keyCode&&(c.preventDefault(),xg.shared.util.hideOverlay(),x$(a).remove(),b.onCancel(a))});h.targetSectionVisible||x$(a).find(".target_section").hide();return a};g.initialize();return k});dojo.hostenv.findModule("xg.shared.StorageUploader",!1)||(dojo.provide("xg.shared.StorageUploader"),xg.shared.StorageUploader={uploadFile:function(a,g,d,b,h){h=!1!==h;var c=function(){"function"==typeof b&&b();h&&xg.shared.util.alert(xg.shared.nls.text("THERE_HAS_BEEN_AN_ERROR"));return!1},f={token:atob(window.ning.CurrentProfile.t)};return fetch(a+"/?t\x3d"+Math.random(),{method:"PUT",headers:f}).then(function(e){!0!==e.ok&&c();return e.json()}).then(function(e){if(e.status&&e.location){e=e.location;
var k=new FormData;k.append("file",g);return fetch(e,{method:"POST",body:k,headers:f})}}).then(function(e){!0!==e.ok&&c();return e.json()}).then(function(e){return{storageId:e.id,index:d}}).catch(c)},processFormUploading:function(a,g,d,b,h,c,f){if(!(d instanceof File))return xg.shared.util.alert(xg.shared.nls.text("THERE_HAS_BEEN_AN_ERROR")),!1;xg.shared.StorageUploader.uploadFile(g,d,null,function(){"function"==typeof c&&c()},f).then(function(e){x$(a).append(x$('\x3cinput type\x3d"hidden"/\x3e').attr("name",
"nfiles["+b+"][id]").attr("value",e.storageId));x$(a).append(x$('\x3cinput type\x3d"hidden"/\x3e').attr("name","nfiles["+b+"][name]").attr("value",d.name));x$(a).append(x$('\x3cinput type\x3d"hidden"/\x3e').attr("name","nfiles["+b+"][size]").attr("value",d.size));x$(a).append(x$('\x3cinput type\x3d"hidden"/\x3e').attr("name","nfiles["+b+"][type]").attr("value",d.type));"function"==typeof h&&h(e.id)})},uploadFiles:function(a,g,d,b,h){if(!g)return b("Upload path not found!"),!1;x$(d).attr("files_cnt",
a.length);xg.shared.StorageUploader.initUploadedEvent(d,b,h);for(b=0;b<a.length;b++)xg.shared.StorageUploader.uploadFile(g,a[b].files?a[b].files[0]:a[b],b).then(function(c){var f=a[c.index].files?a[c.index].files[0]:a[c.index];x$(d).append(x$('\x3cinput type\x3d"hidden"/\x3e').attr("name","nfiles["+(c.index+1)+"][id]").attr("value",c.storageId));x$(d).append(x$('\x3cinput type\x3d"hidden"/\x3e').attr("name","nfiles["+(c.index+1)+"][name]").attr("value",f.name));x$(d).append(x$('\x3cinput type\x3d"hidden"/\x3e').attr("name",
"nfiles["+(c.index+1)+"][size]").attr("value",f.size));x$(d).append(x$('\x3cinput type\x3d"hidden"/\x3e').attr("name","nfiles["+(c.index+1)+"][type]").attr("value",f.type));x$(d).change()})},initUploadedEvent:function(a,g,d){x$(a).change(function(){var b=x$(a).attr("files_cnt"),h=x$(a).find('input:hidden[name^\x3d"nfiles"]').length;if(h&&b&&h/4==b){var c={};x$(a).find("input:hidden").each(function(f,e){c[e.name]=e.value});x$.post(x$(a).attr("action"),c,function(f){"shouldShowCaptcha"in f&&(xg.captcha.shouldShow=
f.shouldShowCaptcha);xg.shared.StorageUploader.clenupForm(a);!0!==f.success?g(f.errorMessage):d(f)},"json")}})},clenupForm:function(a){x$(a).find('input:hidden[name^\x3d"nfiles"]').remove();x$(a).off("change")},validateFilesBySize:function(a,g,d){for(var b=[],h=[],c=0;c<a.length;c++)g&&!xg.shared.StorageUploader.isValidateSize(a[c].size,g)?b.push(a[c].name.split(/\\|\//).pop()):h.push(a[c]);0<b.length&&d(xg.shared.nls.html("FILE_IS_BIGGER_THAN_LIMIT","\n"+b.join(", \x3cbr\x3e"),g));return h},isValidateSize:function(a,
g){return a<=1048576*g}});dojo.hostenv.findModule("xg.shared.editors.tinymce.FilePanel",!1)||(dojo.provide("xg.shared.editors.tinymce.FilePanel"),xg.shared.editors.tinymce.FilePanel=function(d){var e={},c={},a,h=d.url||"",k="",l,g=!1;c.initialize=function(){};e.getElements=function(b){a||(a=x$(' \x3cform method\x3d"post" enctype\x3d"multipart/form-data" data-jsonContainsHtml\x3d"1"\x3e     \x3cdiv class\x3d"dy-error-msg" style\x3d"display:none"\x3e\x3cp\x3e\x3c/p\x3e\x3c/div\x3e     \x3cinput type\x3d"hidden" name\x3d"pageUrl" value\x3d"'+
xg.qh(window.location.href)+'" \x3e     \x3cfieldset class\x3d"dy-form-2"\x3e         \x3cdl\x3e             \x3cdt\x3e\x3clabel for\x3d"xj_upload_file" class\x3d"dy-label"\x3e'+xg.shared.nls.html("file")+'\x3c/label\x3e\x3c/dt\x3e             \x3cdd\x3e                 \x3cinput type\x3d"file" class\x3d"file" name\x3d"file" id\x3d"xj_upload_file" /\x3e                 \x3cimg class\x3d"xj_spinner" width\x3d"20" height\x3d"20" alt\x3d"'+xg.shared.nls.html("loading")+'" src\x3d"'+xg.shared.util.cdn("/xn_resources/widgets/index/gfx/spinner.gif")+
'" style\x3d"position:relative;top:5px;display:none;"/\x3e                 \x3cp class\x3d"xj_filename dy-small" style\x3d"display:none"\x3e\x3c/p\x3e                 \x3cp class\x3d"dy-small xj_limit"\x3e\x3c/p\x3e             \x3c/dd\x3e         \x3c/dl\x3e     \x3c/fieldset\x3e \x3c/form\x3e'),d.maxFileUploadSize?a.find(".xj_limit").text(xg.shared.nls.html("fileSizeLimit",d.maxFileUploadSize)):a.find(".xj_limit").remove(),a.append(xg.shared.util.createCsrfTokenHiddenInput()),a.find("input[name\x3dfile]").change(function(f){f.preventDefault();
c.onFileChanged()}),a.submit(function(f){f.preventDefault();c.onFileChanged()}),d.forImage&&a.append('\x3cinput type\x3d"hidden" name\x3d"image" value\x3d"1"/\x3e'));return a};c.onFileChanged=function(){if(!g&&0!==a.find("input[name\x3dfile]").val().length&&a.find("input[name\x3dfile]").val()!==l)if(d.forImage)if(a.find("input[name\x3dfile]").val().match(/\.(jpeg|jpg|jpe|gif|png|bmp)$/i))c.onFileChangedProper();else if(confirm(xg.shared.nls.text("fileDoesNotSeem")))c.onFileChangedProper();else a.find("input[name\x3dfile]").val("");
else c.onFileChangedProper()};c.onFileChangedProper=function(){c.setErrorMessageHtml(null);a.find(".xj_spinner").show();g=!0;l=a.find("input[name\x3dfile]").val();el=a.find("input[name\x3dfile]")[0].files[0];xg.shared.StorageUploader.processFormUploading(a,d.storageUploadPath,el,0,function(){a.find("input[name\x3dfile]").remove();xg.index.util.FormHelper.save(a[0],function(b){"xml"==typeof b&&b.toXMLString&&-1!=b.toXMLString().indexOf("\x3ch1\x3e413:")?d.maxFileUploadSize?c.setErrorMessageHtml(xg.shared.nls.html("fileNeedsToBeUnderX",
d.maxFileUploadSize)):c.setErrorMessageHtml(xg.shared.nls.html("fileTooLarge")):b.error?c.setErrorMessageHtml(b.errorHtml):(x$.browser.safari||a.find(".xj_filename").text(decodeURIComponent(b.filename)).show(),k=b.filename||"",h=x$.trim(decodeURIComponent(b.url)),d.onChange(b.imageWidth));a.find(".xj_spinner").hide();g=!1},"/profiles/blog/upload/.txt?xn_out\x3djson")})};c.setErrorMessageHtml=function(b){null===b?a.find(".dy-error-msg").hide():(a.find(".dy-error-msg p").html(b),a.find(".dy-error-msg").show())};
e.getUrl=function(){return h};e.getFilename=function(){return k};e.onSelect=function(){a.find("input[name\x3dfile]").focus()};e.validate=function(b,f){b()};c.initialize();return e});dojo.hostenv.findModule("xg.shared.editors.tinymce.ImageUrlPanel",!1)||(dojo.provide("xg.shared.editors.tinymce.ImageUrlPanel"),xg.shared.editors.tinymce.ImageUrlPanel=function(g){var c={},d={},a;d.initialize=function(){};c.getElements=function(b){a||(a=x$(' \x3cform\x3e     \x3cdiv class\x3d"dy-error-msg" style\x3d"display:none"\x3e\x3cp\x3e\x3c/p\x3e\x3c/div\x3e     \x3cfieldset class\x3d"dy-form-2"\x3e         \x3cdl\x3e             \x3cdt\x3e\x3clabel for\x3d"xj_image_url" class\x3d"dy-label"\x3e'+
xg.shared.nls.html("url")+'\x3c/label\x3e\x3c/dt\x3e             \x3cdd\x3e\x3cinput type\x3d"text" name\x3d"url" id\x3d"xj_image_url" class\x3d"dy-input-text dy-input-medium" maxlength\x3d"1000"/\x3e\x3c/dd\x3e         \x3c/dl\x3e     \x3c/fieldset\x3e \x3c/form\x3e'),a.submit(function(e){e.preventDefault();g.onSubmit()}),a.find("input[name\x3durl]").val(g.url||"http://"),a.find("input[name\x3durl]").bind("keyup keypress blur cut paste change",function(e){g.onChange(null)}));return a};c.getUrl=function(){var b=
x$.trim(a.find("input[name\x3durl]").val());return"http://"===b?"":b};c.onSelect=function(){a.find("input[name\x3durl]")[0].select();a.find("input[name\x3durl]").focus()};d.setErrorMessageHtml=function(b){null===b?a.find(".dy-error-msg").hide():(a.find(".dy-error-msg p").html(b),a.find(".dy-error-msg").show())};c.validate=function(b,e){d.setErrorMessageHtml(null);var f=new Image;f.onload=function(){b()};f.onerror=f.onabort=function(){d.setErrorMessageHtml(xg.shared.nls.html("noFileAtUrl"));e()};f.src=
c.getUrl()};d.initialize();return c});dojo.hostenv.findModule("xg.shared.editors.tinymce.ImagePropertiesPanel",!1)||(dojo.provide("xg.shared.editors.tinymce.ImagePropertiesPanel"),xg.shared.editors.tinymce.ImagePropertiesPanel=function(c){var e={},d={},b,g=null,h=c.link&&c.link!=c.imageUrl;d.initialize=function(){};e.getElements=function(a){b||(b=x$(' \x3cdl\x3e     \x3cdt\x3e\x3clabel class\x3d"dy-label"\x3e'+xg.shared.nls.html("layout")+'\x3c/label\x3e\x3c/dt\x3e     \x3cdd\x3e         \x3cul class\x3d"mce-image-layouts dy-clearfix"\x3e             \x3cli\x3e\x3cspan class\x3d"thumb thumb-left"\x3e\x3c/span\x3e \x3cinput type\x3d"radio" name\x3d"layout" value\x3d"left" id\x3d"xj_layout_left"/\x3e \x3clabel class\x3d"name" for\x3d"xj_layout_left"\x3e'+
xg.shared.nls.html("left")+'\x3c/label\x3e\x3c/li\x3e             \x3cli\x3e\x3cspan class\x3d"thumb thumb-center"\x3e\x3c/span\x3e \x3cinput type\x3d"radio" name\x3d"layout" value\x3d"center" id\x3d"xj_layout_center"/\x3e \x3clabel class\x3d"name" for\x3d"xj_layout_center"\x3e'+xg.shared.nls.html("center")+'\x3c/label\x3e\x3c/li\x3e             \x3cli\x3e\x3cspan class\x3d"thumb thumb-right"\x3e\x3c/span\x3e \x3cinput type\x3d"radio" name\x3d"layout" value\x3d"right" id\x3d"xj_layout_right"/\x3e \x3clabel class\x3d"name" for\x3d"xj_layout_right"\x3e'+
xg.shared.nls.html("right")+'\x3c/label\x3e\x3c/li\x3e             \x3cli\x3e\x3cspan class\x3d"thumb thumb-full"\x3e\x3c/span\x3e \x3cinput type\x3d"radio" name\x3d"layout" value\x3d"full" id\x3d"xj_layout_full"/\x3e \x3clabel class\x3d"name" for\x3d"xj_layout_full"\x3e'+xg.shared.nls.html("full")+'\x3c/label\x3e\x3c/li\x3e         \x3c/ul\x3e     \x3c/dd\x3e \x3c/dl\x3e \x3cdl\x3e     \x3cdt\x3e\x3clabel for\x3d"xj_image_padding" class\x3d"dy-label"\x3e'+xg.shared.nls.html("padding")+'\x3c/label\x3e\x3c/dt\x3e     \x3cdd\x3e\x3cinput type\x3d"text" name\x3d"padding" id\x3d"xj_image_padding" class\x3d"dy-input-text dy-input-single" maxlength\x3d"3"/\x3e '+
xg.shared.nls.html("pixels")+'\x3c/dd\x3e \x3c/dl\x3e \x3cdl\x3e     \x3cdt\x3e\x3clabel for\x3d"xj_image_link" class\x3d"dy-label"\x3e'+xg.shared.nls.html("link")+'\x3c/label\x3e\x3c/dt\x3e     \x3cdd\x3e\x3cinput type\x3d"text" name\x3d"link" id\x3d"xj_image_link" class\x3d"dy-input-text dy-input-medium" maxlength\x3d"1000"/\x3e\x3c/dd\x3e \x3c/dl\x3e \x3cdl\x3e     \x3cdt\x3e\x3clabel for\x3d"xj_image_width" class\x3d"dy-label"\x3e'+xg.shared.nls.html("width")+'\x3c/label\x3e\x3c/dt\x3e     \x3cdd\x3e\x3cinput type\x3d"text" name\x3d"width" id\x3d"xj_image_width" class\x3d"dy-input-text dy-input-narrow" maxlength\x3d"4"/\x3e '+
xg.shared.nls.html("pixels")+"\x3c/dd\x3e \x3c/dl\x3e"),c.allowCenterAlignment||b.find("#xj_layout_center").parents("li:first").hide(),c.layout&&b.find("input[value\x3d"+c.layout+"]").prop("checked",!0),b.find("input[name\x3dpadding]").val(c.padding),b.find("input[name\x3dlink]").val(c.link),b.find("input[name\x3dwidth]").val(c.width),b.find("span.thumb").click(function(f){x$(this).next("input[type\x3dradio]").click()}),b.find("input[name\x3dlink]").bind("cut paste change",function(f){h=!0}),d.addInputValidation(b));
return b};e.setEnabled=function(a){b.find("input").prop("disabled",!a);b.toggleClass("dy-disabled",!a)};e.setLink=function(a){b.find("input[name\x3dlink]").val(a)};e.didUserChangeLink=function(){return h};e.getProperties=function(){var a={layout:b.find("input[name\x3dlayout]:checked").val(),padding:x$.trim(b.find("input[name\x3dpadding]").val()),link:x$.trim(b.find("input[name\x3dlink]").val()),width:x$.trim(b.find("input[name\x3dwidth]").val()),originalWidth:g};a.padding=a.padding?parseInt(a.padding,
10):0;a.width=a.width&&0<parseInt(a.width,10)?parseInt(a.width,10):null;a.link?0>a.link.indexOf(":")&&(a.link="http://"+a.link):a.link=null;return a};e.setOriginalImageWidth=function(a){(g=a)&&b.find("input[name\x3dwidth]").val(Math.min(g,d.getMaxWidth()))};d.addInputValidation=function(a){a.find("input[name\x3dpadding], input[name\x3dwidth]").keyup(function(f){f=this.value.replace(/[^0-9]/,"");this.value!=f&&(this.value=f)});a.find("input[name\x3dwidth]").keyup(function(f){parseInt(this.value,10)>
d.getMaxWidth()&&(this.value=d.getMaxWidth())})};d.getMaxWidth=function(){var a=c.maxWidth;g&&(a=Math.min(a,g));return a};d.initialize();return e});dojo.hostenv.findModule("xg.shared.editors.tinymce.ImageDialog",!1)||(dojo.provide("xg.shared.editors.tinymce.ImageDialog"),xg.shared.editors.tinymce.ImageDialog=function(f,g,u){var v={},b={},l=xg.shared.editors.tinymce.Utilities.getEditor(f),w={heading:xg.shared.nls.text("addImage"),getInitialUrl:function(){return""},getInitialProperties:function(){return{layout:"full",padding:0,link:null,width:null,imageUrl:this.getInitialUrl()}},selectInitialTab:function(a,c,d){u?b.selectTab(a.find(".xj_from_url"),
d,c):b.selectTab(a.find(".xj_from_computer"),c,d)},onOk:function(a){xg.shared.editors.tinymce.Utilities.overwriteSelection(f,a)}},x={heading:xg.shared.nls.text("editImage"),getInitialUrl:function(){return g.attr("src")},getInitialProperties:function(){var a={};a.layout=f.data("htmlCapability").getAlignment(g);a.padding=parseInt(g.css("padding"),10)||0;g.parent("a").length&&(a.link=g.parent("a").attr("href"));var c=parseInt(g.attr("width"),10);c&&(a.width=c);a.imageUrl=this.getInitialUrl();return a},
selectInitialTab:function(a,c,d){b.selectTab(a.find(".xj_from_url"),d,c)},onOk:function(a){var c=g.parent("a")[0];c||=g[0];var d=l?l.getDoc():null;l.dom.replace(x$(a,d)[0],c);l.undoManager.add()}},m,h,q,n,k,e,t=!1;b.initialize=function(){g||=b.findImage();m=g?x:w;h=xg.shared.editors.tinymce.ImagePropertiesPanel(x$.extend({allowCenterAlignment:f.data("htmlCapability").supportsCenterAlignment(),maxWidth:parseInt(f.attr("_maxImageWidth"),10)},m.getInitialProperties()));q=xg.shared.editors.tinymce.FilePanel({onChange:b.onChange,
forImage:!0,storageUploadPath:f.attr("_storageUploadPath"),url:m.getInitialUrl()});n=xg.shared.editors.tinymce.ImageUrlPanel({onChange:b.onChange,onSubmit:b.onSubmit,url:m.getInitialUrl()})};b.findImage=function(){if(!l||!l.selection.getNode())return null;$node=x$(l.selection.getNode());return"IMG"===$node[0].nodeName?$node:$node.filter("a:has(img)").length?$node.find("img:first"):null};b.onChange=function(a){b.updateEnabledState();h.setOriginalImageWidth(a);!h.didUserChangeLink()&&f.data("htmlCapability").shouldLinkImagesByDefault()&&
h.setLink(k.getUrl())};v.show=function(){b.createDialog();b.showDialog(e)};b.createDialog=function(a){e=x$(' \x3cdiv tabindex\x3d"0" class\x3d"xg_theme xg_floating_module xg_tinymce_dialog xg_image_dialog" style\x3d"display:none; z-index:300000; outline:0;"\x3e     \x3cdiv class\x3d"xg_floating_container xg_floating_container_wide xg_module xg_lightborder"\x3e         \x3cdiv class\x3d"xg_module_head"\x3e             \x3ch2\x3e'+xg.qh(m.heading)+'\x3c/h2\x3e             \x3ca class\x3d"xg_icon xg_icon-close cancel5" href\x3d"#" \x3e'+
xg.index.nls.html("close")+'\x3c/a\x3e         \x3c/div\x3e         \x3cdiv class\x3d"xg_module_body"\x3e             \x3cul class\x3d"page_tabs"\x3e                 \x3cli class\x3d"xj_from_computer this"\x3e'+xg.shared.nls.html("fromMyComputer")+'\x3c/li\x3e                 \x3cli class\x3d"xj_from_url"\x3e'+xg.shared.nls.html("fromUrl")+'\x3c/li\x3e             \x3c/ul\x3e             \x3cdiv class\x3d"clear_no_height"\x3e\x3c/div\x3e             \x3cform class\x3d"xj_main_form"\x3e                 \x3cfieldset class\x3d"dy-form-2"\x3e                 \x3c/fieldset\x3e                 \x3cfieldset class\x3d"dy-form-2"\x3e                     \x3cdl\x3e                         \x3cdt\x3e\x3c/dt\x3e                         \x3cdd\x3e                             \x3cinput type\x3d"submit" class\x3d"button" value\x3d"'+
xg.index.nls.html("ok")+'" /\x3e                             \x3ca class\x3d"cancel5 dy-action-secondary" href\x3d"#" \x3e'+xg.index.nls.html("cancel")+'\x3c/a\x3e                             \x3cimg class\x3d"xj_spinner" width\x3d"20" height\x3d"20" alt\x3d"'+xg.shared.nls.html("loading")+'" src\x3d"'+xg.shared.util.cdn("/xn_resources/widgets/index/gfx/spinner.gif")+'" style\x3d"position:relative;top:5px;left:10px;display:none;"/\x3e                         \x3c/dd\x3e                     \x3c/dl\x3e                 \x3c/fieldset\x3e            \x3c/form\x3e         \x3c/div\x3e     \x3c/div\x3e \x3c/div\x3e').appendTo("body");
xg.shared.editors.tinymce.Utilities.saveSelection(f);a=x$("form.xj_main_form",e);a.submit(function(c){c.preventDefault();b.onSubmit()});x$("a.cancel5",e).click(function(c){c.preventDefault();b.hideDialog(e);xg.shared.editors.tinymce.Utilities.restoreSelection(f)});e.keydown(function(c){27==c.keyCode&&(c.preventDefault(),b.hideDialog(e),xg.shared.editors.tinymce.Utilities.restoreSelection(f))});q.getElements().insertBefore(a);n.getElements().insertBefore(a);h.getElements().appendTo(a.find("fieldset:first"));
u&&e.find(".page_tabs").css("display","none");m.selectInitialTab(e,q,n);return e};b.onSubmit=function(){if(!t){var a=x$("form.xj_main_form",e);a.find("input[type\x3dsubmit]").prop("disabled")||(k.getUrl()?(t=!0,a.find(".xj_spinner").show(),k.validate(function(){t=!1;a.find(".xj_spinner").hide();b.hideDialog(e);var c=x$("\x3cdiv\x3e\x3c/div\x3e").append(b.createLinkedImageElement());m.onOk(c.html())},function(){t=!1;a.find(".xj_spinner").hide()})):(b.hideDialog(e),xg.shared.editors.tinymce.Utilities.restoreSelection(f)))}};
b.createLinkedImageElement=function(){var a=x$("\x3ca\x3e\x3cimg/\x3e\x3c/a\x3e"),c=a.find("img:first"),d=h.getProperties(),p=xg.shared.util.addParameter(k.getUrl(),"profile","RESIZE_710x");c.attr("src",p);c.removeAttr("style");d.width&&d.width!==d.originalWidth&&c.attr("width",d.width);d.padding&&c.css("padding",d.padding+"px");if(!d.link)return c;a.attr("href",d.link);a.attr("target",xg.shared.editors.tinymce.Utilities.getDefaultTargetForUrl(d.link));f.data("htmlCapability").setAlignment(c,d.layout);
return a};b.selectTab=function(a,c,d){c.getElements().show();d.getElements().css("display","none");k=c;k.onSelect();b.updateEnabledState();!h.didUserChangeLink()&&f.data("htmlCapability").shouldLinkImagesByDefault()&&h.setLink(k.getUrl());$ul=a.parent();$ul.find("li").removeClass("this");a.addClass("this");$ul.find("li").each(function(p,r){r===a[0]?x$(r).html('\x3cspan class\x3d"xg_tabs"\x3e'+xg.qh(x$(r).text())+"\x3c/span\x3e"):x$(r).html('\x3ca href\x3d"#"\x3e'+xg.qh(x$(r).text())+"\x3c/a\x3e")});
$ul.find(".xj_from_computer a").click(function(p){p.preventDefault();b.selectTab($ul.find(".xj_from_computer"),q,n)});$ul.find(".xj_from_url a").click(function(p){p.preventDefault();b.selectTab($ul.find(".xj_from_url"),n,q)})};b.updateEnabledState=function(){var a=0<k.getUrl().length;h.setEnabled(a||n===k);e.find("input[type\x3dsubmit]").prop("disabled",!a).toggleClass("dy-disabled",!a)};b.showDialog=function(a){xg.shared.util.showOverlay();a.show();a.focus()};b.hideDialog=function(a){xg.shared.util.hideOverlay();
a.remove()};b.initialize();return v});dojo.hostenv.findModule("xg.shared.editors.tinymce.MediaDialog",!1)||(dojo.provide("xg.shared.editors.tinymce.MediaDialog"),xg.shared.editors.tinymce.MediaDialog=function(d){var f={},e={initialize:function(){}};f.show=function(){var b=e.createDialog({onOk:function(a){a=x$("form",a)[0];a=x$.trim(a.embedCode.value);xg.shared.editors.tinymce.Utilities.overwriteSelection(d,a)},onCancel:function(a){xg.shared.editors.tinymce.Utilities.restoreSelection(d)}});xg.shared.util.showOverlay();x$(b).show();$form=
x$("form",b);xg.shared.editors.tinymce.Utilities.saveSelection(d);$form.find("[name\x3dembedCode]").focus()};e.createDialog=function(b){var a=x$(' \x3cdiv class\x3d"xg_theme xg_floating_module" style\x3d"display:none; z-index: 300000"\x3e     \x3cdiv class\x3d"xg_floating_container xg_tinymce_dialog xg_floating_container_wide xg_module xg_lightborder"\x3e         \x3cdiv class\x3d"xg_module_head"\x3e             \x3ch2\x3e'+xg.index.nls.html("addMedia")+'\x3c/h2\x3e             \x3ca class\x3d"xg_icon xg_icon-close cancel5" href\x3d"#" \x3e'+
xg.index.nls.html("close")+'\x3c/a\x3e         \x3c/div\x3e         \x3cdiv class\x3d"xg_module_body"\x3e             \x3cform\x3e                 \x3cfieldset class\x3d"dy-form-1"\x3e \x3cdl\x3e\x3cdt\x3e                    \x3clabel for\x3d"embedCode" class\x3d"dy-label"\x3e'+xg.index.nls.html("pasteEmbedCodeFrom")+'\x3c/label\x3e                         \x3c/dt\x3e                         \x3cdd\x3e\x3ctextarea name\x3d"embedCode" id\x3d"embedCode" rows\x3d"8" cols\x3d"60"\x3e\x3c/textarea\x3e\x3c/dd\x3e                     \x3c/dl\x3e                 \x3c/fieldset\x3e                    \x3cfieldset class\x3d"dy-form-1"\x3e\x3cdl\x3e\x3cdt\x3e\x3c/dt\x3e                         \x3cdd\x3e\x3cinput type\x3d"submit" class\x3d"button" value\x3d"'+
xg.index.nls.html("ok")+'" /\x3e                         \x3ca class\x3d"cancel5 dy-action-secondary" href\x3d"#" \x3e'+xg.index.nls.html("cancel")+"\x3c/a\x3e\x3c/dd\x3e\x3c/dl\x3e\x3c/fieldset\x3e             \x3c/form\x3e         \x3c/div\x3e     \x3c/div\x3e \x3c/div\x3e").appendTo("body")[0];x$("form",a).submit(function(c){c.preventDefault();xg.shared.util.hideOverlay();x$(a).remove();b.onOk(a)});x$("a.cancel5",a).click(function(c){c.preventDefault();xg.shared.util.hideOverlay();x$(a).remove();
b.onCancel(a)});x$(a).keydown(function(c){27==c.keyCode&&(c.preventDefault(),xg.shared.util.hideOverlay(),x$(a).remove(),b.onCancel(a))});return a};e.initialize();return f});dojo.hostenv.findModule("xg.shared.editors.tinymce.PasteTextDialog",!1)||(dojo.provide("xg.shared.editors.tinymce.PasteTextDialog"),xg.shared.editors.tinymce.PasteTextDialog=function(e){var f={},d={initialize:function(){}};f.show=function(){var b=d.createDialog({onOk:function(a){a=x$("form",a)[0];a=xg.qh(x$.trim(a.embedCode.value));a=xg.shared.editors.tinymce.WordpressLineBreakRules.adjustLineBreaksEnteredInHtmlMode(a);a=xg.shared.editors.tinymce.WordpressLineBreakRules.adjustLineBreaksEnteredInVisualMode(a);
xg.shared.editors.tinymce.Utilities.overwriteSelection(e,a);d.cleanMarkup(e)},onCancel:function(a){xg.shared.editors.tinymce.Utilities.restoreSelection(e)}});xg.shared.util.showOverlay();x$(b).show();$form=x$("form",b);xg.shared.editors.tinymce.Utilities.saveSelection(e);$form.find("[name\x3dembedCode]").focus()};d.createDialog=function(b){var a=x$(' \x3cdiv class\x3d"xg_theme xg_floating_module" style\x3d"display:none; z-index: 300000"\x3e     \x3cdiv class\x3d"xg_floating_container xg_tinymce_dialog xg_floating_container_wide xg_module xg_lightborder"\x3e         \x3cdiv class\x3d"xg_module_head"\x3e             \x3ch2\x3e'+
xg.index.nls.html("insertPlainText")+'\x3c/h2\x3e             \x3ca class\x3d"xg_icon xg_icon-close cancel5" href\x3d"#" \x3e'+xg.index.nls.html("close")+'\x3c/a\x3e         \x3c/div\x3e         \x3cdiv class\x3d"xg_module_body"\x3e             \x3cform\x3e                 \x3cfieldset class\x3d"dy-form-1"\x3e                     \x3cdl\x3e                         \x3cdt\x3e\x3clabel for\x3d"embedCode" class\x3d"dy-label"\x3e'+xg.index.nls.html("pasteTextFromWord")+'\x3c/label\x3e\x3c/dt\x3e                         \x3cdd\x3e\x3ctextarea name\x3d"embedCode" id\x3d"embedCode" rows\x3d"8" cols\x3d"60"\x3e\x3c/textarea\x3e\x3c/dd\x3e                     \x3c/dl\x3e                 \x3c/fieldset\x3e                 \x3cfieldset class\x3d"dy-form-1"\x3e                     \x3cdl\x3e                         \x3cdt\x3e\x3c/dt\x3e                         \x3cdd\x3e\x3cinput type\x3d"submit" class\x3d"button" value\x3d"'+
xg.index.nls.html("ok")+'" /\x3e                         \x3ca class\x3d"cancel5 dy-action-secondary" href\x3d"#" \x3e'+xg.index.nls.html("cancel")+"\x3c/a\x3e\x3c/dd\x3e                     \x3c/dl\x3e                 \x3c/fieldset\x3e             \x3c/form\x3e         \x3c/div\x3e     \x3c/div\x3e \x3c/div\x3e").appendTo("body")[0];x$("form",a).submit(function(c){c.preventDefault();xg.shared.util.hideOverlay();x$(a).remove();b.onOk(a)});x$("a.cancel5",a).click(function(c){c.preventDefault();xg.shared.util.hideOverlay();
x$(a).remove();b.onCancel(a)});x$(a).keydown(function(c){27==c.keyCode&&(c.preventDefault(),xg.shared.util.hideOverlay(),x$(a).remove(),b.onCancel(a))});return a};d.cleanMarkup=function(b){var a=xg.shared.editors.tinymce.Utilities.getEditor(b);a?(a.selection.select(a.getBody(),!0),tinyMCE.execCommand("mceCleanup",!1),a.selection.collapse(!1)):b[0].value=x$("\x3cdiv\x3e\x3c/div\x3e").append(b[0].value).html()};d.initialize();return f});dojo.hostenv.findModule("xg.shared.editors.tinymce.FilePropertiesPanel",!1)||(dojo.provide("xg.shared.editors.tinymce.FilePropertiesPanel"),xg.shared.editors.tinymce.FilePropertiesPanel=function(){var c={},d={},b;d.initialize=function(){};c.getElements=function(a){b||=x$(' \x3cdl\x3e     \x3cdt\x3e\x3clabel for\x3d"xj_file_url" class\x3d"dy-label"\x3e'+xg.shared.nls.html("linkUrl")+'\x3c/label\x3e\x3c/dt\x3e     \x3cdd\x3e\x3cinput type\x3d"text" name\x3d"url" id\x3d"xj_file_url" class\x3d"dy-input-text dy-input-medium" maxlength\x3d"1000"/\x3e\x3c/dd\x3e \x3c/dl\x3e \x3cdl\x3e     \x3cdt\x3e\x3clabel for\x3d"xj_file_title" class\x3d"dy-label"\x3e'+
xg.shared.nls.html("title")+'\x3c/label\x3e\x3c/dt\x3e     \x3cdd\x3e\x3cinput type\x3d"text" name\x3d"title" id\x3d"xj_file_title" class\x3d"dy-input-text dy-input-medium" maxlength\x3d"1000"/\x3e\x3c/dd\x3e \x3c/dl\x3e');return b};c.setEnabled=function(a){b.find("input").prop("disabled",!a);b.toggleClass("dy-disabled",!a)};c.setUrl=function(a){b.find("input[name\x3durl]").val(a)};c.getUrl=function(){var a=b.find("input[name\x3durl]").val();0>a.indexOf(":")&&(a="http://"+a);return x$.trim(a)};c.setTitle=
function(a){b.find("input[name\x3dtitle]").val(a)};c.getTitle=function(){return x$.trim(b.find("input[name\x3dtitle]").val())};d.initialize();return c});dojo.hostenv.findModule("xg.shared.editors.tinymce.FileDialog",!1)||(dojo.provide("xg.shared.editors.tinymce.FileDialog"),xg.shared.editors.tinymce.FileDialog=function(g,k){var n={},b={},h=xg.shared.editors.tinymce.Utilities.getEditor(g),p={heading:xg.shared.nls.text("uploadFile"),getInitialUrl:function(){return""},initializeForm:function(a){var d=xg.shared.editors.tinymce.Utilities.saveSelection(g);a.setTitle(d)},onOk:function(a){xg.shared.editors.tinymce.Utilities.overwriteSelection(g,a)}},q={heading:xg.shared.nls.text("uploadFile"),
getInitialUrl:function(){return k.attr("href")},initializeForm:function(a){xg.shared.editors.tinymce.Utilities.saveSelection(g);a.setTitle(k.text());a.setUrl(k.attr("href"))},onOk:function(a){var d=h?h.getDoc():null;h.dom.replace(x$(a,d)[0],k[0]);h.undoManager.add()}},l,e=xg.shared.editors.tinymce.FilePropertiesPanel(),m="",f,c;b.initialize=function(){k||=b.findLink();l=k?q:p;f=xg.shared.editors.tinymce.FilePanel({url:l.getInitialUrl(),maxFileUploadSize:ning.maxFileUploadSize||null,forImage:!1,storageUploadPath:g.attr("_storageUploadPath"),
onChange:function(){b.updateEnabledState();f.getUrl()&&(e.setUrl(f.getUrl()),e.getTitle()&&e.getTitle()!==m||(e.setTitle(f.getFilename()||f.getUrl()),m=e.getTitle()))}})};b.findLink=function(){if(!h||!h.selection.getNode())return null;$node=x$(h.selection.getNode());return"A"===$node[0].nodeName?$node:null};n.show=function(){b.createDialog();b.showDialog(c)};b.createDialog=function(a){c=x$(' \x3cdiv class\x3d"xg_theme xg_floating_module xg_tinymce_dialog xg_file_dialog" style\x3d"display:none; z-index:300000;"\x3e     \x3cdiv class\x3d"xg_floating_container xg_floating_container_wide xg_module xg_lightborder"\x3e         \x3cdiv class\x3d"xg_module_head"\x3e             \x3ch2\x3e'+
xg.qh(l.heading)+'\x3c/h2\x3e             \x3ca class\x3d"xg_icon xg_icon-close cancel5" href\x3d"#" \x3e'+xg.index.nls.html("close")+'\x3c/a\x3e         \x3c/div\x3e         \x3cdiv class\x3d"xg_module_body"\x3e             \x3cp\x3e'+xg.shared.nls.html("uploadFileAnyType")+'\x3c/p\x3e             \x3cform class\x3d"xj_main_form"\x3e                 \x3cfieldset class\x3d"dy-form-2"\x3e                 \x3c/fieldset\x3e                      \x3cfieldset class\x3d"dy-form-2"\x3e                     \x3cdl\x3e\x3cdt\x3e\x3c/dt\x3e                        \x3cdd\x3e\x3cinput type\x3d"submit" class\x3d"button" value\x3d"'+
xg.index.nls.html("ok")+'" /\x3e                     \x3ca class\x3d"cancel5 dy-action-secondary" href\x3d"#" \x3e'+xg.index.nls.html("cancel")+"\x3c/a\x3e\x3c/dd\x3e\x3c/dl\x3e\x3c/fieldset\x3e             \x3c/form\x3e         \x3c/div\x3e     \x3c/div\x3e \x3c/div\x3e").appendTo("body");a=x$("form.xj_main_form",c);a.submit(b.onSubmit);x$("a.cancel5",c).click(function(d){d.preventDefault();b.hideDialog(c);xg.shared.editors.tinymce.Utilities.restoreSelection(g)});c.keydown(function(d){27==d.keyCode&&
(d.preventDefault(),b.hideDialog(c),xg.shared.editors.tinymce.Utilities.restoreSelection(g))});f.getElements().insertBefore(a);e.getElements().appendTo(a.find("fieldset:first"));l.initializeForm(e);m=e.getTitle();b.updateEnabledState();return c};b.onSubmit=function(a){a.preventDefault();if(!x$("form.xj_main_form",c).find("input[type\x3dsubmit]").prop("disabled"))if(a=e.getUrl()||f.getUrl()){var d=e.getTitle();d||=f.getFilename()||a;$link=x$("\x3ca\x3e\x3c/a\x3e").attr("href",a).attr("target",xg.shared.editors.tinymce.Utilities.getDefaultTargetForUrl(a)).text(d);
a=x$("\x3cdiv\x3e\x3c/div\x3e").append($link).html();b.hideDialog(c);l.onOk(a)}else b.hideDialog(c),xg.shared.editors.tinymce.Utilities.restoreSelection(g)};b.showError=function(a){c.find(".dy-error-msg p").text(a);c.find(".dy-error-msg").show()};b.updateEnabledState=function(){var a=0<f.getUrl().length;e.setEnabled(a);c.find("input[type\x3dsubmit]").prop("disabled",!a).toggleClass("dy-disabled",!a)};b.showDialog=function(a){xg.shared.util.showOverlay();a.show();f.onSelect()};b.hideDialog=function(a){xg.shared.util.hideOverlay();
a.remove()};b.initialize();return n});dojo.hostenv.findModule("xg.shared.editors.tinymce.InlineToolbar",!1)||(dojo.provide("xg.shared.editors.tinymce.InlineToolbar"),xg.shared.editors.tinymce.InlineToolbar=function(f){var h={},b={},e=void 0,g=-1;b.initialize=function(){};h.addTo=function(a){x$(a.getDoc()).delegate(f.selector,"click",function(){$element=x$(this);b.removeToolbar();e=x$(' \x3cdiv class\x3d"dy-tooltip dy-tooltip-plain" style\x3d"position:absolute; z-index: 300000"\x3e     \x3cdiv class\x3d"dy-arrow"\x3e\x3c/div\x3e     \x3cdiv class\x3d"dy-content"\x3e     \x3c/div\x3e \x3c/div\x3e').appendTo("body");
$dyContent=e.find(".dy-content");x$.each(f.links,function(d,k){0<d&&$dyContent.append(" | ");$dyContent.append(x$('\x3ca href\x3d"#"\x3e\x3c/a\x3e').html(k.text).click(function(l){l.preventDefault();b.removeToolbar();k.onClick($element)}))});e.bind("mouseenter",function(d){clearTimeout(g)});e.bind("mouseleave",function(d){b.removeToolbar()});var c=b.getToolbarCoordinates(a,$element);e.css("left",c.left+"px");e.css("top",c.top+"px");if(f.onShow)f.onShow($element,e)});x$(a.getDoc()).delegate(f.selector,
"mouseleave",function(){g=setTimeout(b.removeToolbar,500)});a.onKeyUp.add(b.removeToolbar);a.onPaste.add(b.removeToolbar);a.onChange.add(b.removeToolbar)};b.getToolbarCoordinates=function(a,c){var d=b.getScrollCoordinates(a);$iframe=x$(a.getContainer()).find("iframe");a=$iframe.offset().left+c.offset().left-d.left;c=$iframe.offset().top+c.offset().top+c.height()-d.top;return{left:Math.min($iframe.offset().left+$iframe.width(),Math.max($iframe.offset().left,a)),top:Math.min($iframe.offset().top+$iframe.height(),
Math.max($iframe.offset().top,c))}};b.getScrollCoordinates=function(a){return{left:b.getSmallestNonZeroValue([a.getWin().pageXOffset?a.getWin().pageXOffset:0,a.getDoc().documentElement?a.getDoc().documentElement.scrollLeft:0,a.getDoc().body?a.getDoc().body.scrollLeft:0]),top:b.getSmallestNonZeroValue([a.getWin().pageYOffset?a.getWin().pageYOffset:0,a.getDoc().documentElement?a.getDoc().documentElement.scrollTop:0,a.getDoc().body?a.getDoc().body.scrollTop:0])}};b.getSmallestNonZeroValue=function(a){for(var c=
0,d=0;d<a.length;d++)if(!c||a[d]&&a[d]<c)c=a[d];return c};b.removeToolbar=function(){0<=g&&clearTimeout(g);e&&(e.remove(),e=void 0)};b.initialize();return h});dojo.hostenv.findModule("xg.index.util.toBlob",!1)||(dojo.provide("xg.index.util.toBlob"),xg.index.util.toBlob=function(a){var c=atob(a.split(",")[1]);a=a.split(",")[0].split(":")[1].split(";")[0];for(var d=new ArrayBuffer(c.length),e=new Uint8Array(d),b=0;b<c.length;b++)e[b]=c.charCodeAt(b);return new Blob([d],{type:a})});dojo.hostenv.findModule("xg.shared.RotateImage",!1)||(dojo.provide("xg.shared.RotateImage"),xg.shared.RotateImage={base64Images:{},put:function(a,b){this.base64Images[a]=b},get:function(a){return this.base64Images[a]},toDataURL:function(a){return fetch(a,{method:"GET"}).then(function(b){if(!b.ok)throw Error();return b.blob()}).then(this.blobToBase64).then(function(b){var c="R"===b.slice(22,23);return{base64:b,isGif:c}})},blobToBase64:function(a){return new Promise(function(b){var c=new FileReader;
c.onloadend=function(){return b(c.result)};return c.readAsDataURL(a)})},rotate:function(a,b){a=document.createElement("canvas");var c=a.getContext("2d"),d=b.naturalWidth,e=b.naturalHeight;a.width=e;a.height=d;c.clearRect(0,0,a.width,a.height);c.save();c.translate(a.width/2,a.height/2);c.rotate(Math.PI/180*90);c.drawImage(b,-d/2,-e/2);c.restore();return a.toDataURL()},base64toUrl:function(a,b,c){var d=b.find("#"+a.index);c=c+a.storageId+"?profile\x3doriginal";d.attr("src",c);d.parent("a").attr("href",
c);d.attr("data-base64_encoded","0");d=d[0].outerHTML;b.find("#"+a.index).replaceWith(d);return b[0].outerHTML},setUpRotate:function(a){a.getAttribute("data-src")||(a.setAttribute("data-src",a.src),a.setAttribute("id","img"+Math.floor(999999*Math.random())))},urlToBase64:function(a){if("1"===a.getAttribute("data-base64_encoded"))return new Promise(function(c){return c(a)});var b=a.getAttribute("data-src");b=b.slice(0,b.indexOf("?"));b=xg.shared.util.addParameter(b,"profile","original");return xg.shared.RotateImage.toDataURL(b).then(function(c){a.src=
c.base64;a.setAttribute("data-base64_encoded","1");return a})},savePictures:function(a,b){var c=[];a.each(function(){function d(f){console.error("e \x3e\x3e",f)}var e=xg.shared.RotateImage.get(this.id);e&&c.push(xg.shared.StorageUploader.uploadFile(b,xg.index.util.toBlob(e),x$(this).parent().find("img").attr("id"),d))});return c}});dojo.hostenv.findModule("xg.shared.editors.tinymce.WysiwygEditorConfig",!1)||(dojo.provide("xg.shared.editors.tinymce.WysiwygEditorConfig"),xg.shared.editors.tinymce.WysiwygEditorConfig=function(p,l,m,n,q){var h={},d={},g=xg.shared.editors.tinymce.Utilities;h.initializeTextareas=function(){window.tinyMCE&&(d.createTinyMCELabelClass(),d.initializeI18nStrings(),d.convertTextAreasToTinyMCEEditors())};d.initializeI18nStrings=function(){tinyMCE.addI18n("en.advanced",{fontdefault:xg.shared.nls.text("font"),
toolbar_focus:" ",font_size:xg.shared.nls.text("size"),forecolor_desc:xg.shared.nls.text("color"),bold_desc:xg.shared.nls.text("bold"),italic_desc:xg.shared.nls.text("italic"),striketrough_desc:xg.shared.nls.text("strikethrough"),underline_desc:xg.shared.nls.text("underline"),justifyleft_desc:xg.shared.nls.text("left"),justifycenter_desc:xg.shared.nls.text("center"),justifyright_desc:xg.shared.nls.text("right"),blockquote_desc:xg.shared.nls.text("blockquote"),bullist_desc:xg.shared.nls.text("unorderedList"),
numlist_desc:xg.shared.nls.text("orderedList"),removeformat_desc:xg.shared.nls.text("removeFormatting")});tinyMCE.addI18n("en.fullscreen",{desc:xg.shared.nls.text("fullscreen")});tinyMCE.addI18n("en.tinyautosave",{restore_content:xg.shared.nls.text("restoreContent"),no_content:xg.shared.nls.text("noAutoSaveContent"),warning_message:xg.shared.nls.text("ifRestoreSavedContent")})};d.convertTextAreasToTinyMCEEditors=function(){tinyMCE.init({editor_css:xg.shared.util.cdn("/xn_resources/widgets/shared/css/editors/tinymce/ui.css",
!0),content_css:xg.shared.util.cdn("/xn_resources/widgets/shared/css/editors/tinymce/content.css",!0),entity_encoding:"named",entities:"160,nbsp",verify_html:!1,fix_list_elements:!0,mode:"specific_textareas",plugins:"paste,autosave,lists",autosave_ask_before_unload:!1,editor_selector:"wysiwyg-mce-editor",language:null,relative_urls:!1,gecko_spellcheck:!0,theme_advanced_path:!1,theme_advanced_resizing:!0,theme_advanced_resize_horizontal:!1,theme_advanced_resizing_use_cookie:!1,theme:"modern",menubar:!1,
toolbar:["customlink customimage custommedia custompastetext customfile","fontsizeselect | bold italic strikethrough underline | alignleft aligncenter alignright | bullist numlist | removeformat"],branding:!1,onpageload:function(){},setup:d.setup,convert_urls:!1,cleanup_callback:function(b,a){return"string"==typeof a?xg.shared.editors.tinymce.Utilities.removeCdataTags(a):a},setupcontent_callback:d.afterSetup,extended_valid_elements:"*[*],script[charset|defer|language|src|type]",valid_children:"+body[style]",
media_strict:!1,forced_root_block:"p",cleanup_on_startup:!1,trim_span_elements:!1,remove_linebreaks:!1,convert_fonts_to_spans:!1,paste_preprocess:function(b,a){a.content=a.content.replace(/\r*\n/g," ");x$.browser.msie&&(a.content=a.content.replace(/<A href="[^"]+[<>][^"]+">(.*?)<\/A>/g,"$1").replace(/<A href='[^']+[<>][^']+'>(.*?)<\/A>/g,"$1"))},paste_auto_cleanup_on_paste:!0})};d.setupRegularEditorOrFullScreenEditor=function(b,a){d.setupDefaultFont(b,a);d.setupTheme(b,a);d.monitorFileUploadCount(b,
a);d.setupIndentAndOutdent(b,a);d.handlePastingEmbedCode(b,a);d.setupJustifyCommands(b,a);d.addOnInitHandler(a,function(){b.data("htmlCapability").configureAlignmentFormats(a)})};d.addOnInitHandler=function(b,a){b.initialized?a():b.onInit.add(a)};d.setupJustifyCommands=function(b,a){var c=function(e){b.data("htmlCapability").beforeAlign(a);x$.each(["left","center","right","full"],function(f,k){e!=k&&a.formatter.remove("align"+k)});a.formatter.toggle("align"+e)};a.addCommand("alignLeft",function(){c("left")});
a.addCommand("alignCenter",function(){c("center")});a.addCommand("alignRight",function(){c("right")})};d.setup=function(b){if("mce_fullscreen"===b.id)b.settings.theme_advanced_resize_horizontal=!0;else{var a=x$(b.getElement());a.data("width",a.width());a.data("height",a.height());a.data("htmlCapability").setupFontSizes(b.settings);a.parent().hasClass("full-editor")&&d.addFullScreenPlugin(a,b);b.settings.theme_advanced_buttons1=a.data("buttons");d.preventSpuriousJqueryAttributes(b);d.setupRegularEditorOrFullScreenEditor(a,
b);b.addButton("customlink",{title:xg.shared.nls.text("link"),"class":"mce_link",onclick:function(){b.focus();xg.shared.editors.tinymce.LinkDialog(a).show()}});b.addButton("customimage",{title:xg.shared.nls.text("image"),"class":"mce_image",onclick:function(){b.focus();xg.shared.editors.tinymce.ImageDialog(a,null,xg.uploadsDisabled||g.isMaxFileUploadCountReached(a)).show()}});b.addButton("custommedia",{title:xg.shared.nls.text("media"),"class":"mce_media",onclick:function(){b.focus();xg.shared.editors.tinymce.MediaDialog(a).show()}});
b.addButton("custompastetext",{title:xg.shared.nls.text("pasteText"),"class":"mce_pastetext",onclick:function(){b.focus();xg.shared.editors.tinymce.PasteTextDialog(a).show()}});b.addButton("customfile",{title:xg.shared.nls.text("file"),"class":"mce_file",onclick:function(){b.focus();xg.shared.editors.tinymce.FileDialog(a).show()}});b.addButton("customcode",{title:xg.shared.nls.text("htmlEditor"),"class":"mce_code",onclick:function(){b.focus();l(a)}});b.onPostRender.add(function(c,e){d.addLinkToolbar(a,
c);d.addImageToolbar(a,c)});a.data("resized")||(b.onLoadContent.add(function(c,e){c=x$(g.getEditor(a).getContainer()).find("iframe").contents().find("body").height();c=Math.max(c,x$(g.getEditor(a).getContainer()).find("iframe").height());x$(g.getEditor(a).getContainer()).find("iframe").height(Math.min(c,600))}),a.data("resized",!0));a.parent().hasClass("disabled")&&(b.settings.readonly=!0)}};d.setupTinyAutoSave=function(b,a){!(b=b.attr("_tinyAutoSaveKey"))||x$.browser.msie&&7>=parseInt(x$.browser.version,
10)||"mce_fullscreen"===a.id||(a.settings.plugins+=",tinyautosave",a.settings.fullscreen_settings={plugins:a.settings.plugins.replace(/,tinyautosave/g,"")},a.settings.tinyautosave_key=b,a.settings.tinyautosave_showsaveprogress=!1,a.onPostRender.add(function(c,e){c.plugins.tinyautosave.hasSavedContent()&&(e=x$('\x3ca href\x3d"#" class\x3d"autoRecover" tabindex\x3d"99999" title\x3d"'+xg.shared.nls.html("ifYouAccidentally")+'"\x3e'+xg.shared.nls.html("autoRecover")+"\x3c/a\x3e").click(function(f){f.preventDefault();
c.execCommand("mceTinyAutoSaveRestore")}),x$(c.getContainer()).find(".mceStatusbar:first div:first").html(e))}))};d.preventSpuriousJqueryAttributes=function(b){b.onGetContent.add(function(a,c){c.content=c.content.replace(/\s*jquery\d+="[^"]*"/g,"")})};d.afterSetup=function(b){if("mce_fullscreen"!==b){var a=tinymce.getInstanceById(b),c=x$(a.getElement());setTimeout(function(){d.fixIframeWidth(c,a);g.updateLiquidLayout(c);g.updateBackgroundColor(c,a);d.updateTinyMCEEditorHeight(c,a)},0)}};d.updateTinyMCEEditorHeight=
function(b,a){x$(a.getContainer()).find("iframe").height(b.data("height"))};d.fixIframeWidth=function(b,a){a=x$("iframe",a.getContainer());b.data("width")&&a.width()>20+b.data("width")&&a.width(b.data("width"))};d.handlePastingEmbedCode=function(b,a){a.onPaste.add(function(c,e){setTimeout(function(){var f=c.getContent();f.match(/&lt;(object|embed)/)&&(f=f.replace(/&lt;object.*?&lt;\/object&gt;/g,d.decodeHtmlEntitiesInEmbedCode).replace(/&lt;embed.*?&lt;\/embed&gt;/g,d.decodeHtmlEntitiesInEmbedCode),
c.setContent(f))},0)})};d.decodeHtmlEntitiesInEmbedCode=function(b){b=b.replace(/<.*?>/g,"");return tinymce.DOM.decode(b)};d.addFullScreenPlugin=function(b,a){a.settings.plugins+=",fullscreen";a.onExecCommand.add(function(c,e){"mceFullScreen"===e&&(x$("#mce_fullscreen_parent a.mce_fullscreen").attr("title",xg.shared.nls.text("returnToNormalSize")),x$("#mce_fullscreen_toolbar1 .mceToolbarStart.mceFirst").after(x$("\x3ctd/\x3e").append(n(b))),c=tinymce.get("mce_fullscreen"),d.addLinkToolbar(b,c),d.addImageToolbar(b,
c),d.setupRegularEditorOrFullScreenEditor(b,c))})};d.addLinkToolbar=function(b,a){xg.shared.editors.tinymce.InlineToolbar({selector:"a:not(:has(img))",links:[{text:xg.shared.nls.text("edit"),onClick:function(c){xg.shared.editors.tinymce.LinkDialog(b,c).show()}},{text:xg.shared.nls.text("delete"),onClick:function(c){a.dom.remove(c[0]);a.undoManager.add();a.getWin().focus()}}],onShow:function(c,e){c=xg.shared.nls.text("linkColon")+" "+d.excerpt(c.attr("href"),20);e.find(".dy-content").prepend(xg.qh(c))}}).addTo(a)};
d.addImageToolbar=function(b,a){xg.shared.editors.tinymce.InlineToolbar({selector:"img:not(.mceItemFlash)",links:[{text:xg.shared.nls.text("edit"),onClick:function(c){xg.shared.editors.tinymce.ImageDialog(b,c,xg.uploadsDisabled||g.isMaxFileUploadCountReached(b)).show()}},{text:xg.shared.nls.text("delete"),onClick:function(c){c.parent("a").length?a.dom.remove(c.parent("a")[0]):a.dom.remove(c[0]);a.undoManager.add();a.getWin().focus()}},{text:xg.shared.nls.text("ROTATE"),onClick:function(c){xg.shared.RotateImage.setUpRotate(c[0]);
xg.shared.RotateImage.urlToBase64(c[0]).then(function(e){e.src=xg.shared.RotateImage.rotate("",e);xg.shared.RotateImage.put(e.id,e.src);h.$img=x$(e)})}}],onShow:function(c,e){c=xg.shared.nls.text("imageColon");e.find(".dy-content").prepend(xg.qh(c)+" ")}}).addTo(a)};d.urlToBase64=function(b){if("1"===b.getAttribute("data-base64_encoded"))return new Promise(function(c){return c(b)});var a=b.getAttribute("data-src");a=a.slice(0,a.indexOf("?"));a=xg.shared.util.addParameter(a,"profile","original");return xg.shared.RotateImage.toDataURL(a).then(function(c){b.src=
c.base64;b.setAttribute("data-base64_encoded","1");return b})};d.excerpt=function(b,a){return b&&b.length>a?b.substring(0,a-1)+"\u2026":b};d.addControls=function(b,a){b.onBeforeRenderUI.add(function(c){c.controlManager=new tinymce.ControlManager(c);var e=c.controlManager.createControl;c.controlManager.createControl=function(f){return a[f]?a[f]:e.call(c.controlManager,f)}})};d.createTinyMCELabelClass=function(){tinymce.create("xg.shared.editors.tinymce.TinyMCELabel:tinymce.ui.Control",{TinyMCELabel:function(b,
a){this.parent(b,a)},renderHTML:function(){return'\x3cspan class\x3d"xg_label"\x3e'+xg.qh(this.settings.text)+"\x3c/span\x3e"}})};d.setupTheme=function(b,a){d.addOnInitHandler(a,function(){x$(a.getDoc()).find("body").addClass(b.attr("_themeType"))})};d.setupDefaultFont=function(b,a){try{var c=x$("\x3cp\x3e\x3c/p\x3e").insertAfter(b),e="font-size: "+b.attr("_fontSize")+" !important;";c.css("font-family")&&(e+="font-family:"+c.css("font-family")+" !important;");c.remove();d.addOnInitHandler(a,function(){x$(a.getDoc()).find("head").append('\x3cstyle type\x3d"text/css"\x3ebody, td, pre {'+
e+"} p, ol, ul, dl, blockquote, table, h1, h2, h3, h4, h5, h6 { margin-bottom: "+b.attr("_pMarginBottom")+"; } p { margin-top: 0; }\x3c/style\x3e")});a.onPostRender.add(function(f,k){x$(f.getContainer()).find(".mceColorPreview").css("background-color","#000000")})}catch(f){}};d.setupIndentAndOutdent=function(b,a){a.onKeyDown.add(function(c,e){if(($node=x$(a.selection.getNode()))&&0!=xg.shared.util.closest($node,"li").length&&(e.keyCode?code=e.keyCode:e.which&&(code=e.which),9==code&&!e.altKey&&!e.ctrlKey))return e.shiftKey?
c.execCommand("Outdent"):c.execCommand("Indent"),e.preventDefault&&e.preventDefault(),!1})};d.monitorFileUploadCount=function(b,a){var c=xg.shared.util.createQuiescenceTimer(1E3,function(){d.checkFileUploadCount(b)});a.onKeyUp.add(c.trigger);a.onPaste.add(c.trigger);a.onChange.add(c.trigger);d.addOnInitHandler(a,function(){d.checkFileUploadCount(b)})};d.checkFileUploadCount=function(b){var a=g.isMaxFileUploadCountReached(b),c=g.getEditor(b);c&&(c.controlManager.setDisabled("customfile",a),a?x$(c.getContainer()).find("a.icon-file").addClass("disabled"):
x$(c.getContainer()).find("a.icon-file").removeClass("disabled"));m(!a,b)};return h});dojo.hostenv.findModule("xg.shared.editors.tinymce.HtmlToolbar",!1)||(dojo.provide("xg.shared.editors.tinymce.HtmlToolbar"),xg.shared.editors.tinymce.HtmlToolbar=function(m){var l={},b={},h,g=m.textarea,n;b.initialize=function(){window.tinyMCE&&tinyMCE.onAddEditor.add(function(a,c){b.closeAllDropDowns()})};l.getElement=function(a){h||(h=b.createElement(),n=h.find(".mceToolbarEnd"),l.updateWidth(),b.addButtons(m.buttons.split(",")));return h};l.updateWidth=function(){g.is(":visible")&&g.width()?h.find(".mceLayout").width(g.width()+
4):h.find(".mceLayout").css("width","100%")};l.setColor=function(a){h.find(".mceColorPreview").css("background-color",a)};l.setFileButtonEnabled=function(a){a?h.find(".mce_file").addClass("mceButtonEnabled").removeClass("mceButtonDisabled"):h.find(".mce_file").addClass("mceButtonDisabled").removeClass("mceButtonEnabled")};b.createElement=function(){return x$(' \x3cspan class\x3d"html_editor_toolbar defaultSkin" style\x3d"display:none"\x3e     \x3ctable cellspacing\x3d"0" cellpadding\x3d"0" class\x3d"mceLayout"\x3e         \x3ctbody\x3e             \x3ctr class\x3d"mceFirst mceLast"\x3e                 \x3ctd class\x3d"mceToolbar mceLeft mceFirst mceLast"\x3e                     \x3ctable cellspacing\x3d"0" cellpadding\x3d"0" align\x3d"" class\x3d"mceToolbar mceToolbarRow1 Enabled"\x3e                         \x3ctbody\x3e                             \x3ctr\x3e                                 \x3ctd class\x3d"mceToolbarStart mceToolbarStartListBox mceFirst"\x3e\x3cspan\x3e\x3c!-- IE --\x3e\x3c/span\x3e\x3c/td\x3e                                 \x3ctd class\x3d"mceToolbarEnd mceToolbarEndButton mceLast"\x3e\x3cspan\x3e\x3c!-- IE --\x3e\x3c/span\x3e\x3c/td\x3e                             \x3c/tr\x3e                         \x3c/tbody\x3e                     \x3c/table\x3e                 \x3c/td\x3e             \x3c/tr\x3e         \x3c/tbody\x3e     \x3c/table\x3e \x3c/span\x3e')};
b.addButton=function(a){var c=x$('\x3ca href\x3d"#" class\x3d"mceButton mceButtonEnabled"/\x3e').attr("title",a.tooltip).addClass(a["class"]),d=x$('\x3cspan class\x3d"mceIcon"/\x3e').addClass(a["class"]);c.click(function(k){k.preventDefault();c.hasClass("mceButtonDisabled")||(a.onClick(c,xg.shared.editors.tinymce.Utilities.saveSelection(g)),g.focus())});n.before(x$("\x3ctd/\x3e").append(c.append(d)))};b.addFontDropDown=function(){b.addDropDown({tooltip:xg.shared.nls.text("font"),onSelect:function(a,
c,d){b.overwriteSelection('\x3cspan style\x3d"font-family: '+xg.qh(c)+';"\x3e'+a+"\x3c/span\x3e");b.excludeOuterTagsFromSelection()},dropDownClass:"mceListBox mceListBoxEnabled mce_fontselect",dropDownFirstLink:x$('\x3ca class\x3d"mceText mceTitle" href\x3d"#"\x3e'+xg.shared.nls.html("font")+"\x3c/a\x3e"),dropDownSecondLink:x$('\x3ca class\x3d"mceOpen" href\x3d"#"\x3e\x3cspan\x3e\x3c/span\x3e\x3c/a\x3e'),dropDownSelectedClass:"mceListBoxSelected",listClass:"mceListBoxMenu mceNoIcons defaultSkin",
listDivClass:"mceMenu mceListBoxMenu mceNoIcons defaultSkin",listTableClass:"",listTableRows:x$(x$.map(m.fonts.split(";"),function(a){a=a.split("\x3d");return x$('\x3ctr class\x3d"mceMenuItem mceMenuItemEnabled"\x3e\x3ctd\x3e\x3ca href\x3d"#" _value\x3d"'+xg.qh(a[1])+'"\x3e\x3cspan class\x3d"mceIcon"\x3e\x3c/span\x3e\x3cspan class\x3d"mceText" title\x3d"'+xg.qh(a[0])+'" style\x3d"font-family: '+xg.qh(a[1])+';"\x3e'+xg.qh(a[0])+"\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e\x3c/tr\x3e")[0]})),listWidth:120,listHeight:150})};
b.addFontSizeDropDown=function(){b.addDropDown({tooltip:xg.shared.nls.text("size"),onSelect:function(a,c,d){c=g.data("htmlCapability").getAttributeForFontSize(c);b.overwriteSelection("\x3cspan "+c[0]+'\x3d"'+c[1]+'"\x3e'+a+"\x3c/span\x3e");b.excludeOuterTagsFromSelection()},dropDownClass:"mceListBox mceListBoxEnabled mce_fontsizeselect",dropDownFirstLink:x$('\x3ca class\x3d"mceText mceTitle" href\x3d"#"\x3e'+xg.shared.nls.html("size")+"\x3c/a\x3e"),dropDownSecondLink:x$('\x3ca class\x3d"mceOpen" href\x3d"#"\x3e\x3cspan\x3e\x3c/span\x3e\x3c/a\x3e'),
dropDownSelectedClass:"mceListBoxSelected",listClass:"mceListBoxMenu mceNoIcons defaultSkin",listDivClass:"mceMenu mceListBoxMenu mceNoIcons defaultSkin",listTableClass:"",listTableRows:x$(x$.map([["1 (8pt)","1"],["2 (10pt)","2"],["3 (12pt)","3"],["4 (14pt)","4"],["5 (16pt)","5"],["6 (20pt)","6"],["7 (24pt)","7"]],function(a){return x$('\x3ctr class\x3d"mceMenuItem mceMenuItemEnabled"\x3e\x3ctd\x3e\x3ca href\x3d"#" _value\x3d"'+xg.qh(a[1])+'"\x3e\x3cspan class\x3d"mceIcon"\x3e\x3c/span\x3e\x3cspan class\x3d"mceText font-size-'+
a[1]+'" title\x3d"'+xg.qh(a[0])+'"\x3e'+xg.qh(a[0])+"\x3c/span\x3e\x3c/a\x3e\x3c/td\x3e\x3c/tr\x3e")[0]})),listWidth:150,listHeight:150})};b.addFontColorDropDown=function(){b.addDropDown({tooltip:xg.shared.nls.text("color"),onSelect:function(a,c,d){b.overwriteSelection('\x3cspan style\x3d"color: '+xg.qh(c)+';"\x3e'+a+"\x3c/span\x3e");b.excludeOuterTagsFromSelection();d.find(".mceColorPreview").css("background-color",c)},dropDownClass:"mceSplitButton mceSplitButtonEnabled mce_forecolor",dropDownFirstLink:x$('\x3ca class\x3d"mceAction mce_forecolor" href\x3d"#" title\x3d"'+
xg.shared.nls.html("color")+'"\x3e\x3cspan class\x3d"mceAction mce_forecolor"\x3e\x3c/span\x3e\x3cdiv class\x3d"mceColorPreview" style\x3d"background-color: #000000;"\x3e\x3c/div\x3e\x3c/a\x3e'),dropDownSecondLink:x$('\x3ca class\x3d"mceOpen mce_forecolor" href\x3d"#" title\x3d"'+xg.shared.nls.html("color")+'"\x3e\x3cspan class\x3d"mceOpen mce_forecolor"\x3e\x3c/span\x3e\x3c/a\x3e'),dropDownSelectedClass:"mceSplitButtonSelected",listClass:"defaultSkin mce_forecolor",listDivClass:"mce_forecolor mceSplitButtonMenu mceColorSplitMenu",
listTableClass:"mceColorSplitMenu",listTableRows:x$(x$.map(["000000 993300 333300 003300 003366 000080 333399 333333".split(" "),"800000 FF6600 808000 008000 008080 0000FF 666699 808080".split(" "),"FF0000 FF9900 99CC00 339966 33CCCC 3366FF 800080 999999".split(" "),"FF00FF FFCC00 FFFF00 00FF00 00FFFF 00CCFF 993366 C0C0C0".split(" "),"FF99CC FFCC99 FFFF99 CCFFCC CCFFFF 99CCFF CC99FF FFFFFF".split(" ")],function(a){return x$("\x3ctr\x3e"+x$.map(a,function(c){return'\x3ctd\x3e\x3ca href\x3d"#" style\x3d"background-color: #'+
c+';" _value\x3d"#'+c+'"\x3e\x3c/a\x3e\x3c/td\x3e'}).join("")+"\x3c/tr\x3e")[0]}))})};b.addDropDown=function(a){var c=x$(' \x3ctd\x3e     \x3ctable cellspacing\x3d"0" cellpadding\x3d"0" class\x3d"'+a.dropDownClass+'" title\x3d"'+xg.qh(a.tooltip)+'"\x3e         \x3ctbody\x3e             \x3ctr\x3e                 \x3ctd class\x3d"mceFirst"\x3e\x3c/td\x3e                 \x3ctd class\x3d"mceLast"\x3e\x3c/td\x3e             \x3c/tr\x3e         \x3c/tbody\x3e     \x3c/table\x3e \x3c/td\x3e');c.find(".mceFirst").append(a.dropDownFirstLink);
c.find(".mceLast").append(a.dropDownSecondLink);var d=x$(' \x3cdiv class\x3d"xj_drop_down_list '+a.listClass+'" style\x3d"position: absolute; z-index: 200000;"\x3e     \x3cdiv class\x3d"'+a.listDivClass+'"\x3e         \x3cspan class\x3d"mceMenuLine"\x3e\x3c/span\x3e         \x3ctable class\x3d"'+a.listTableClass+'" cellspacing\x3d"0" cellpadding\x3d"0" border\x3d"0"\x3e             \x3ctbody\x3e             \x3c/tbody\x3e         \x3c/table\x3e     \x3c/div\x3e \x3c/div\x3e');a.listWidth&&d.add(d.children()).css("width",
a.listWidth+"px");a.listHeight&&d.add(d.children()).css("height",a.listHeight+"px");d.find("tbody").append(a.listTableRows);var k=!1;c.find("a").click(function(e){e.preventDefault();if(c.find("table").hasClass(a.dropDownSelectedClass))b.closeAllDropDowns();else{c.find("table").addClass(a.dropDownSelectedClass);k||(d.appendTo(document.body),k=!0);d.show();e=d.offset();var f=c.offset(),p=d.position();d.css("left",p.left+f.left-e.left+"px");d.css("top",p.top+f.top-e.top+c.height()+"px")}});d.find("a").click(function(e){e.preventDefault();
e=xg.shared.editors.tinymce.Utilities.saveSelection(g);a.onSelect(e,x$(this).attr("_value"),c);b.closeAllDropDowns();g.focus()});g.click(function(e){b.closeAllDropDowns()});n.before(c)};b.closeAllDropDowns=function(){h.find(".mceListBoxSelected").removeClass("mceListBoxSelected");h.find(".mceSplitButtonSelected").removeClass("mceSplitButtonSelected");x$(".xj_drop_down_list").hide()};b.addSeparator=function(){n.before('\x3ctd\x3e\x3cspan class\x3d"mceSeparator"\x3e\x3c/span\x3e\x3c/td\x3e')};b.addButtons=
function(a){var c="|";x$.each(a,function(d,k){if(k!==c){d=!0;switch(k){case "|":b.addSeparator();break;case "customlink":b.addButton({tooltip:xg.shared.nls.text("link"),"class":"mce_link",onClick:function(e,f){xg.shared.editors.tinymce.LinkDialog(g).show()}});break;case "customimage":b.addButton({tooltip:xg.shared.nls.text("image"),"class":"mce_image",onClick:function(e,f){xg.shared.editors.tinymce.ImageDialog(g).show()}});break;case "custommedia":b.addButton({tooltip:xg.shared.nls.text("media"),
"class":"mce_media",onClick:function(e,f){xg.shared.editors.tinymce.MediaDialog(g).show()}});break;case "custompastetext":b.addButton({tooltip:xg.shared.nls.text("pasteText"),"class":"mce_pastetext",onClick:function(e,f){xg.shared.editors.tinymce.PasteTextDialog(g).show()}});break;case "customfile":b.addButton({tooltip:xg.shared.nls.text("file"),"class":"mce_file",onClick:function(e,f){xg.shared.editors.tinymce.FileDialog(g).show()}});break;case "fontselect":b.addFontDropDown();break;case "fontsizeselect":b.addFontSizeDropDown();
break;case "forecolor":b.addFontColorDropDown();break;case "bold":b.addButton({tooltip:xg.shared.nls.text("bold"),"class":"mce_bold",onClick:function(e,f){b.onClickTagButton(e,f,"\x3cstrong\x3e","\x3c/strong\x3e")}});break;case "italic":b.addButton({tooltip:xg.shared.nls.text("italic"),"class":"mce_italic",onClick:function(e,f){b.onClickTagButton(e,f,"\x3cem\x3e","\x3c/em\x3e")}});break;case "strikethrough":b.addButton({tooltip:xg.shared.nls.text("strikethrough"),"class":"mce_strikethrough",onClick:function(e,
f){b.onClickTagButton(e,f,'\x3cspan style\x3d"text-decoration: line-through;"\x3e',"\x3c/span\x3e")}});break;case "underline":b.addButton({tooltip:xg.shared.nls.text("underline"),"class":"mce_underline",onClick:function(e,f){b.onClickTagButton(e,f,'\x3cspan style\x3d"text-decoration: underline;"\x3e',"\x3c/span\x3e")}});break;case "justifyleft":b.addButton({tooltip:xg.shared.nls.text("left"),"class":"mce_justifyleft",onClick:function(e,f){b.onClickTagButton(e,f,g.data("htmlCapability").startParagraph("left"),
"\x3c/p\x3e\n")}});break;case "justifycenter":b.addButton({tooltip:xg.shared.nls.text("center"),"class":"mce_justifycenter",onClick:function(e,f){b.onClickTagButton(e,f,g.data("htmlCapability").startParagraph("center"),"\x3c/p\x3e\n")}});break;case "justifyright":b.addButton({tooltip:xg.shared.nls.text("right"),"class":"mce_justifyright",onClick:function(e,f){b.onClickTagButton(e,f,g.data("htmlCapability").startParagraph("right"),"\x3c/p\x3e\n")}});break;case "blockquote":b.addButton({tooltip:xg.shared.nls.text("blockquote"),
"class":"mce_blockquote",onClick:function(e,f){b.onClickTagButton(e,f,"\x3cblockquote\x3e","\x3c/blockquote\x3e\n")}});break;case "bullist":b.addButton({tooltip:xg.shared.nls.text("unorderedList"),"class":"mce_bullist",onClick:function(e,f){b.onClickTagButton(e,f,"\x3cul\x3e\n\x3cli\x3e","\x3c/li\x3e\n\x3c/ul\x3e\n")}});break;case "numlist":b.addButton({tooltip:xg.shared.nls.text("orderedList"),"class":"mce_numlist",onClick:function(e,f){b.onClickTagButton(e,f,"\x3col\x3e\n\x3cli\x3e","\x3c/li\x3e\n\x3c/ol\x3e\n")}});
break;case "removeformat":b.addButton({tooltip:xg.shared.nls.text("removeFormatting"),"class":"mce_removeformat",onClick:function(e,f){f&&b.overwriteSelection(f.replace(/<[^<]*>/g,""))}});break;case "customcode":b.addButton({tooltip:xg.shared.nls.text("returnToVisualMode"),"class":"mce_code mceButtonActive",onClick:function(){h.find(".mceButtonActive:not(.mce_code)").removeClass("mceButtonActive");m.onClickHtmlButton()}});break;default:d=!1}d&&(c=k)}});h.find("a.mceButton").click(function(d){d.preventDefault();
b.closeAllDropDowns()})};b.onClickTagButton=function(a,c,d,k){b.overwriteSelection(d+c+k);b.excludeOuterTagsFromSelection()};b.overwriteSelection=function(a,c){xg.shared.editors.tinymce.Utilities.overwriteSelection(g,a,c)};b.excludeOuterTagsFromSelection=function(){var a=xg.shared.editors.tinymce.Utilities.saveSelection(g);document.selection&&(a=a.replace(/\r/g,""));var c=a.indexOf("\x3e");a=a.lastIndexOf("\x3c");if(!(-1===c||-1===a||c>a))try{var d=b.getSelectionIndices();if(document.selection){var k=
g[0].value.substring(0,d.start).replace(/[^\r]/g,"").length;d.start-=k}d.end=d.start+a;d.start=d.start+c+1;d.start>d.end||b.setSelectionIndices(d)}catch(e){}};b.getSelectionIndices=function(){if(document.selection){var a=document.selection.createRange().duplicate(),c=a.duplicate();c.moveToElementText(g[0]);c.setEndPoint("EndToEnd",a);return{start:c.text.length-a.text.length,end:c.text.length}}return{start:g[0].selectionStart,end:g[0].selectionEnd}};b.setSelectionIndices=function(a){if(document.selection){var c=
g[0].createTextRange();c.collapse(!0);c.moveStart("character",a.start);c.moveEnd("character",a.end-a.start);c.select()}else g[0].selectionStart=a.start,g[0].selectionEnd=a.end};b.initialize();return l});dojo.hostenv.findModule("xg.shared.editors.tinymce.HtmlDragbar",!1)||(dojo.provide("xg.shared.editors.tinymce.HtmlDragbar"),xg.shared.editors.tinymce.HtmlDragbar=function(k){var e={},a={},c,f,d=k.textarea,g=0;e.getElement=function(b){c||(c=a.createElement(),e.updateWidth());return c};e.updateWidth=function(){d.is(":visible")&&d.width()?c.find(".mceLayout").width(d.width()+4):c.find(".mceLayout").css("width","100%")};a.createElement=function(){var b=x$(' \x3cspan class\x3d"html_editor_dragbar defaultSkin" style\x3d"display:none"\x3e     \x3ctable cellspacing\x3d"0" cellpadding\x3d"0" class\x3d"mceLayout"\x3e         \x3ctbody\x3e             \x3ctr class\x3d"mceLast"\x3e                 \x3ctd class\x3d"mceStatusbar mceFirst mceLast"\x3e                     \x3cdiv\x3e                         \x26nbsp;\x3ca href\x3d"#" accesskey\x3d"x"\x3e\x3c/a\x3e                     \x3c/div\x3e                     \x3ca href\x3d"javascript:;" onclick\x3d"return false;" class\x3d"mceResize"\x3e\x3c/a\x3e                 \x3c/td\x3e             \x3c/tr\x3e         \x3c/tbody\x3e     \x3c/table\x3e \x3c/span\x3e');
f=b.find(".mceResize");f.bind("mousedown",function(h){h.preventDefault();g=h.pageY-f.offset().top;x$("body").bind("mousemove",a.drag);x$("body").bind("mouseup",a.release)});return b};a.drag=function(b){b=b.pageY-f.offset().top-g;d.height(Math.max(100,d.height()+b))};a.release=function(b){x$("body").unbind("mousemove",a.drag);x$("body").unbind("mouseup",a.release)};return e});dojo.hostenv.findModule("xg.shared.editors.tinymce.HtmlEditorConfig",!1)||(dojo.provide("xg.shared.editors.tinymce.HtmlEditorConfig"),xg.shared.editors.tinymce.HtmlEditorConfig=function(e,f,g,l){var d={},c={},h=xg.shared.editors.tinymce.Utilities;d.initializeTextareas=function(){x$("textarea.wysiwyg-mce-editor, textarea.html-mce-editor").each(function(a,b){d.initializeTextareaIfNecessary(x$(b))});window.tinyMCE&&tinyMCE.DOM.loadCSS(tinyMCE.baseURI.toAbsolute(xg.shared.util.cdn("/xn_resources/widgets/shared/css/editors/tinymce/ui.css",
!0)))};d.initializeTextareaIfNecessary=function(a){a.data("xj_html_editor_config_initialized")||(c.addHtmlEditorToolbar(a,a.data("buttons"),e),c.addHtmlEditorDragbar(a),c.monitorFileUploadCount(a),a.data("xj_html_editor_config_initialized",!0))};c.addHtmlEditorToolbar=function(a,b,k){b=xg.shared.editors.tinymce.HtmlToolbar({textarea:a,onClickHtmlButton:function(){f(a)},buttons:b,fonts:k});a.before(b.getElement());a.data("xj_html_toolbar",b)};c.addHtmlEditorDragbar=function(a){var b=xg.shared.editors.tinymce.HtmlDragbar({textarea:a});
a.after(b.getElement());a.data("xj_html_dragbar",b)};c.monitorFileUploadCount=function(a){var b=xg.shared.util.createQuiescenceTimer(1E3,function(){c.checkFileUploadCount(a)});a.bind("keypress cut paste change",b.trigger)};c.checkFileUploadCount=function(a){var b=h.isMaxFileUploadCountReached(a);a.data("xj_html_toolbar").setFileButtonEnabled(!b);g(!b,a)};return d});dojo.hostenv.findModule("xg.shared.editors.tinymce.EmailHtmlCapability",!1)||(dojo.provide("xg.shared.editors.tinymce.EmailHtmlCapability"),xg.shared.editors.tinymce.EmailHtmlCapability=function(){var b={},c={initialize:function(){}};b.configureAlignmentFormats=function(a){a.formatter.register({alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,img",attributes:{align:"left"}}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,img",attributes:{align:"right"}}]})};b.beforeAlign=
function(a){};b.supportsCenterAlignment=function(){return!1};b.getAlignment=function(a){return"left"===a.attr("align").toLowerCase()?"left":"right"===a.attr("align").toLowerCase()?"right":"full"};b.setAlignment=function(a,d){switch(d){case "left":a.attr("align","left");break;case "right":a.attr("align","right")}};b.startParagraph=function(a){switch(a){case "left":return'\x3cp align\x3d"left"\x3e';case "center":return'\x3cp align\x3d"center"\x3e';case "right":return'\x3cp align\x3d"right"\x3e';default:return"\x3cp\x3e"}};
b.setupFontSizes=function(a){a.theme_advanced_font_sizes={"1 (8pt)":{fontSize:"8pt"},"2 (10pt)":{fontSize:"10pt"},"3 (12pt)":{fontSize:"12pt"},"4 (14pt)":{fontSize:"14pt"},"5 (16pt)":{fontSize:"16pt"},"6 (20pt)":{fontSize:"20pt"},"7 (24pt)":{fontSize:"24pt"}}};b.getAttributeForFontSize=function(a){return["style","font-size:"+{1:"8pt",2:"10pt",3:"12pt",4:"14pt",5:"16pt",6:"20pt",7:"24pt"}[a]]};b.shouldLinkImagesByDefault=function(){return!1};xg.addOnRequire(function(){c.initialize()});return b}());dojo.hostenv.findModule("xg.shared.editors.tinymce.StandardHtmlCapability",!1)||(dojo.provide("xg.shared.editors.tinymce.StandardHtmlCapability"),xg.shared.editors.tinymce.StandardHtmlCapability=function(){var b={},c={initialize:function(){}};b.configureAlignmentFormats=function(a){a.formatter.register({alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img",classes:"align-full"},{selector:"table",styles:{"float":"left"}}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",
styles:{textAlign:"center"}},{selector:"img",classes:"align-center"},{selector:"table",styles:{marginLeft:"auto",marginRight:"auto"}}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img",classes:"align-right"},{selector:"table",styles:{"float":"right"}}]})};b.beforeAlign=function(a){a.formatter.remove("alignleftproper")};b.supportsCenterAlignment=function(){return!0};b.getAlignment=function(a){return a.hasClass("align-left")?"left":a.hasClass("align-center")?
"center":a.hasClass("align-right")?"right":"full"};b.setAlignment=function(a,d){switch(d){case "left":a.addClass("align-left");break;case "center":a.addClass("align-center");break;case "right":a.addClass("align-right");break;default:a.addClass("align-full")}};b.startParagraph=function(a){switch(a){case "left":return'\x3cp style\x3d"text-align: left;"\x3e';case "center":return'\x3cp style\x3d"text-align: center;"\x3e';case "right":return'\x3cp style\x3d"text-align: right;"\x3e';default:return"\x3cp\x3e"}};
b.setupFontSizes=function(a){a.theme_advanced_font_sizes={"1 (8pt)":{fontSize:"8pt","class":"font-size-1"},"2 (10pt)":{fontSize:"10pt","class":"font-size-2"},"3 (12pt)":{fontSize:"12pt","class":"font-size-3"},"4 (14pt)":{fontSize:"14pt","class":"font-size-4"},"5 (16pt)":{fontSize:"16pt","class":"font-size-5"},"6 (20pt)":{fontSize:"20pt","class":"font-size-6"},"7 (24pt)":{fontSize:"24pt","class":"font-size-7"}}};b.getAttributeForFontSize=function(a){return["class","font-size-"+a]};b.shouldLinkImagesByDefault=
function(){return!0};xg.addOnRequire(function(){c.initialize()});return b}());dojo.hostenv.findModule("xg.shared.editors.tinymce.TinyMCE",!1)||(dojo.provide("xg.shared.editors.tinymce.TinyMCE"),xg.shared.editors.tinymce.TinyMCE=function(h){var e={},c={},f=xg.shared.editors.tinymce.Utilities,g,k;c.initialize=function(){x$("head").append("\x3cstyle type\x3d'text/css'\x3e.mceToolbar {display: none}\x3c/style\x3e");c.cancelTinyMceIfTinyMceNotLoaded();g=xg.shared.editors.tinymce.HtmlEditorConfig("Andale Mono\x3dandale mono,times;Arial\x3darial,helvetica,sans-serif;Arial Black\x3darial black,avant garde;Book Antiqua\x3dbook antiqua,palatino;Comic Sans MS\x3dcomic sans ms,sans-serif;Courier New\x3dcourier new,courier;Georgia\x3dgeorgia,palatino;Helvetica\x3dhelvetica;Impact\x3dimpact,chicago;Tahoma\x3dtahoma,arial,helvetica,sans-serif;Terminal\x3dterminal,monaco;Times New Roman\x3dtimes new roman,times;Trebuchet MS\x3dtrebuchet ms,geneva;Verdana\x3dverdana,geneva",
e.showWysiwygEditor,c.setFileButtonEnabled,h);k=xg.shared.editors.tinymce.WysiwygEditorConfig("Andale Mono\x3dandale mono,times;Arial\x3darial,helvetica,sans-serif;Arial Black\x3darial black,avant garde;Book Antiqua\x3dbook antiqua,palatino;Comic Sans MS\x3dcomic sans ms,sans-serif;Courier New\x3dcourier new,courier;Georgia\x3dgeorgia,palatino;Helvetica\x3dhelvetica;Impact\x3dimpact,chicago;Tahoma\x3dtahoma,arial,helvetica,sans-serif;Terminal\x3dterminal,monaco;Times New Roman\x3dtimes new roman,times;Trebuchet MS\x3dtrebuchet ms,geneva;Verdana\x3dverdana,geneva",
e.showHtmlEditor,c.setFileButtonEnabled,c.createIconBar,h);c.initializeTextareas();g.initializeTextareas();k.initializeTextareas();x$("textarea.html-mce-editor").each(function(a,b){e.showHtmlEditor(x$(b))})};c.cancelTinyMceIfTinyMceNotLoaded=function(){window.tinymce||(x$("textarea.wysiwyg-mce-editor").each(function(a,b){x$(b).removeClass("wysiwyg-mce-editor").addClass("html-mce-editor")}),x$("textarea.wysiwyg-mce-editor").each(function(a,b){x$(b).removeClass("deferred-wysiwyg-mce-editor").addClass("deferred-html-mce-editor")}))};
e.reinitialize=function(){x$("textarea.wysiwyg-mce-editor, textarea.html-mce-editor").each(function(a,b){$textarea=x$(b);parentDiv=$textarea.parent();console.log();parentDiv.attr("backup")&&parentDiv.html(parentDiv.attr("backup"))});c.initialize()};c.initializeTextareas=function(){x$("textarea.wysiwyg-mce-editor, textarea.html-mce-editor").each(function(a,b){a=x$(b);b=a.parent();b.attr("backup")||b.attr("backup",b.html());c.initializeTextareaIfNecessary(a)})};c.initializeTextareaIfNecessary=function(a){a.data("xj_tinymce_prerequisites_initialized")||
(a.data("htmlCapability",a.attr("_forEmail")?xg.shared.editors.tinymce.EmailHtmlCapability:xg.shared.editors.tinymce.StandardHtmlCapability),a.data("buttons",c.determineButtons(a,a.data("htmlCapability"))),f.addIdIfNecessary(a),a.parent().hasClass("full-editor")&&(c.addUpperTabs(a),c.addUpperIconBar(a)),a.data("xj_tinymce_prerequisites_initialized",!0))};c.addUpperTabs=function(a){var b=x$('\x3cul class\x3d"mce-tabs" style\x3d"display:none"\x3e\x3cli\x3e\x3ca href\x3d"#"\x3e'+xg.shared.nls.text("visualMode")+
'\x3c/a\x3e\x3c/li\x3e\x3cli\x3e\x3ca href\x3d"#"\x3e'+xg.shared.nls.text("htmlEditor")+'\x3c/a\x3e\x3c/li\x3e\x3c/ul\x3e\x3cdiv class\x3d"mce-icon-row-empty"\x3e\x26nbsp;\x3c/div\x3e');a.hasClass("html-mce-editor")||a.hasClass("deferred-html-mce-editor")?b.find("li:nth(1)").addClass("this"):b.find("li:nth(0)").addClass("this");b.find("a:nth(0)").click(function(d){d.preventDefault();a.parent().hasClass("disabled")||(b.find("li:nth(1)").removeClass("this"),b.find("li:nth(0)").addClass("this"),e.showWysiwygEditor(a))});
b.find("a:nth(1)").click(function(d){d.preventDefault();a.parent().hasClass("disabled")||(b.find("li:nth(0)").removeClass("this"),b.find("li:nth(1)").addClass("this"),e.showHtmlEditor(a))});"0"===a.attr("_wysiwygModeEnabled")&&b.css("visibility","hidden");a.before(b)};e.showWysiwygEditor=function(a){a.removeClass("deferred-wysiwyg-mce-editor html-mce-editor deferred-html-mce-editor").addClass("wysiwyg-mce-editor");c.initializeTextareaIfNecessary(a);g.initializeTextareaIfNecessary(a);f.getEditor(a)||
(c.hideToolbarIfLiquidLayout(a),a.val(f.adjustLineBreaksEnteredInHtmlMode(a)),tinyMCE.execCommand("mceAddEditor",!1,a.attr("id")));a.parents(".texteditor:first").find(".html_editor_toolbar").hide();a.parents(".texteditor:first").find(".html_editor_dragbar").hide();a.parents(".texteditor:first").find("span.mce-icon-row").hide();a.parents(".texteditor:first").find("div.mce-icon-row-empty").show();xg.shared.EventRegistry.fire("xg.shared.editors.tinymce.TinyMCE.wysiwygEditorShown")};e.showHtmlEditor=
function(a){a.removeClass("wysiwyg-mce-editor deferred-wysiwyg-mce-editor deferred-html-mce-editor").addClass("html-mce-editor");c.initializeTextareaIfNecessary(a);g.initializeTextareaIfNecessary(a);f.getEditor(a)&&(c.updateHtmlEditorHeight(a),tinyMCE.execCommand("mceRemoveEditor",!1,a.attr("id")),a.focus(),a.val(f.adjustLineBreaksEnteredInVisualMode(a)));a.parents(".texteditor:first").find(".html_editor_toolbar").show();a.parents(".texteditor:first").find(".html_editor_dragbar").show();a.parents(".texteditor:first").find("span.mce-icon-row").show();
a.parents(".texteditor:first").find("div.mce-icon-row-empty").hide();f.updateLiquidLayout(a);xg.shared.EventRegistry.fire("xg.shared.editors.tinymce.TinyMCE.htmlEditorShown")};c.hideToolbarIfLiquidLayout=function(a){a.parent().hasClass("ultracompact-editor")&&a.parent().addClass("uninitialized-liquid-layout")};c.determineButtons=function(a,b){var d=a.parent().hasClass("full-editor")?",fontsizeselect,|,bold,italic,strikethrough,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,removeformat,|,fullscreen":
",customlink,customimage,custommedia,custompastetext,customfile,|,bold,italic,strikethrough,underline,|,justifyleft,justifycenter,justifyright,|,bullist,numlist,|,customcode";if(xg.uploadsDisabled||a.attr("_hideFileUploadButton"))d=d.replace(/,customfile/,"");b.supportsCenterAlignment()||(d=d.replace(/,justifycenter/,""));"0"===a.attr("_wysiwygModeEnabled")&&(d=d.replace(/,customcode/,""));"0"===a.attr("_showFormattingDropDowns")&&(d=d.replace(/,(fontselect|fontsizeselect|forecolor)/g,""));"0"===
a.attr("_showFormattingButtons")&&(d=d.replace(/,(bold|italic|strikethrough|underline|justifyleft|justifycenter|justifyright|blockquote|bullist|numlist|removeformat)/g,""));return d=d.replace(/(,\|)+/g,",|").replace(/^,|,$/g,"").replace(/^\||\|$/g,"")};c.addUpperIconBar=function(a){$iconBar=c.createIconBar(a);a.before($iconBar);a.data("xj_upper_icon_bar",$iconBar)};c.createIconBar=function(a){var b=x$('\x3cspan class\x3d"mce-icon-row" style\x3d"display:none"\x3e'+xg.shared.nls.html("addColon")+' \x3ca href\x3d"#" class\x3d"icon-link" title\x3d"'+
xg.shared.nls.html("link")+'"\x3e'+xg.shared.nls.html("link")+'\x3c/a\x3e \x3ca href\x3d"#" class\x3d"icon-image" title\x3d"'+xg.shared.nls.html("image")+'"\x3e'+xg.shared.nls.html("image")+'\x3c/a\x3e \x3ca href\x3d"#" class\x3d"icon-media" title\x3d"'+xg.shared.nls.html("media")+'"\x3e'+xg.shared.nls.html("media")+'\x3c/a\x3e \x3ca href\x3d"#" class\x3d"icon-pastetext" title\x3d"'+xg.shared.nls.html("pasteText")+'"\x3e'+xg.shared.nls.html("pasteText")+'\x3c/a\x3e \x3ca href\x3d"#" class\x3d"icon-file" title\x3d"'+
xg.shared.nls.html("file")+'"\x3e'+xg.shared.nls.html("file")+"\x3c/a\x3e\x3c/span\x3e");b.find("a.icon-link").click(function(d){d.preventDefault();a.parent().hasClass("disabled")||xg.shared.editors.tinymce.LinkDialog(a).show()});b.find("a.icon-image").click(function(d){d.preventDefault();a.parent().hasClass("disabled")||xg.shared.editors.tinymce.ImageDialog(a,null,xg.uploadsDisabled||f.isMaxFileUploadCountReached(a)).show()});b.find("a.icon-media").click(function(d){d.preventDefault();a.parent().hasClass("disabled")||
xg.shared.editors.tinymce.MediaDialog(a).show()});b.find("a.icon-pastetext").click(function(d){d.preventDefault();a.parent().hasClass("disabled")||xg.shared.editors.tinymce.PasteTextDialog(a).show()});b.find("a.icon-file").click(function(d){d.preventDefault();a.parent().hasClass("disabled")||x$(this).hasClass("disabled")||xg.shared.editors.tinymce.FileDialog(a).show()});(xg.uploadsDisabled||a.attr("_hideFileUploadButton"))&&b.find("a.icon-file").remove();return b};c.updateHtmlEditorHeight=function(a){a.height(x$(f.getEditor(a).getContainer()).find("iframe").height())};
c.setFileButtonEnabled=function(a,b){b.data("xj_upper_icon_bar")&&(a?b.data("xj_upper_icon_bar").find("a.icon-file").removeClass("disabled"):b.data("xj_upper_icon_bar").find("a.icon-file").addClass("disabled"))};xg.addOnRequire(function(){c.initialize()});return e}(x$));dojo.hostenv.findModule("xg.shared.editors.TinyMCEEditor",!1)||(dojo.provide("xg.shared.editors.TinyMCEEditor"),xg.shared.editors.TinyMCEEditor=function(a){var c={},d={},e;d.initialize=function(){if(window.tinymce){xg.shared.editors.tinymce.Utilities.addIdIfNecessary(a);var b=a.attr("id");(e=tinymce.get(b))&&d.addEventHandlers();tinyMCE.onAddEditor.add(function(f,g){g.id==b&&(e=g,d.addEventHandlers())})}};d.addEventHandlers=function(){e.onKeyUp.add(d.onChange);e.onPaste.add(d.onChange)};d.onChange=
function(){d.checkMaxLength();c.updateBackgroundColor()};d.checkMaxLength=function(){};c.setMaxLength=function(b){var f=f=x$("\x3csmall\x3e\x3c/small\x3e").insertAfter(a.parents("div.texteditor:first"))[0];d.checkMaxLength=xg.shared.util.setAdvisableMaxLength(a[0],b,null,c.val,f,750)};d.isInHtmlMode=function(){return!e||!e.getDoc()};c.updateBackgroundColor=function(){d.isInHtmlMode()||xg.shared.editors.tinymce.Utilities.updateBackgroundColor(a,e)};c.val=function(){if(d.isInHtmlMode()){if(arguments.length){a.val(arguments[0]);
return}return a.val()}if(arguments.length)e.setContent(arguments[0]);else return e.getContent()};c.valWithLineBreakAdjustments=function(){if(d.isInHtmlMode()){var b=c.val();b=xg.shared.editors.tinymce.WordpressLineBreakRules.adjustLineBreaksEnteredInHtmlMode(b);b=xg.shared.editors.tinymce.WordpressLineBreakRules.adjustLineBreaksEnteredInVisualMode(b);return d.cleanHtml(b)}return c.val()};d.cleanHtml=function(b){return b.match(/<script\b/i)?b:x$("\x3cdiv\x3e\x3c/div\x3e").append(b).html()};c.adjustLineBreaks=
function(){if(d.isInHtmlMode()){var b=a.attr("name");a.data("xj_original_name",b);a.attr("name",b+"WithoutLineBreakAdjustments");b=x$('\x3cinput type\x3d"hidden" /\x3e').attr("name",b).val(c.valWithLineBreakAdjustments());a.after(b);a.data("xj_hidden_input",b)}};c.unadjustLineBreaks=function(){d.isInHtmlMode()&&(a.data("xj_hidden_input").remove(),a.attr("name",a.data("xj_original_name")))};c.initializeAfterPageLoad=function(){a.val().match(/<script|<object|<embed|<iframe/i)?xg.shared.editors.tinymce.TinyMCE.showHtmlEditor(a):
a.hasClass("deferred-html-mce-editor")||a.hasClass("html-mce-editor")?xg.shared.editors.tinymce.TinyMCE.showHtmlEditor(a):xg.shared.editors.tinymce.TinyMCE.showWysiwygEditor(a);return c};c.uninitialize=function(){tinyMCE.execCommand("mceRemoveControl",!1,a.attr("id"));return c};c.focus=function(){d.isInHtmlMode()?a.focus():e.focus()};c.moveCursorToStart=function(){d.isInHtmlMode()?xg.shared.editors.Editor.moveCursorToStart(a[0]):c.focus()};c.updateTextarea=function(){d.isInHtmlMode()||e.save()};c.setEnabled=
function(b){b?(a.parent().removeClass("disabled"),a.prop("disabled",!1),e.setMode("design")):(a.parent().addClass("disabled"),a.prop("disabled",!0),e.setMode("readonly"))};c.getTextarea=function(){return a};xg.addOnRequire(function(){d.initialize()});return c});dojo.hostenv.findModule("xg.components.shared.dialogAdapter",!1)||(dojo.provide("xg.components.shared.dialogAdapter"),xg.components.shared.dialogAdapter=function(){var c={alert:function(a,b){return xg.shared.util.alert(a,b)},hideDialog:function(a){c.hideOverlay(a);a.hide()},confirm:function(a){return xg.shared.util.confirm(a)},busy:function(a,b){return xg.shared.util.progressDialog({bodyHtml:xg.qh(a),classes:b})},showOverlay:function(a){return xg.shared.util.showOverlay()},hideOverlay:function(a){return xg.shared.util.hideOverlay()}};
return c}());dojo.hostenv.findModule("xg.shared.editors.Editor",!1)||(dojo.provide("xg.shared.editors.Editor"),xg.shared.editors.Editor=function(p){var c={},k={},g={},m=1;k.getID=function(a){a=x$(a);a.data("xj_editor_id")||a.data("xj_editor_id",m++);return a.data("xj_editor_id")};c.get=function(a){var b=k.getID(a);g[b]||(a=x$(a),a.hasClass("wysiwyg-mce-editor")||a.hasClass("deferred-wysiwyg-mce-editor")||a.hasClass("html-mce-editor")||a.hasClass("deferred-html-mce-editor")?g[b]=xg.shared.editors.TinyMCEEditor(a):
g[b]=xg.shared.editors.PlainEditor(a));return g[b]};c.moveCursorToStart=function(a){if(a.setSelectionRange)try{a.setSelectionRange(0,0)}catch(b){}else a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveEnd("character",0),a.moveStart("character",0),a.select())};c.warnOnLostChanges=function(a,b){var e=c.get(a),d=e.val();window.unloadaction=function(){if(e.val().replace(/<.*?>|&nbsp;/g,"")!=d.replace(/<.*?>|&nbsp;/g,""))return b?b:xg.shared.nls.text("unsavedChanges")};window.onbeforeunload=
function(){return window.unloadaction()};xg.shared.util.closest(x$(a),"form").submit(function(){window.onbeforeunload&&(window.onbeforeunload=null)});var h=dojo.event.browser.stopEvent;dojo.event.browser.stopEvent=function(f){h(f);if("submit"==f.type||"onsubmit"==f.type)window.onbeforeunload=function(){return window.unloadaction()}}};c.processRotatedImages=function(a,b){return new Promise(function(e){b.updateTextarea();try{var d=x$(b.val()).find('img[data-base64_encoded\x3d"1"]')}catch(l){return e()}var h=
xg.components.shared.dialogAdapter.busy(xg.shared.nls.text("UPLOADING_LABEL")),f=a.find("textarea").attr("_storageuploadpath");d=xg.shared.RotateImage.savePictures(d,f);d.forEach(function(l){l.then(function(n){b.updateTextarea();b.val(xg.shared.RotateImage.base64toUrl(n,x$("\x3cdiv\x3e\x3c/div\x3e").append(x$(b.val())),a.find("textarea").attr("_storagegetpath")))})});return Promise.all(d).then(function(){h.hide();b.updateTextarea();return e()})})};return c}(x$));dojo.hostenv.findModule("xg.index.quickadd.core",!1)||(dojo.provide("xg.index.quickadd.core"),xg.addOnRequire(function(){var c=xg.index.quickadd,g={};c.activeDialog=void 0;var h=!1,k=!1;xg.index.quickadd.showSpinner=function(){return xg.append(xg.shared.util.createElement('\x3cdiv class\x3d"xg_floating_module quickadd-progress-spinner"\x3e\x3cdiv style\x3d"top: -30px"\x3e\x3cimg src\x3d"'+xg.shared.util.cdn("/xn_resources/widgets/index/gfx/spinner.gif")+'" alt\x3d"'+xg.shared.nls.html("loading")+
'" height\x3d"48" width\x3d"48"\x3e\x3c/div\x3e\x3c/div\x3e'))};xg.index.quickadd.hideSpinner=function(a){x$(".quickadd-progress-spinner").remove();a||x$("#xg_overlay").hide()};xg.index.quickadd.showSuccessDialog=function(a){var b=xg.shared.util.createElement('\x3cdiv class\x3d"xg_floating_module" style\x3d"visibility:hidden"\x3e\x3cdiv style\x3d"background-image: none;" class\x3d"xg_floating_container xg_lightborder xg_module quickadd"\x3e\x3cdiv class\x3d"xg_module_head"\x3e\x3ch2\x3e\x3c/h2\x3e\x3c/div\x3e\x3cdiv class\x3d"xg_module_body"\x3e\x3cp class\x3d"msg '+
("ok"==a.status?"success":"notification")+'"\x3e'+a.message+"\x3c/p\x3e"+(a.viewUrl?'\x3cp class\x3d"view_lnk align-right"\x3e\x3ca href\x3d"'+xg.qh(a.viewUrl)+'"\x3e'+a.viewText+"\x3c/a\x3e\x3c/p\x3e":"")+'\x3cp class\x3d"buttongroup"\x3e\x3ca href\x3d"#" class\x3d"button"\x3eOK\x3c/a\x3e\x3c/p\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e');x$("h2",b).html(x$("h2",c._dialogs[c.activeDialog]).html());x$("a.button",b).click(function(d){d.preventDefault();x$(b).remove();x$("#xg_overlay").hide();return!1});
xg.append(b);xg.shared.util.fixDialogPosition(b);b.firstChild.style.visibility="visible"};xg.index.quickadd.onDefaultServerResponse=function(a,b){"ok"!=a.status&&"not_approved"!=a.status?(xg.index.util.FormHelper.showErrorMessages(xg.$("form",c._dialogs[c.activeDialog]),{x:a.message||xg.index.nls.text("thereWasAProblem")}),c.hideSpinner(!0),c.showDialog()):(k&&"undefined"!=typeof xg_quickadd_forceReload&&xg_quickadd_forceReload&&(h=!0),a.newFeedHtml?xg.activity.embed.ActivityFeedUpdater.updateFeed(b,
a.newFeedHtml,c.hideSpinner):a.viewUrl?window.location.href=a.viewUrl:(c.hideSpinner(!0),c.showSuccessDialog(a)),c.activeDialog=void 0)};xg.index.quickadd.listen=function(a,b,d){g[a]||(g[a]={});g[a][b]||(g[a][b]=[]);g[a][b].push(d)};xg.index.quickadd.fire=function(a,b,d){if(g[a]&&g[a][b]){var e=0;for(a=g[a][b];e<a.length;e++)if(d)a[e](d);else a[e]()}};xg.index.quickadd.openDialog=function(a){dojo.html.hide(c._stub);xg.shared.util.showOverlay();c.activeDialog=a;h=!1;c.fire(c.activeDialog,"open");c.showDialog(!0)};
xg.index.quickadd.cancelDialog=function(){c.removeIframe&&c.removeIframe();c.hideProgress();c.hideDialog();xg.shared.util.hideOverlay();h&&window.location.reload(!0);c.activeDialog=void 0};xg.index.quickadd.showDialog=function(a){var b=c._dialogs[c.activeDialog];b.style.visibility="hidden";b.style.display="";xg.shared.util.fixDialogPosition(b);a?(a=dojo.dom.firstElement(b,"div"),dojo.style.setOpacity(a,0),b.style.visibility="visible",a=dojo.lfx.html.fadeIn(a,250),a.onEnd=function(){var e=xg.$("form",
b);if(e)for(var f=0;f<e.elements.length;f++)if(!("FIELDSET"==e.elements[f].tagName||e.elements[f].disabled||e.elements[f].type&&"hidden"==e.elements[f].type)){e.elements[f].focus();break}},a.play()):b.style.visibility="visible";var d=xg.shared.util.getPositionedAndSizedIframe('\x3ciframe id\x3d"confirm_iframe" src\x3d"about:blank" scrolling\x3d"no" frameborder\x3d"0" /\x3e',b).appendTo("body");c.removeIframe=function(){dojo.dom.removeNode(d[0])}};xg.index.quickadd.hideDialog=function(){x$(c._dialogs[c.activeDialog]).hide();
c.removeIframe&&c.removeIframe()};xg.index.quickadd.showProgress=function(a,b,d){xg.index.quickadd.showSpinner()};xg.index.quickadd.hideProgress=function(){dojo.html.hide(dojo.byId("xg_quickadd_spinner"))};xg.index.quickadd.gotoMoreOptions=function(a,b){for(var d=0,e=a.elements,f=0;f<e.length;f++)e[f].type&&"file"==e[f].type&&""!=e[f].value&&d++;if(!d||confirm(xg.index.nls.text("cannotKeepFiles")))b&&b(),a.setAttribute("target",""),a.submit()};xg.index.quickadd.resetForm=function(a){xg.index.util.FormHelper.hideErrorMessages(a);
a.reset();x$("textarea",a).each(function(){var b=xg.shared.editors.Editor.get(this);b.val("");b.updateTextarea();b.updateBackgroundColor()})};xg.index.quickadd.validateForm=function(a,b){if(xg.index.util.FormHelper.runValidation(a,b))return!0;xg.shared.util.fixDialogPosition(xg.parent(a,"div.xg_floating_module"));return!1};xg.index.quickadd.submitForm=function(a){var b=a.cleanup||function(){};setTimeout(function(){k=a.isContent||!1;a.form.action=xg.activity.embed.ActivityFeedUpdater.addGetLatestFeedParams(a.form.action,
a.feedId);xg.shared.IframeUpload.start(a.form,function(d){if("object"!=typeof d)if("undefined"==typeof JSON)try{d=eval("(function(){ return "+d+"; })();")||{}}catch(e){d={}}else try{d=JSON.parse(d)||{}}catch(e){d={}}c.hideProgress();if(a.success)a.success(d);else xg.index.quickadd.onDefaultServerResponse(d,a.feedId);b()},!1,!1,!0);c.hideDialog();c.showProgress(a.title||xg.uploader.nls.text("uploadingLabel"),a.text||xg.uploader.nls.text("uploadingInstructions"),function(){xg.shared.IframeUpload.stop();
c.hideProgress();(a.cancel||c.cancelDialog)();b()})})};xg.index.quickadd.submitFormXhr=function(a){var b=a.cleanup||function(){};setTimeout(function(){k=a.isContent||!1;a.form.action=xg.activity.embed.ActivityFeedUpdater.addGetLatestFeedParams(a.form.action,a.feedId);c.hideDialog();c.showProgress(a.title||xg.uploader.nls.text("uploadingLabel"),a.text||xg.index.nls.text("addingInstructions"),function(){d.abort();c.hideProgress();(a.cancel||c.cancelDialog)();b()});var d=xg.post("",a.form,function(e,
f){c.hideProgress();if(a.success)a.success(f);else xg.index.quickadd.onDefaultServerResponse(f,a.feedId);b()})})}}));dojo.hostenv.findModule("xg.index.quickadd.loader",!1)||(dojo.provide("xg.index.quickadd.loader"),xg.index.quickadd._dialogs={},xg.index.quickadd._stub=void 0,xg.addOnRequire(function(){var c=0;xg.index.quickadd.loadModule=function(b,e,f,a,g){if(null===a||"undefined"===typeof a)a=!1;if(!c&&!xg.index.quickadd.activeDialog&&e){c=1;xg.shared.util.showOverlay();if(xg.index.quickadd._dialogs[b])if(a)dojo.dom.removeNode(xg.index.quickadd._dialogs[b]);else{x$(".quickadd").attr("_feedId",g);xg.shared.util.hideOverlay();
xg.index.quickadd.openDialog(b);c=0;return}!a&&xg.index.quickadd._stub?dojo.html.show(xg.index.quickadd._stub):xg.index.quickadd._stub=xg.index.quickadd.showSpinner();var h,l=2,k=function(){if(0==--l){c=0;var d=xg.append(xg.shared.util.createElement(h));dojo.html.hide(d);xg.shared.util.parseWidgets(d);x$(".quickadd").attr("_feedId",g);xg.index.quickadd.fire(b,"load");xg.index.quickadd._dialogs[b]=d;xg.shared.util.hideOverlay();xg.index.quickadd.openDialog(b)}};a=["dojo.lfx.html","xg.index.util.FormHelper",
"xg.index.quickadd.core"];f&&a.push(f);xg.get(e,{},function(d,m){h=m;k()});a.push(k);ning.loader.require.apply(ning.loader,a)}}}));dojo.hostenv.findModule("xg.index.quickadd.bar",!1)||(dojo.provide("xg.index.quickadd.bar"),dojo.widget.defineWidget("xg.index.quickAddBar",dojo.widget.HtmlWidget,{fillInTemplate:function(d,l){d=this.getFragNodeRef(l);var f=x$(d).parents(".xg_module_activity"),a=x$(".quickadd-options-wrapper, .quickadd-options-links",f),g=x$(".quickadd-wrapper",f),h=x$(d).hasClass("quickadd-options-links");h||x$(".quickadd-button",d).click(function(b){var c=g.offset();b=c.left+g.innerWidth()-a.innerWidth()+(a.outerWidth(!0)-
a.outerWidth())/2;c=c.top+g.innerHeight()-(a.outerHeight(!0)-a.innerHeight())/2;a.is(":visible")?x$(a).hide():(0<x$("#xg_themebody").length?a.parent().is("#xg_themebody")||a.appendTo("#xg_themebody"):a.parent().is("body")||a.appendTo("body"),a.css({top:c,left:b,"z-index":2E4}),a.show());return!1});x$("html").click(function(b){!h&&x$(a).is(":visible")&&x$(a).hide()});x$(".quickadd-options",a).click(function(b){b.stopPropagation()});x$(".quickadd-options a",a).click(function(b){b.preventDefault();h||
x$(a).hide();var c=x$(f).attr("id");b=x$(this).attr("data-value");var e=x$(this).attr("data-gotoPage");var k=x$(this).attr("data-url");var m=x$(this).attr("data-js");if(e)return window.location.href=k,!1;b&&(e=!1,"photo"==b&&(e=!0),xg.index.quickadd.loadModule(b,k,m,e,c))})}}));dojo.hostenv.findModule("xg.index.bulk",!1)||(dojo.provide("xg.index.bulk"),dojo.provide("xg.index.BulkActionLink"),dojo.widget.defineWidget("xg.index.BulkActionLink",dojo.widget.HtmlWidget,{title:"\x3crequired\x3e",_url:"\x3crequired\x3e",_successUrl:"",_successCallback:"",_displaySuccesDialog:"true",_couldNotProcessSomeEntitiesMessage:"",_couldNotProcessEntities:[],_joinPromptText:"",_ensureCheckboxClicked:!1,_formId:"",_checkboxSelectMessage:"",_verb:"",_confirmMessage:"",_confirmMessageForMultipleSelection:"",
_progressTitle:"",_progressMessage:"",_successTitle:"",_successMessage:"",_failureTitle:"",_failureMessage:"",_showCheckbox:!1,_checkboxUrl:"",_checkboxSuccessUrl:"",_checkboxMessage:"",_checkboxLabelStyle:"",_checkboxChecked:!1,_showTextarea:!1,_textareaTitle:"",_textareaName:"textarea",_textareaContent:"",_nonEmptyTextareaVerb:"",_textareaToggles:!1,_textareaHidden:!1,_textareaIsTextInput:!1,maxMsgLength:2E3,ensureSelection:function(){if(this._ensureCheckboxClicked){var b=!1,d=dojo.byId(this._formId);
checkboxes=[];d=d.getElementsByTagName("input");for(a=0;a<d.length;a++)"checkbox"==d[a].type&&checkboxes.push(d[a]);if(checkboxes.length)for(i=0;i<checkboxes.length;i++)checkboxes[i].checked&&(b=!0);b||xg.shared.util.alert(this._checkboxSelectMessage);return b}return!0},fillInTemplate:function(b,d){this._verb=this._verb||xg.index.nls.text("ok");this._confirmMessage=this._confirmMessage||xg.index.nls.text("areYouSureYouWant");this._progressTitle=this._progressTitle||xg.index.nls.text("processing");
this._progressMessage=this._progressMessage||xg.index.nls.text("pleaseKeepWindowOpen");this._successTitle=this._successTitle||xg.index.nls.text("complete");this._successMessage=this._successMessage||xg.index.nls.text("processIsComplete");this._failureTitle=this._failureTitle||xg.index.nls.text("error");this._failureMessage=this._failureMessage||xg.index.nls.text("processingFailed");this.a=this.getFragNodeRef(d);dojo.style.show(this.a);this.initDialog();dojo.event.connect(this.a,"onclick",dojo.lang.hitch(this,
function(c){dojo.event.browser.stopEvent(c);xg.shared.util.promptToJoin(this._joinPromptText,dojo.lang.hitch(this,function(){this._confirmMessage?this.confirm():this.execute()}))}))},initDialog:function(){if(!this.dialog){var b=dojo.html.createNodesFromText(dojo.string.trim('            \x3cdiv style\x3d"display: none" class\x3d"xg_floating_module"\x3e                \x3cdiv class\x3d"xg_floating_container xg_lightborder xg_floating_container_wide xg_module"\x3e                    \x3cdiv class\x3d"xg_module_head"\x3e                        \x3ch2\x3e'+
dojo.string.escape("html",this.title)+'\x3c/h2\x3e                    \x3c/div\x3e                    \x3cdiv class\x3d"xg_module_body"\x3e                    \x3c/div\x3e                \x3c/div\x3e            \x3c/div\x3e'))[0];this.dialog=xg.append(b);this.h2=this.dialog.getElementsByTagName("h2")[0];this.body=dojo.html.getElementsByClass("xg_module_body",b,"div")[0]}},confirm:function(){if(this.ensureSelection()){this.h2.innerHTML=this.title;var b=this._confirmMessage;this._confirmMessageForMultipleSelection&&
1<x$("#"+this._formId).find("input[type\x3dcheckbox]:checked").length&&(b=this._confirmMessageForMultipleSelection);b="\x3cp\x3e"+dojo.string.escape("html",b)+'\x3c/p\x3e                 \x3cfieldset class\x3d"nolegend"\x3e';this._showCheckbox&&(b+='                    \x3cp\x3e                         \x3clabel style\x3d"'+this._checkboxLabelStyle+'"\x3e\x3cinput type\x3d"checkbox"                             class\x3d"checkbox" id\x3d"dialog_additional_checkbox"'+(this._checkboxChecked?' checked\x3d"checked"':
"")+"\x3e"+this._checkboxMessage+"\x3c/label\x3e                     \x3c/p\x3e");this._showTextarea&&(b+="                    \x3cp\x3e"+(this._textareaTitle?'\x3clabel for\x3d"body" id\x3d"textareaLabel"\x3e'+(this._textareaToggles?'\x3cspan id\x3d"textareaArrow"\x3e'+(this._textareaHidden?"\u25ba":"\u25bc")+"\x3c/span\x3e ":"")+xg.qh(this._textareaTitle)+"\x3c/label\x3e":"")+(this._textareaIsTextInput?'\x3cinput type\x3d"text" size\x3d"30" name\x3d"body" id\x3d"body" maxlength\x3d"'+this.maxMsgLength+
'"'+(this._textareaToggles&&this._textareaHidden?' style\x3d"display: none;"':"")+'value\x3d"'+xg.qh(this._textareaContent)+'"\x3e':'\x3ctextarea rows\x3d"4" cols\x3d"30" name\x3d"body" id\x3d"body"'+(this._textareaToggles&&this._textareaHidden?' style\x3d"display: none;"':"")+"\x3e"+xg.qh(this._textareaContent)+"\x3c/textarea\x3e")+"\x3c/p\x3e");b+='                \x3cp class\x3d"buttongroup"\x3e                     \x3ca href\x3d"#" class\x3d"button action-primary"\x3e'+this._verb+'\x3c/a\x3e                     \x3ca href\x3d"#" class\x3d"action-secondary"\x3e'+
xg.index.nls.html("cancel")+"\x3c/a\x3e                 \x3c/p\x3e             \x3c/fieldset\x3e";this.body.innerHTML=b;var d=this.body.getElementsByTagName("a");if(this._showTextarea){var c=x$("#body")[0];if(this._textareaToggles){b=x$("#textareaLabel",this.body)[0];var f=x$("#textareaArrow",b);dojo.event.connect(b,"onclick",dojo.lang.hitch(this,function(e){x$(c).toggle(200);f.html(-1<f.html().indexOf("\u25ba")?"\u25bc":"\u25ba")}))}this._nonEmptyTextareaVerb&&dojo.event.connect(c,"onkeyup",dojo.lang.hitch(this,
function(e){e=dojo.string.trim(c.value);d[0].innerHTML=e&&0<e.length?xg.qh(this._nonEmptyTextareaVerb):xg.qh(this._verb)}))}dojo.event.connect(d[0],"onclick",dojo.lang.hitch(this,function(e){dojo.event.browser.stopEvent(e);this._showCheckbox&&dojo.byId("dialog_additional_checkbox").checked&&(this._url=this._checkboxUrl,0<this._checkboxSuccessUrl.length&&(this._successUrl=this._checkboxSuccessUrl));if(this._showTextarea&&(e=x$("#body")[0],this.messageBody=dojo.string.trim(e.value),this.messageBody.length>
this.maxMsgLength)){this.failure(xg.index.nls.html("messageIsTooLong",this.maxMsgLength));return}this.execute()}));dojo.event.connect(d[1],"onclick",dojo.lang.hitch(this,function(e){dojo.event.browser.stopEvent(e);this.hide()}));this.showDialog()}},execute:function(){this.h2.innerHTML=this._progressTitle;this.body.innerHTML='\x3cimg src\x3d"'+xg.shared.util.cdn("/xn_resources/widgets/index/gfx/spinner.gif")+'" alt\x3d"'+xg.shared.nls.html("loading")+'" class\x3d"left" style\x3d"margin-right:5px" width\x3d"20" height\x3d"20"/\x3e             \x3cp style\x3d"margin-left:25px"\x3e'+
this._progressMessage+"\x3c/p\x3e";this.showDialog();this.doBulkAction(0)},showDialog:function(){xg.shared.util.showOverlay();dojo.html.show(this.dialog);window.scrollTo(0,0)},doBulkAction:function(b){dojo.io.bind({url:this._url,method:"post",encoding:"utf-8",preventCache:!0,content:dojo.lang.mixin({counter:b},this.getPostContent(b)),mimetype:"text/json",load:dojo.lang.hitch(this,function(d,c,f){c?("couldNotProcessEntities"in c&&(this._couldNotProcessEntities=this._couldNotProcessEntities.concat(c.couldNotProcessEntities)),
"contentRemaining"in c?this.isDone(c.contentRemaining)?this.success():this.doBulkAction(b+1):"errorMessage"in c?this.failure(c.errorMessage):this.failure(this._failureMessage)):this.failure(this._failureMessage)})})},getPostContent:function(b){b={};this._showTextarea&&(b[this._textareaName]=this.messageBody);return b},isDone:function(b){return 0==b},success:function(){if(this._successUrl.length&&0==this._couldNotProcessEntities.length)window.location.replace(this._successUrl);else{if("true"==this._displaySuccesDialog||
0<this._couldNotProcessEntities.length){var b="";if(0<this._couldNotProcessEntities.length){this.h2.innerHTML=this.title;b="\x3cp\x3e"+this._couldNotProcessSomeEntitiesMessage+"\x3c/p\x3e\x3cul\x3e";for(var d=0;d<this._couldNotProcessEntities.length;d++)b+="\x3cli\x3e"+this._couldNotProcessEntities[d]+"\x3c/li\x3e";b+="\x3c/ul\x3e"}else this.h2.innerHTML=this._successTitle,b="\x3cp\x3e"+this._successMessage+"\x3c/p\x3e";b+='\x3cp class\x3d"buttongroup"\x3e\x3ca href\x3d"#" class\x3d"button"\x3e'+
xg.index.nls.html("ok")+"\x3c/a\x3e\x3c/p\x3e";this.body.innerHTML=b;b=this.body.getElementsByTagName("a");dojo.event.connect(this.body.getElementsByTagName("a")[b.length-1],"onclick",dojo.lang.hitch(this,function(c){dojo.event.browser.stopEvent(c);this.hide();this._successUrl.length&&window.location.replace(this._successUrl)}))}else this.hide();this._successCallback.length&&eval(this._successCallback+"(this.a)");window.scrollTo(0,0)}},failure:function(b){this.h2.innerHTML=this._failureTitle;this.body.innerHTML=
"\x3cp\x3e"+b+'\x3c/p\x3e                 \x3cp class\x3d"buttongroup"\x3e                     \x3ca href\x3d"#" class\x3d"button"\x3e'+xg.index.nls.html("ok")+"\x3c/a\x3e                 \x3c/p\x3e";b=this.body.getElementsByTagName("a");dojo.event.connect(this.body.getElementsByTagName("a")[b.length-1],"onclick",dojo.lang.hitch(this,function(d){dojo.event.browser.stopEvent(d);this.hide()}));window.scrollTo(0,0)},hide:function(){x$(this.dialog).hide();xg.shared.util.hideOverlay()}}),dojo.widget.defineWidget("xg.index.BroadcastMessageLink",
xg.index.BulkActionLink,{_spamUrl:"",_spamMessageParts:"",maxMsgLength:1E4,confirm:function(){this.h2.innerHTML=this.title;this.body.innerHTML='\x3cdl style\x3d"display: none"\x3e\x3c/dl\x3e                \x3cfieldset\x3e                 \x3cp\x3e\x3clabel for\x3d"subject"\x3e'+xg.index.nls.html("subject")+'\x3c/label\x3e\x3cbr /\x3e\x3cinput type\x3d"text" class\x3d"textfield dy-input-full" name\x3d"subject" id\x3d"subject" size\x3d"51" /\x3e\x3c/p\x3e                 \x3cp\x3e\x3clabel for\x3d"body"\x3e'+
xg.index.nls.html("body")+"\x3c/label\x3e("+xg.index.nls.html("htmlNotAllowed")+')\x3cbr /\x3e\x3ctextarea rows\x3d"6" cols\x3d"20" class\x3d"dy-input-full" name\x3d"body" id\x3d"body"\x3e\x3c/textarea\x3e\x3c/p\x3e                 \x3cp class\x3d"buttongroup"\x3e                     \x3ca href\x3d"#" class\x3d"button action-primary"\x3e'+xg.index.nls.html("send")+'\x3c/a\x3e                     \x3ca href\x3d"#" class\x3d"action-secondary"\x3e'+xg.index.nls.html("cancel")+"\x3c/a\x3e                 \x3c/p\x3e             \x3c/fieldset\x3e";
var b=this.body.getElementsByTagName("a"),d=this.body.getElementsByTagName("input")[0],c=this.body.getElementsByTagName("textarea")[0],f=this.body.getElementsByTagName("dl")[0];dojo.event.connect(b[0],"onclick",dojo.lang.hitch(this,function(e){dojo.event.browser.stopEvent(e);e=[];dojo.lang.forEach(dojo.html.getElementsByClass("error",this.body),function(g){dojo.html.removeClass(g,"error")},!0);this.messageSubject=dojo.string.trim(d.value);0==this.messageSubject.length?(e.push(xg.index.nls.html("pleaseEnterASubject")),
xg.index.util.FormHelper.showErrorMessage(d)):this.messageSubject.length>this.maxMsgLength&&(e.push(xg.index.nls.html("subjectIsTooLong",this.maxMsgLength)),xg.index.util.FormHelper.showErrorMessage(d));this.messageBody=dojo.string.trim(c.value);0==this.messageBody.length?(e.push(xg.index.nls.html("pleaseEnterAMessage")),xg.index.util.FormHelper.showErrorMessage(c)):this.messageBody.length>this.maxMsgLength&&(e.push(xg.index.nls.html("messageIsTooLong",this.maxMsgLength)),xg.index.util.FormHelper.showErrorMessage(c));
0==e.length?(dojo.html.hide(f),this._executeProper(d,c)):(dojo.html.setClass(f,"errordesc msg clear"),f.innerHTML="\x3cdt\x3e"+xg.index.nls.html("thereHasBeenAnError")+"\x3c/dt\x3e\x3cdd\x3e\x3col\x3e\x3cli\x3e"+e.join("\x3c/li\x3e\x3cli\x3e")+"\x3c/li\x3e\x3c/ol\x3e\x3c/dd\x3e",dojo.html.show(f))}));dojo.event.connect(b[1],"onclick",dojo.lang.hitch(this,function(e){dojo.event.browser.stopEvent(e);this.hide()}));xg.shared.util.setAdvisableMaxLength(c,this.maxMsgLength);this.showDialog()},_executeProper:function(b,
d){var c=this;this._spamMessageParts=dojo.json.evalJson(this._spamMessageParts);this._spamMessageParts[xg.index.nls.text("yourSubject")]=b.value;this._spamMessageParts[xg.index.nls.text("yourMessage")]=d.value;this._spamMessageParts=dojo.json.serialize(this._spamMessageParts);xg.shared.SpamWarning.checkForSpam({url:this._spamUrl,messageParts:this._spamMessageParts,form:c.body,onContinue:function(){dojo.style.show(c.dialog);c.execute()},onBack:function(){dojo.style.show(c.dialog)},onWarning:function(){dojo.style.hide(c.dialog)}})},
getPostContent:function(b){return{subject:this.messageSubject,body:this.messageBody}}}));if (!dojo.hostenv.findModule('xg.custom.shared.messagecatalogs.en_US', false)) {
dojo.provide('xg.custom.shared.messagecatalogs.en_US');dojo.evalObjPath('xg.chat.nls',true);dojo.lang.mixin(xg.chat.nls,xg.index.i18n,{mainRoom:'Main Chat Room'});
}