(function(){function e(c,a,b){c=MGJS.$(c).innerHTML;a='<a href="#'+a+'">@'+c.replace(/\t|\n|\r\n/g,"")+"</a> \n";h(a,b)}function g(c,a,b,f){c=MGJS.$(c).innerHTML;var i=MGJS.$(b).innerHTML;b='<blockquote cite="#'+b+'">';b+='\n<strong><a href="#'+a+'">'+c.replace(/\t|\n|\r\n/g,"")+"</a> :</strong>";b+=i.replace(/\t/g,"");b+="</blockquote>\n";d(b,f)}function h(c,a){if(MGJS.$(a)&&MGJS.$(a).type=="textarea")field=MGJS.$(a);else{alert("The comment box does not exist!");return false}if(field.value.indexOf(c)>
-1){alert("You've already appended this reply!");return false}field.value=field.value.replace(/\s|\t|\n/g,"")==""?c:field.value.replace(/[\n]*$/g,"")+"\n\n"+c;field.focus()}function d(c,a){if(MGJS.$(a)&&MGJS.$(a).type=="textarea")field=MGJS.$(a);else{alert("The comment box does not exist!");return false}if(document.selection){field.focus();sel=document.selection.createRange();sel.text=c;field.focus()}else if(field.selectionStart||field.selectionStart=="0"){a=field.selectionStart;var b=field.selectionEnd,
f=a;field.value=field.value.substring(0,a)+c+field.value.substring(b,field.value.length);f+=c.length;field.focus();field.selectionStart=f;field.selectionEnd=f}else{field.value+=c;field.focus()}}window.MGJS_CMT={};window.MGJS_CMT.reply=e;window.MGJS_CMT.quote=g})();
(function(){function e(d){return document.getElementById(d)}function g(d,c){e(d).style.display=c}function h(d,c,a,b,f,i){e(a).className=b;e(f).className=i;a=d.split(",");for(b=0;b<a.length;b++){d=a[b];e(d)&&g(d,"block")}a=c.split(",");for(b=0;b<a.length;b++){d=a[b];e(d)&&g(d,"none")}}window.MGJS={};window.MGJS.$=e;window.MGJS.setStyleDisplay=g;window.MGJS.switchTab=h})();