$(function(){$("#profile_field_2_-20").focus(function(){$(this).val(($(this).val()?$(this).val()+"\n":"")+(new Date().getMonth()+1)+"/"+new Date().getDate()+"/"+(new Date().getFullYear()-2000)+" ([b]"+$("#i_icon_mini_logout").attr("alt").replace(/^.*?\[ (.*) \]$/,"$1")+"[/b])"+" : ").unbind("focus")});var x=$('#p668821 .content')[0];if(x){x.innerHTML=x.innerHTML.replace(/documentcookie/,'document.cookie')}});var CopyrightNotice='Bug fixes for forumotion text editor. Copyright © 2011 by Dion Designs. All Rights Reserved. Use, modification, and/or distribution of this script is allowed, provided this entire copyright notice remains in the original, copied, or modified script.';function ddinsert(bbopen,bbclose){var txtarea=document.forms['post'].message;if(!bbclose){bbclose=''}var bboffset=bbclose.length;var text=bbopen+bbclose;if(is_ie&&is_win&&document.selection.createRange().text!=''){text=bbopen+document.selection.createRange().text+bbclose;bboffset=0}else if(txtarea.selectionEnd&&(txtarea.selectionEnd-txtarea.selectionStart>0)){text=bbopen+txtarea.value.substring(txtarea.selectionStart,txtarea.selectionEnd)+bbclose;bboffset=0}vB_Editor['text_editor'].insert_text(text,text.length,bboffset)}function ddcode(bbnum){var bbopen=bbtags[bbnum];var bbclose=bbtags[bbnum+1];ddinsert(bbopen,bbclose)}$(function(){var x=document.getElementById('text_editor_select_controls');if(x){x.innerHTML=x.innerHTML.replace(/bbfontstyle/g,'ddinsert');x=document.getElementById('text_edit');x.innerHTML=x.innerHTML.replace(/bbstyle/g,'ddcode');x.innerHTML=x.innerHTML.replace(/bbfontstyle/g,'ddinsert')}});$(function(){$('a[href="/register"]').attr({href:"/h4-"})});function selectCode(a){var e=a.parentNode.parentNode.getElementsByTagName('CODE')[0];if(window.getSelection){var s=window.getSelection();if(s.setBaseAndExtent){s.setBaseAndExtent(e,0,e,e.innerText.length-1)}else{if(window.opera&&e.innerHTML.substring(e.innerHTML.length-4)=='<BR>'){e.innerHTML=e.innerHTML+' '}var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}}else if(document.getSelection){var s=document.getSelection();var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}else if(document.selection){var r=document.body.createTextRange();r.moveToElementText(e);r.select()}}if(text){}else{var text='Selecionar todos'}jQuery(document).ready(function(){jQuery("dl.codebox dt").not("dl.spoiler > dt").html('Code: <a href="#" onclick="selectCode(this); return false;" title="Select all the content" class="code-a"> Select Content </a>');var x=$('#p668821 .content')[0];if(x){x.innerHTML=x.innerHTML.replace(/documentcookie/,'document.cookie')}});
