var CopyrightNotice='Professional like/dislike bar for forumotion phpBB3 boards. Copyright © 2011 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';function autovote(href){$.get(href,function(){window.location.reload()})}$(function(){$('#main-content').prepend('<style type="text/css">ul.post-info li.ddvote{height:20px;line-height:20px;background:#fff;color:#000;border:1px solid #a0b0c0;font-size:12px;font-weight:bold;}</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://i.imm.io/d7v9.png" />';var vminus='<img style="margin:0px 3px 0px 10px" title="Dislike" src="http://i.imm.io/d7vy.png" />';var y=$(x[i]).find('.vote-button a').get();for(j=0;j<y.length;j++){if(y[j].innerHTML=='+'){vplus='<a style="cursor:pointer" onclick="autovote(\''+y[j].href+'\')">'+vplus+'</a>'}else if(y[j].innerHTML=='-'){vminus='<a style="cursor:pointer" onclick="autovote(\''+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)}$(x[i].parentNode.previousSibling.childNodes[0]).prepend('<li class="ddvote">&nbsp;'+vplus+plus+vminus+minus+'&nbsp;<li>');x[i].parentNode.removeChild(x[i])}});var CopyrightNotice='Reformatted Recent Topics widget script for forumotion phpBB3 and Invision boards. Copyright © 2011 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';function rtnew(){var y=document.createElement('div');y.id='rtopic';var x=$('#right .module')[0];var au=$(x).find('a:odd').get();var to=$(x).find('a:even').get();for(i=au.length-1;i>=0;i--){var z=document.createElement('tr');var time=au[i].nextSibling.nodeValue;z.appendChild(au[i]);z.insertBefore(to[i],au[i]);$(au[i]).before('<td>'+time+'</td>');$(au[i]).wrap('<td></td>');$(to[i]).wrap('<td></td>');y.insertBefore(z,y.firstChild)}y.innerHTML='<div id="rtitle"><b>Latest Posts</b></div><table id="rtable" cellspacing="0"><tr><th class="ddto"><b>Topic</b></th><th class="ddti"><b>Time Posted</b></th><th class="ddau"><b>Poster</b></th></tr>'+y.innerHTML+'</table>';$('#content-container').before(y)}$(function(){rtnew();$('#right .module').eq(0).remove()});
