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(){$('#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://i47.servimg.com/u/f47/12/07/29/48/acis11.png" />';var vminus='<img style="margin:0px 3px 0px 10px" title="Dislike" src="http://i47.servimg.com/u/f47/12/07/29/48/ioacis10.png" />';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">&nbsp;'+vplus+plus+vminus+minus+'&nbsp;<li>');$(x[i].parentNode).find('.h3').css('border','none')}else{$(x[i].parentNode.childNodes[0]).prepend('<li class="ddvote">&nbsp;'+vplus+plus+vminus+minus+'&nbsp;<li>')}x[i].parentNode.removeChild(x[i])}});$(document).ready(function(){document.getElementById('text_editor_textarea').placeholder="ضع ردك هنا"});$(document).ready(function(){$('a[href="/u1"]:contains("khrbjate"), .h3:contains("khrbjate"), div#cp-main span:contains("khrbjate")').css({"padding-left":"19px","background":"url('http://i881.photobucket.com/albums/ac20/bzioomqa/icon_crown.gif') no-repeat left"})});document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://1990.host22.com/blue.css">');var scheme=getCookie('template1');if(scheme=='Defaul'){document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://1990.host22.com/Gray.css">')}else if(scheme=='Black'){document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://1990.host22.com/blue.css">')}else if(scheme=='Purple'){document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://1990.host22.com/pink.css">')}else if(scheme=='Violet'){document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://1990.host22.com/Violet.css">')}else if(scheme=='green'){document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://1990.host22.com/green.css">')}else if(scheme=='Yellow'){document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://1990.host22.com/red.css">')}else if(scheme=='ashor'){document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://1990.host22.com/ashorr.css">')}function changeskin(change){var scheme=change;var name='template1';var pathname=location.pathname;var myDomain=pathname.substring(0,pathname.lastIndexOf('/'))+'/';var ExpDate=new Date();ExpDate.setTime(ExpDate.getTime()+(180*24*3600*1000));setCookie(name,scheme,ExpDate,myDomain)}function getCookie(name){var cname=name+"=";var dc=document.cookie;if(dc.length>0){begin=dc.indexOf(cname);if(begin!=-1){begin+=cname.length;end=dc.indexOf(";",begin);if(end==-1)end=dc.length;return unescape(dc.substring(begin,end))}}return null}function setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+((expires==null)?"":"; expires="+expires.toGMTString())+((path==null)?"":"; path="+path)+((domain==null)?"":"; domain="+domain)+((secure==null)?"":"; secure")}var CopyrightNotice='Post profile toggle 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.';var prloc='right';function setprofile(loc){prloc=loc;if(loc=='left'){$('.postprofile').css({'float':'left','border-left':'1px','border-right':'1px solid #c8c8c8'});$('.postbody').css('float','right')}else{$('.postprofile').css({'float':'right','border-left':'1px solid #c8c8c8','border-right':'1px'});$('.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="غير موقع البروفايل" onclick="toggleprofile();"><img style="padding:0px 2px;" src="http://illiweb.com/fa/edit.png" /></button> • ');setprofile(prloc)}});
