attachDocumentStub=(function(){var K={};var E="\t\n\r ";var N=new RegExp("^["+unicode.LETTER+"_:]["+unicode.LETTER+unicode.DIGIT+".\\-_:"+unicode.COMBINING_CHAR+unicode.EXTENDER+"]*$");var D=new RegExp("^["+unicode.LETTER+unicode.DIGIT+".\\-_:"+unicode.COMBINING_CHAR+unicode.EXTENDER+"]+$");var B=new RegExp("^(?:["+E+"]*["+unicode.LETTER+unicode.DIGIT+".\\-_:"+unicode.COMBINING_CHAR+unicode.EXTENDER+"]+)+["+E+"]*$");var G="\t\n\r ";var M="(?:[a-zA-Z_][a-zA-Z0-9$_]*[a-zA-Z0-9$]|[a-zA-Z])_?";var H=new RegExp("^["+G+"]*(return["+G+"]+)?("+M+")["+G+"]*\\((?:this(?:["+G+"]*,["+G+"]*event)?["+G+"]*)?\\)["+G+"]*(?:;?["+G+"]*)$");function L(O){return N.test(O)}function J(O){return B.test(O)}function A(O){if(!O){console&&(console.log("domita assertion failed"),console.trace());throw new Error()}}function C(T,O){for(var Q=O.length;--Q>=0;){var V=O[Q];var U=V.charAt(0).toUpperCase()+V.substring(1);var R="get"+U;var P="set"+U;var S=0;if(T.prototype.hasOwnProperty(R)){++S;___.useGetHandler(T.prototype,V,T.prototype[R])}if(T.prototype.hasOwnProperty(P)){++S;___.useSetHandler(T.prototype,V,T.prototype[P])}if(!S){throw new Error("Failed to export field "+V+" on "+T)}}}function I(Q,O){var P=function(){};P.prototype=O.prototype;Q.prototype=new P();Q.prototype.constructor=Q}function F(V,m,k,b){var i={};i.FORM=function(s){var r=false;for(var q=0,t=s.length;q<t;q+=2){if(s[q]==="ONSUBMIT"){r=true}}if(!r){s.push("ONSUBMIT","return false")}return s};i.A=i.AREA=function(q){q.push("TARGET","_blank");return q};function S(r){var q=[];X(r,q);return q.join("")}var X=html.makeHtmlSanitizer(function d(s,w){for(var r=0;r<w.length;r+=2){var t=w[r];var u=w[r+1];if(html4.ATTRIBS.hasOwnProperty(t)){var q=html4.ATTRIBS[t];u=f(s,t,q,u)}else{u=null}if(u!=null){w[r+1]=u}else{w.splice(r,2);r-=2}}var v=i[s];if(v&&i.hasOwnProperty(s)){return v(w)}return w});function o(r){var q=[];g(r,q);return q.join("")}var g=html.makeSaxParser({startTag:function(t,w,q){q.push("<",t);for(var s=0;s<w.length;s+=2){var u=w[s];if(u==="TARGET"){continue}var r=html4.ATTRIBS[u];var v=w[s+1];if(r===html4.atype.IDREF){if(v.length<=V.length||V!==v.substring(0,V.length)){continue}v=v.substring(V.length)}if(v!=null){q.push(" ",u,'="',html.escapeAttrib(v),'"')}}q.push(">")},endTag:function(r,q){q.push("</",r,">")},pcdata:function(r,q){q.push(r)},rcdata:function(r,q){q.push(r)},cdata:function(r,q){q.push(r)}});function f(s,u,t,v){v=String(v);switch(t){case html4.atype.IDREF:if(!(v&&L(v))){return null}return V+v;case html4.atype.NAME:if(!(v&&L(v))){return null}return v;case html4.atype.NMTOKENS:if(!(v&&J(v))){return null}return v;case html4.atype.SCRIPT:var r=v.match(H);if(!r){return null}var x=r[1];var w=r[2];var q=___.getId(b);v=(x?"return ":"")+"plugin_dispatchEvent___(this, event || window.event, "+q+', "'+w+'");';if(u==="ONSUBMIT"){v="try { "+v+" } finally { return false; }"}return v;case html4.atype.URI:if(!m){return null}return m.rewrite(v,"*/*")||null;case html4.atype.STYLE:return null;case html4.atype.FRAME:return null;default:return v}}function Y(s,r){if(s==null){return null}var q;switch(s.nodeType){case 1:switch(s.tagName.toUpperCase()){case"FORM":q=new p(s,r);break;case"INPUT":q=new c(s,r);break;case"IMG":q=new n(s,r);break;case"A":if(s.hasAttribute("name")){q=new Z(s,r)}else{q=new U(s,r)}break;default:q=new P(s,r);break}break;case 3:q=new R(s,r);break;default:return null}return q}function j(q,v,u){var t=[];for(var s=q.length;--s>=0;){var w=Y(q.item(s),v);t[s]=w;var r=u&&w.getAttribute(u);if(r&&!(/_$/.test(r)||(r in t)||r===String(r&2147483647))){t[r]=w}}t.item=function(x){x&=2147483647;if(isNaN(x)){throw new Error()}return this[x]||null};return t}function e(r){var q=r;while(q!=null&&q!=document.body&&q.id!=null&&q.id.indexOf("x-")!=0){q=q.parentNode}return q.id=="x-wrapper"}function h(s){this.coll___=s;for(var q=0;q<this.coll___.length;++q){var r=this.coll___[q];if(e(r)){if(r.id){this[r.id]=Y(r,true);___.allowEnum(this,r.id)}else{if(r.name){this[r.name]=Y(r,true);___.allowEnum(this,r.name)}}this.push(Y(r,true))}}}I(h,Array);h.prototype.getLength=function(){return Number(this.coll___.length)};h.prototype.item=function(q){return Y(this.coll___.item(Number(q)),true)};h.prototype.namedItem=function(q){return Y(this.coll___.namedItem(String(q)),true)};___.ctor(h,undefined,"TameHTMLCollection");___.all2(___.allowMethod,h,["getLength","item","namedItem"]);function W(q){this.el___=q}W.prototype.getFontFamily=function(){return String(this.el___.style.fontFamily)};W.prototype.setFontFamily=function(q){this.el___.style.fontFamily=String(q)};W.prototype.getTop=function(){return Number(this.el___.style.top)};W.prototype.setTop=function(q){var r=String(q);r=r.toLowerCase();if(r.indexOf("px")!=(r.length-2)){r=r+"px"}this.el___.style.top=r};W.prototype.getLeft=function(){return Number(this.el___.style.left)};W.prototype.setLeft=function(q){var r=String(q);r=r.toLowerCase();if(r.indexOf("px")!=(r.length-2)){r=r+"px"}this.el___.style.left=r};W.prototype.getColor=function(){return this.el___.style.color};W.prototype.setColor=function(q){this.el___.style.color=String(q)};W.prototype.getFontSize=function(){return this.el___.style.fontSize};W.prototype.setFontSize=function(q){this.el___.style.fontSize=String(q)};W.prototype.getPosition=function(){return String(this.el___.style.position)};W.prototype.setPosition=function(q){this.el___.style.position=String(q)};___.ctor(W,undefined,"TameStyle");___.all2(___.allowMethod,W,["getFontFamily","setFontFamily","getTop","setTop","getLeft","setLeft","getColor","setColor","getFontSize","setFontSize","getPosition","setPosition"]);C(W,["fontFamily","top","left","color","fontSize","position"]);function a(r,q){this.node___=r;this.editable___=q}a.prototype.secret___=K;a.prototype.getNodeType=function(){return this.node___.nodeType};a.prototype.getNodeName=function(){return this.node___.nodeName};a.prototype.getNodeValue=function(){return this.node___.nodeValue};a.prototype.appendChild=function(q){if(q.secret___!==K||!this.editable___||!q.editable___){throw new Error()}this.node___.appendChild(q.node___)};a.prototype.insertBefore=function(r,q){if(r.secret___!==K||!this.editable___||!r.editable___){throw new Error()}if(!q){this.node___.insertBefore(r.node___)}else{this.node___.insertBefore(r.node___,q.node___)}};a.prototype.removeChild=function(q){if(q.secret___!==K||!this.editable___){throw new Error()}this.node___.removeChild(q.node___)};a.prototype.replaceChild=function(r,q){if(r.secret___!==K||q.secret___!==K||!this.editable___||!q.editable___){throw new Error()}this.node___.replaceChild(r.node___,q.node___)};a.prototype.getFirstChild=function(){return Y(this.node___.firstChild)};a.prototype.getLastChild=function(){return Y(this.node___.lastChild)};a.prototype.getNextSibling=function(){return Y(this.node___.nextSibling)};a.prototype.getPrevSibling=function(){return Y(this.node___.prevSibling)};a.prototype.getElementsByTagName=function(q){return j(this.node___.getElementsByTagName(String(q)),this.editable___)};___.ctor(a,undefined,"TameNode");___.all2(___.allowMethod,a,["getNodeType","getNodeValue","getNodeName","appendChild","insertBefore","removeChild","replaceChild","getFirstChild","getLastChild","getNextSibling","getPrevSibling","getElementsByTagName"]);C(a,["nodeType","nodeValue","nodeName","firstChild","lastChild","nextSibling","prevSibling"]);function R(r,q){A(r.nodeType===3);a.call(this,r,q)}I(R,a);R.prototype.setNodeValue=function(q){if(!this.editable___){throw new Error()}this.node___.nodeValue=String(q||"")};R.prototype.getData=R.prototype.getNodeValue;R.prototype.setData=R.prototype.setNodeValue;R.prototype.toString=function(){return"#text"};___.ctor(R,undefined,"TameNode");___.all2(___.allowMethod,R,["setNodeValue","getData","setData"]);C(R,["nodeValue","data"]);function P(r,q){A(r.nodeType===1);a.call(this,r,q)}I(P,a);P.prototype.getId=function(){return this.node___.id||""};P.prototype.setId=function(q){this.node___.id=String(q)};P.prototype.getAttribute=function(q){q=String(q).toUpperCase();var r=html4.ATTRIBS[q];if(r===undefined||!html4.ATTRIBS.hasOwnProperty(q)){return null}var s=this.node___.getAttribute(q);if("string"!==typeof s){return s}switch(r){case html4.atype.IDREF:var t=V.length;if(s&&s.length>=t&&V===s.substring(0,t)){return s.substring(t)}return"";default:return s}};P.prototype.setAttribute=function(q,t){if(!this.editable___){throw new Error()}q=String(q).toUpperCase();var s=html4.ATTRIBS[q];if(s===undefined||!html4.ATTRIBS.hasOwnProperty(q)){throw new Error()}var r=f(this.node___.tagName,q,s,t);if(r!==null){this.node___.setAttribute(q,r)}};P.prototype.getClassName=function(){return getAttribute("class")};P.prototype.setClassName=function(q){if(!this.editable___){throw new Error()}return this.getAttribute("class",String(q))};P.prototype.getTagName=a.prototype.getNodeName;P.prototype.getInnerHTML=function(){var s=this.node___.tagName.toUpperCase();if(!html4.ELEMENTS.hasOwnProperty(s)){return""}var q=html4.ELEMENTS[s];var r=this.node___.innerHTML;if(q&html4.eflags.CDATA){r=html.escapeAttrib(r)}else{if(q&html4.eflags.RCDATA){r=html.normalizeRCData(r)}else{r=o(r)}}return r};P.prototype.setInnerHTML=function(s){if(!this.editable___){throw new Error()}var r=this.node___.tagName.toUpperCase();if(!html4.ELEMENTS.hasOwnProperty(r)){throw new Error()}var q=html4.ELEMENTS[r];if(q&html4.eflags.UNSAFE){throw new Error()}s=String(s||"");if(q&html4.eflags.RCDATA){s=s.normalizeRCData(s)}else{s=S(s)}this.node___.innerHTML=s};P.prototype.addEventListener=function(r,t,q){if(!this.editable___){throw new Error()}if("function"!==typeof t){throw new Error()}r=String(r);if(this.node___.addEventListener){this.node___.addEventListener(r,function(u){return plugin_dispatchEvent___(this,u||window.event,___.getId(b),t)},q===undefined?undefined:Boolean(q))}else{var s=this;this.node___.attachEvent("on"+r,dispatcher)}};P.prototype.getStyle=function(){if(!this.editable___){throw new Error()}return new W(this.node___)};P.prototype.setStyle=function(q){this.node___.style=q};P.prototype.getClientWidth=function(){return this.node___.clientWidth?this.node___.clientWidth:null};P.prototype.getClientHeight=function(){return this.node___.clientHeight?this.node___.clientHeight:null};P.prototype.toString=function(){return"<"+this.node___.tagName+">"};___.ctor(P,a,"TameElement");___.all2(___.allowMethod,P,["addEventListener","getAttribute","setAttribute","getClassName","setClassName","getId","setId","getInnerHTML","setInnerHTML","getTagName","getStyle","getClientWidth","getClientHeight"]);C(P,["className","id","innerHTML","tagName","style","clientWidth","clientHeight"]);function p(r,q){P.call(this,r,q)}I(p,P);p.prototype.getElements=function(){return j(this.node___.elements,this.editable___,"name")};___.ctor(p,P,"TameFormElement");___.all2(___.allowMethod,p,["getElements"]);C(p,["elements"]);function c(r,q){P.call(this,r,q)}I(c,P);c.prototype.getValue=function(){var q=this.node___.value;return q==null?null:String(q)};c.prototype.setValue=function(q){if(!this.editable___){throw new Error()}this.node___.value=(q==null?"":""+value)};c.prototype.focus=function(){if(!this.editable___){throw new Error()}this.node___.focus()};c.prototype.blur=function(){if(!this.editable___){throw new Error()}this.node___.blur()};c.prototype.getForm=function(){return Y(this.node___.form)};___.ctor(c,P,"TameInputElement");___.all2(___.allowMethod,c,["getValue","setValue","focus","getForm"]);C(c,["value","form"]);function n(r,q){P.call(this,r,q)}I(n,P);n.prototype.getSrc=function(){var q=this.node___.value;return q==null?null:String(q)};n.prototype.setSrc=function(q){if(!this.editable___){throw new Error()}this.node___.src=(q==null?"":String(q))};___.ctor(n,P,"TameImageElement");___.all2(___.allowMethod,n,["getSrc","setSrc"]);C(n,["src"]);function Z(r,q){P.call(this,r,q)}I(Z,P);___.ctor(Z,P,"TameAnchorElement");function U(r,q){P.call(this,r,q)}I(U,P);U.prototype.getHref=function(){return String(this.node___.href)};U.prototype.getInnerText=function(){var q="";if(this.node___.innerText){q=String(this.node___.innerText)}else{if(this.node___.text){q=String(this.node___.text)}}return q};U.prototype.getText=function(){return this.getInnerText()};___.ctor(U,P,"TameLinkElement");___.all2(___.allowMethod,U,["getHref","getInnerText","getText"]);C(U,["href","innerText","text"]);function T(q){this.event___=q}T.prototype.getType=function(){return String(this.event___.type)};T.prototype.getTarget=function(){return Y(this.event___.target,true)};T.prototype.getPageX=function(){return Number(this.event___.pageX)};T.prototype.getPageY=function(){return Number(this.event___.pageY)};T.prototype.stopPropagation=function(){return this.event___.stopPropagation()};T.prototype.getAltKey=function(){return Boolean(this.event___.altKey)};T.prototype.getCtrlKey=function(){return Boolean(this.event___.ctrlKey)};T.prototype.getMetaKey=function(){return Boolean(this.event___.metaKey)};T.prototype.getShiftKey=function(){return Boolean(this.event___.shiftKey)};T.prototype.getButton=function(){var q=this.event___;return q.button&&Number(q.button)};T.prototype.getClientX=function(){return Number(this.event___.clientX)};T.prototype.getClientY=function(){return Number(this.event___.clientY)};T.prototype.getWhich=function(){var q=this.event___.which;return q&&Number(q)};T.prototype.getKeyCode=function(){var q=this.event___.keyCode;return q&&Number(q)};T.prototype.toString=function(){return"Not a real event"};T.prototype.current;___.ctor(T,undefined,"TameEvent");___.all2(___.allowMethod,T,["getType","getTarget","getPageX","getPageY","stopPropagation","getAltKey","getCtrlKey","getMetaKey","getShiftKey","getButton","getClientX","getClientY","getKeyCode","getWhich"]);C(T,["type","target","pageX","pageY","altKey","ctrlKey","metaKey","shiftKey","button","clientX","clientY","keyCode","which"]);function Q(r,q){this.doc___=r;this.editable___=q}Q.prototype.createElement=function(s){if(!this.editable___){throw new Error()}s=String(s).toUpperCase();if(!html4.ELEMENTS.hasOwnProperty(s)){throw new Error()}var q=html4.ELEMENTS[s];if(q&html4.eflags.UNSAFE){throw new Error()}var u=this.doc___.createElement(s);if(i.hasOwnProperty(s)){var t=i[s]([]);if(t){for(var r=0;r<t.length;r+=2){u.setAttribute(t[r],t[r+1])}}}return Y(u,true)};Q.prototype.createTextNode=function(q){if(!this.editable___){throw new Error()}return Y(this.doc___.createTextNode(q!=null?""+q:""),true)};Q.prototype.getElementById=function(r){r=V+r;var q=this.doc___.getElementById(r);if(q==null){return null}if(e(q)){return Y(q,this.editable___)}else{return null}};Q.prototype.getURL=function(){return String(this.doc___.URL)};Q.prototype.getLocation=function(){return String(this.doc___.location)};Q.prototype.getReferrer=function(){return String(this.doc___.referrer)};Q.prototype.write=function(q){var r=this.getElementById(k);r.setInnerHTML(r.getInnerHTML()+q)};Q.prototype.getAnchors=function(){return new h(this.doc___.anchors)};Q.prototype.getForms=function(){return new h(this.doc___.forms)};Q.prototype.getImages=function(){return new h(this.doc___.images)};Q.prototype.getLinks=function(){return new h(this.doc___.links)};Q.prototype.getBody=function(){return new P(this.doc___.body,false)};Q.prototype.toString=function(){return"[Fake Document]"};___.ctor(Q,undefined,"TameDocument");___.all2(___.allowMethod,Q,["createElement","createTextNode","getElementById","getLocation","getURL","getReferrer","write","getBody"]);C(Q,["location","URL","referrer","anchors","forms","images","links","body"]);function l(q){this.window___=q}l.prototype.getDefaultStatus=function(){return String(this.window___.defaultStatus)};l.prototype.setDefaultStatus=function(q){this.window___.defaultStatus=String(q)};l.prototype.getDocument=function(){return new Q(document,true)};l.prototype.getInnerHeight=function(){return Number(this.window___.innerHeight)};l.prototype.getInnerWidth=function(){return Number(this.window___.innerWidth)};l.prototype.getLocation=function(){return String(this.window___.location)};l.prototype.getName=function(){return String(this.window___.name)};l.prototype.getOuterHeight=function(){return Number(this.window___.outerHeight)};l.prototype.getOuterWidth=function(){return Number(this.window___.outerWidth)};l.prototype.getPageXOffset=function(){return Number(this.window___.pageXOffset)};l.prototype.getPageYOffset=function(){return Number(this.window___.pageYOffset)};l.prototype.getScreenX=function(){return Number(this.window___.screenX)};l.prototype.getScreenY=function(){return Number(this.window___.screenY)};l.prototype.getScrollMaxX=function(){return Number(this.window___.scrollMaxX)};l.prototype.getScrollMaxY=function(){return Number(this.window___.scrollMaxY)};l.prototype.getScrollX=function(){return Number(this.window___.scrollX)};l.prototype.getScrollY=function(){return Number(this.window___.scrollY)};l.prototype.getStatus=function(){return String(this.window___.status)};l.prototype.setStatus=function(q){this.window___.status=String(q)};l.prototype.alert=function(q){window.alert(String(q))};l.prototype.clearInterval=function(q){this.window___.clearInterval(q)};l.prototype.clearTimeout=function(q){this.window___.clearTimeout(q)};l.prototype.confirm=function(q){this.window___.confirm(String(q))};l.prototype.setInterval=function(r,q){if(typeof (r)!="function"){throw new Error()}else{return this.window___.setInterval(r,q)}};l.prototype.setTimeout=function(r,q){if(typeof (r)!="function"){throw new Error()}else{return this.window___.setTimeout(r,q)}};l.prototype.toString=function(){return"Not a real window"};___.ctor(l,undefined,"TameWindow");___.all2(___.allowMethod,l,["getDefaultStatus","getDocument","getInnerHeight","getInnerWidth","getLocation","getName","getOuterHeight","getOuterWidth","getPageXOffset","getPageYOffset","getScreenX","getScreenY","getScrollMaxX","getScrollMaxY","getScrollX","getScrollY","getStatus","alert","clearInterval","clearTimeout","confirm","setInterval","setTimeout"]);C(l,["defaultStatus","document","innerHeight","innerWidth","location","name","outerHeight","outerWidth","pageXOffset","pageYOffset","screenX","screenY","scrollMaxX","scrollMaxY","scrollX","scrollY","status"]);function O(q){this.navigator___=q}O.prototype.getCodeName=function(){return String(this.navigator___.codeName)};O.prototype.getAppMinorVersion=function(){return String(this.navigator___.appMinorVersion)};O.prototype.getAppName=function(){return String(this.navigator___.appName)};O.prototype.getAppVersion=function(){return String(this.navigator___.appVersion)};O.prototype.getCookieEnabled=function(){return String(this.navigator___.cookieEnabled)};O.prototype.getCpuClass=function(){return String(this.navigator___.cpuClass)};O.prototype.getMimeTypes=function(){return String(this.navigator___.mimeTypes)};O.prototype.getOnLine=function(){return String(this.navigator___.onLine)};O.prototype.getPlatform=function(){return String(this.navigator___.platform)};O.prototype.getSystemLanguage=function(){return String(this.navigator___.systemLanguage)};O.prototype.getUserAgent=function(){return String(this.navigator___.userAgent)};O.prototype.getUserLanguage=function(){return String(this.navigator___.userLanguage)};O.prototype.toString=function(){return"Not a real navigator"};___.ctor(O,undefined,"TameNavigator");___.all2(___.allowMethod,O,["getCodeName","getAppMinorVersion","getAppName","getAppVersion","getCookieEnabled","getCpuClass","getMimeTypes","getOnLine","getPlatform","getSystemLanguage","getUserAgent","getUserLanguage"]);C(O,["codeName","appMinorVersion","appName","appVersion","cookieEnabled","cpuClass","mimeTypes","onLine","platform","systemLanguage","userAgent","userLanguage"]);b.emitHtml___=function(q){var r=new Q(document,true);r.write(q)};b.tameNode___=Y;b.tameEvent___=function(q){return new T(q)};b.document=new Q(document,true);b.window=new l(window);b.navigator=new O(navigator);b.setTimeout=function(r,q){var s=new l(window);s.setTimeout(r,q)};___.simpleFunc(b.setTimeout);b.setInterval=function(r,q){var s=new l(window);s.setInterval(r,q)};___.simpleFunc(b.setInterval);b.clearTimeout=function(q){var r=new l(window);r.clearTimeout(q)};___.simpleFunc(b.clearTimeout);b.clearInterval=function(q){var r=new l(window);r.clearInterval(q)};___.simpleFunc(b.clearInterval);b.alert=function(r){var q=new l(window);q.alert(r)};___.simpleFunc(b.alert);b.confirm=function(r){var q=new l(window);q.confirm(r)};b.parseInt=function(q){return parseInt(q)};___.simpleFunc(b.parseInt);b.Image=function(q,s){var r=new Image(q,s);return new n(r,true)};___.ctor(b.Image);b.replaceSmileys=function(s){function v(){widgEditor.prototype.cleanSource=function(){var AB="";if(this.wysiwyg){AB=this.theIframe.contentWindow.document.getElementsByTagName("body")[0].innerHTML}else{AB=this.theTextarea.value}AB=AB.validTags();AB=AB.replace(/^\s+/,"");AB=AB.replace(/\s+$/,"");AB=AB.replace(/ style="[^"]*"/g,"");AB=AB.replace(/<br>/g,"<br />");AB=AB.replace(/<br \/>\s*<\/(h1|h2|h3|h4|h5|h6|li|p)/g,"</$1");AB=AB.replace(/(<img [^>]+[^\/])>/g,"$1 />");AB=AB.replace(/(<[^\/]>|<[^\/][^>]*[^\/]>)\s*<\/[^>]*>/g,"");AB=AB.replace(/<img[^<>]*s+r+c+="http:\/\/s.xanga.com\/images\/(happy|sad|winky|silly|laughing|angry|censored|bitter|confused|clueless|wtf|shocked|stunned|surprised|whatevah|bummed|pleased|cool|blush|shy|kiss|smooch|heart)[\d]?.gif"[^<>]*>/g,":$1:");for(var AA=0;AA<s.length;AA++){var AD=s[AA];var z=":"+AD.text+":";var y='<img src="'+AD.source+'" />';var AC=new RegExp(y,"g");AB=AB.replace(AC,z)}if(this.wysiwyg){this.theIframe.contentWindow.document.getElementsByTagName("body")[0].innerHTML=AB}else{this.theTextarea.value=AB}this.theInput.value=AB;return dd};widgEditor.prototype.processSmileys=function(){var AC=this.theTextarea.value;AC=AC.replace(/:[^:]*(kiss|heart)[^:]*:/g,'<img src="http://s.xanga.com/images/$12.gif" />');AC=AC.replace(/:[^:]*(happy|sad|winky|silly|laughing|angry|censored|bitter|confused|clueless|wtf|shocked|stunned|surprised|whatevah|bummed|pleased|cool|blush|shy|smooch)[^:]*:/g,'<img src="http://s.xanga.com/images/$1.gif" />');for(var AA=0;AA<s.length;AA++){var AD=s[AA];var z=":"+AD.text+":";var y='<img src="'+AD.source+'">';var AB=new RegExp(z,"g");AC=AC.replace(AB,y)}this.theTextarea.value=AC}}function u(){var AB=document.getElementById("viewcomments");if(AB){var AF=AB.parentNode.parentNode;var AD=AF.innerHTML;for(var AA=0;AA<s.length;AA++){var AE=s[AA];var z=":"+AE.text+":";var y='<img src="'+AE.source+'">';var AC=new RegExp(z,"g");AD=AD.replace(AC,y)}AF.innerHTML=AD}}function r(AD){var AF=document.createElement("div");AF.id="ss_toolbar";var AC=document.createElement("div");AC.id="ss_label";AC.style.fontWeight="bold";var AB=document.createElement("a");AB.href="http://xangasean.googlepages.com/super_smilies.txt";var AA=document.createTextNode("SuperSmileys!");AB.appendChild(AA);AC.appendChild(AB);AF.appendChild(AC);for(var z=0;z<s.length;z++){var y=document.createElement("a");var AE=s[z];y.href="#";y.innerHTML='<img src="'+AE.source+'" title=":'+AE.text+':" style="border:none!important;" />';y.style.margin="5px 5px 0px 0px";y.style.cursor="pointer";y.onclick=(function(AG){return function(){x(AG);return false}})(AE.source);AF.appendChild(y)}AD.parentNode.insertBefore(AF,AD.nextSibling)}function x(AB){var y=w();var AA=y.widgToolbarObject;var z=AA.widgEditorObject.theIframe.contentWindow;z.focus();insertSmiley(AB)}function w(){var z=document.getElementById("submitcomment");if(z){var y=z.getElementsByTagName("ul");if(y){return y[0]}else{return false}}else{return false}}function q(){var y=w();if(y){u();r(y);v()}}function t(z,AA,y){if(z.addEventListener){z.addEventListener(AA,y,false)}else{if(z.attachEvent){AA="on"+AA;z.attachEvent(AA,y)}}}t(window,"load",q)};___.simpleFunc(b.replaceSmileys)}return F})();function plugin_dispatchEvent___(B,D,A,C){(typeof console!=="undefined"&&console.log)&&console.log("Dispatch %s event thisNode=%o, event=%o, pluginId=%o, handler=%o",D.type,B,D,A,C);var E=___.getOuters(A);switch(typeof C){case"string":C=E[C];break;case"function":break;default:throw new Error("Expected function as event handler, not "+typeof C)}return(___.asSimpleFunc(C))(E.tameNode___(B),E.tameEvent___(D))};