var CopyrightNotice='Color-picker for forumotion text editors. Copyright © 2005-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(){if(document.getElementById('color')){var colors=new Array('00','33','66','99','CC','FF');var x='<div id="colorpicker"><table cellspacing="0" id="grid">';var y=x;for(i=5;i>=0;i--){x=x+'<tr>';y=y+'<tr>';for(j=5;j>=0;j--){for(k=5;k>=0;k--){var col=colors[j]+colors[i]+colors[k];x=x+'<td style="background: #'+col+';"><button style="background:#'+col+';" title="#'+col+'" onmouseover="this.className=\'selectHover\';" onmouseout="this.className=\'\';" onclick="bbfontstyle(\'[color=#'+col+']\', \'[/color]\');selectWysiwyg(this, \'color\');return false;"></button></td>';y=y+'<td style="background: #'+col+';"><button style="background:#'+col+';" id="text_editor_cmd_constructBBcode_select_color_#'+col+'"></button></td>'}}x=x+'</tr>';y=y+'</tr>'}document.getElementById('color').innerHTML=x+'</table></div>';document.getElementById('wcolor').innerHTML=y+'</table></div>'}});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 All] </a>')});var CopyrightNotice='Post profile toggle for forumotion phpBB3 boards. 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.';var prloc='left';function setprofile(loc){prloc=loc;if(loc=='left'){$('.postprofile').css({'float':'left','border-left':'none','border-right':'1px solid #c8c8c8'});$('.postbody').css('float','right')}else{$('.postprofile').css({'float':'right','border-left':'1px solid #c8c8c8','border-right':'none'});$('.postbody').css('float','left')}}function toggleprofile(){var x=prloc;if(x=='left'){x='right'}else{x='left'}setprofile(x)}$(function(){if($('.addthis_button')[0]){$('.addthis_button').eq(0).before('<button class="button2" title="Toggle post profile location" onclick="toggleprofile();"><img style="padding:0px 2px;" src="http://i52.tinypic.com/2jc96ol.gif" /></button> • ');setprofile(prloc)}});var CopyrightNotice='Professional like/dislike bar for forumotion phpBB3 boards. 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(){$('#main-content').prepend('<style type="text/css">ul.profile-icons li.ddvote{height:20px;line-height:20px;background:#ffffff;border:1px solid #a0b0c0;font-size:12px;font-weight:bold}ul.profile-icons li.ddvote a{display:inline}.postbody ul.profile-icons li.ddvote img{cursor:default;vertical-align:middle}.postbody ul.profile-icons li.ddvote a img{cursor:pointer}</style>');var x=$('.vote').get();for(i=x.length-1;i>=0;i--){var plus='0';var minus='0';var vplus='<img style="position:relative;top:-3px;margin-right:3px" title="Like" src="http://i53.tinypic.com/n33k7s.png" />';var vminus='<img style="margin:0px 3px 0px 10px" title="Dislike" src="URL for your -/Dislike image goes here" />';var y=$(x[i]).find('.vote-button a').get();for(j=0;j<y.length;j++){if(y[j].innerHTML=='+'){vplus='<a href="'+y[j].href+'">'+vplus+'</a>'}else if(y[j].innerHTML=='-'){vminus='<a href="'+y[j].href+'">'+vminus+'</a>'}}var y=$(x[i]).find('.vote-bar')[0];if(y){var z=y.title.split(' ');var pct=parseInt(z[3].replace(/%/,''))/100;var num=parseInt(z[4].replace(/\(/,''));plus=String(Math.round(num*pct));minus=String(num-plus)}if(x[i].parentNode.parentNode.parentNode.className=='module row1'){$(x[i].parentNode).find('.profile-icons').prepend('<li class="ddvote"> '+vplus+plus+vminus+minus+' <li>');$(x[i].parentNode).find('.h3').css('border','none')}else{$(x[i].parentNode.childNodes[0]).append('<li class="ddvote"> '+vplus+plus+' <li>')}x[i].parentNode.removeChild(x[i])}});$(function(){$('.postprofile dl dd:nth-child(4)').hide().before('<a href="#" class="toggle" style="padding:0 10px;">Click to view full profile</a>');$('a.toggle').click(function(){$(this).next('dd').slideToggle();return false})});
