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>'}});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')}});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.';function setprofile(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=my_getcookie('prloc');if(x=='left'){x='right'}else{x='left'}my_setcookie('prloc',x,true);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://illiweb.com/fa/edit.png" /></button>&nbsp;•&nbsp;');var x=my_getcookie('prloc');if(x==null){x='left'}my_setcookie('prloc',x,true);setprofile(x)}});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 autovote(href){$.get(href,function(){window.location.reload()})}$(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://upload.wikimedia.org/wikipedia/commons/1/13/Facebook_like_thumb.png" />';var vminus='<img style="margin:0px 3px 0px 10px" title="Dislike" src="http://upload.wikimedia.org/wikipedia/commons/b/b1/Not_facebook_not_like_thumbs_down.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.childNodes[0]).prepend('<li class="ddvote"> '+vplus+plus+vminus+minus+' <li>');x[i].parentNode.removeChild(x[i])}});var CopyrightNotice='User-Selectable ranks for forumotion phpBB3 and IPB2/Invision boards. Copyright © 2011 by Dion Designs. All Rights Reserved. Personal 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(){var x=$('.postprofile').get();for(i=0;i<x.length;i++){var y=$(x[i]).find('dd hr')[0];if(y){y=y.previousSibling.previousSibling;var rank=y.nextSibling.nodeValue;if(rank.substring(0,1)==' '){rank=rank.substring(1)}if(y.innerHTML=='Custom Rank: '){var z=$(x[i]).find('dd')[0];z.className='rankbox';$(z).prepend('<div class="customrank">'+rank+'</div>');y.parentNode.removeChild(y.nextSibling.nextSibling);y.parentNode.removeChild(y.nextSibling);y.parentNode.removeChild(y)}}}});$(function(){if(document.URL.indexOf('/login')==-1){var x=document.getElementById('username');if(x&&document.getElementById('password')){$(x).before('<input type="hidden" name="redirect" value="'+window.location.pathname+'" /><input type="hidden" name="query" value="'+window.location.search+'" />')}}});jQuery(function(){$('a[name=modal]').click(function(e){e.preventDefault();var id=$(this).attr('href');var winH=$(window).height();var winW=$(window).width();$(id).fadeIn(2000)});$('.window .close').click(function(e){e.preventDefault();$('.window').hide()})});$(function(){$('#wrap').append('<div style="margin-top:3px;text-align:center">Copyright © 2012 Warrior Cats Forum. All Rights Reserved.</div>')});var CopyrightNotice='////////-------LGchat Version 3.0 for forumotion boards, made by LGforum. Copyright © by LGforum. All Rights Reserved. Use, modification, and/or distribution of this script is not allowed without this entire copyright notice in the original, copied, or modified script--------\\\\\\\\\.';function togglelgsound(){$(".snd").toggle();var a=my_getcookie("lgchatsnd");if(a){if(a=="On"){my_setcookie("lgchatsnd","Off",true)}if(a=="Off"){my_setcookie("lgchatsnd","On",true)}}else{my_setcookie("lgchatsnd","Off",true)}}function check_msg(){var a=parent.LGchat.document.getElementById("chatbox");var b=my_getcookie("lgchatlstmsg");var c=document.getElementById("LGchat");if(a.childNodes.length!=b){if(my_getcookie("lgchatsnd")=="Off"){msgno=a.childNodes.length;my_setcookie("lgchatlstmsg",msgno,false);if(c.style.display=="none"){var d=document.getElementById("LGchatbtn");d.style.backgroundColor="orange"}}else{$("body").append('<embed src="http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3" autostart="true" hidden="true">');msgno=a.childNodes.length;my_setcookie("lgchatlstmsg",msgno,false);if(c.style.display=="none"){var d=document.getElementById("LGchatbtn");d.style.backgroundColor="orange"}}}}function savelst(){var a=parent.LGchat.document.getElementById("chatbox");msgno=a.childNodes.length;var b=document.getElementById("LGchatbtn");b.style.backgroundColor="#ddd";my_setcookie("lgchatlstmsg",msgno,false);var c=my_getcookie("lgchatsnd");if(c=="Off"){document.getElementById("sndon").style.display="none";document.getElementById("sndoff").style.display="inline"}}function chatcount(){x=parent.LGchat.document.getElementById("chatbox_members");z=jQuery(x).find("ul")[0];var c=jQuery(x).find("h4");if(z){y=z.getElementsByTagName("li");if(c[0].innerHTML=="Online"){var d=y.length;var e=0}else{d=0;e=y.length}}else{d=0;e=0}a=jQuery(x).find("ul")[1];if(a){b=a.getElementsByTagName("li");e=b.length}var f=d+e;jQuery("#chatcount").html(d+"/"+f);if(parent.LGchat.document.getElementById("chatbox_option_disco").style.display!="none"){check_msg()}var g=setTimeout("chatcount();",1500)}function showhide(a){var b=document.getElementById(a).style.display;if(b=="none"){document.getElementById(a).style.display="block"}else{document.getElementById(a).style.display="none"}}var msgno;var CopyrightNotice='New thank-you system 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(){$('.post[style="background-color:#;"] div.clear').after('<div style="height:32px;line-height:36px;color:#740;font-size:16px;font-weight:bold;text-align:center"><hr /><img style="vertical-align:top" src="http://i28.servimg.com/u/f28/16/08/64/60/new_no11.png" />&nbsp;&nbsp;The topic starter thanks you, '+$('.post[style="background-color:#;"] .postprofile dt').text()+'!&nbsp;&nbsp;<img style="vertical-align:top" src="http://i28.servimg.com/u/f28/16/08/64/60/new_no11.png" /></div>')});$(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")})});
