if(document.getElementById&&document.createElement){var tmp=document.createElement("script");tmp.src="scripts/tiny_mce/tiny_mce_gzip.js";tmp.type="text/javascript";var head=document.getElementsByTagName("head")[0];head.appendChild(tmp);var tmp=document.createElement("script");tmp.src="scripts/tiny_mce/tiny_mce_gzip_init.js";tmp.type="text/javascript";var head=document.getElementsByTagName("head")[0];head.appendChild(tmp);var tiny_mce_lang="en";function initTextareas(){var _1=false;if(document.getElementById&&document.createElement){var _2=document.getElementsByTagName("textarea");for(var i=0;i<_2.length;i++){if(_2[i].id!=""&&/tiny_mce/i.test(_2[i].className)){_1=true;var _4=document.createElement("a");_4.setAttribute("href","#");_4.setAttribute("class","wysiwyg");_4.setAttribute("ta_id",_2[i].id);_4.onclick=function(){addTinyMCE(this);return false;};_4.setAttribute("title","WYSIWYG editor");var _5=document.createElement("img");_5.setAttribute("src","images/tinymce.jpg");_5.setAttribute("alt","WYSIWYG editor");_4.appendChild(_5);pos=document.getElementById(_2[i].id).nextSibling;while(pos.nodeType==3){pos=pos.nextSibling;}_2[i].parentNode.insertBefore(_4,pos);}}}}window.initTextareaHandler=initTextareas;addEvent(window,"load","initTextareaHandler");function addTinyMCE(_6){if(tinyMCE.removeMCEControl&&editors[_6.getAttribute("ta_id")]){tinyMCE.removeMCEControl(editors[_6.getAttribute("ta_id")]);editors[_6.getAttribute("ta_id")]="";}else{if(tinyMCE.addMCEControl){tinyMCE.addMCEControl(document.getElementById(_6.getAttribute("ta_id")),_6.getAttribute("ta_id"));}}}var editors=new Array();function setupContentCallback(_7,_8){if(tinyMCE!=null&&tinyMCE.isMSIE==true){var ta=document.getElementById(_7).parentNode.parentNode.parentNode.parentNode.parentNode.nextSibling;}else{var ta=document.getElementById(_7).parentNode.parentNode.parentNode.parentNode.parentNode.previousSibling;}if(ta.tagName.toLowerCase()=="textarea"){editors[ta.id]=_7;}return true;}function saveCallback(id,_c,_d){_c=_c.replace(/<br \/>\s*$/g,"");return _c;}}