/* Color Picker */
if($logged_admin==1 or $isMod==1){

if(($action=='' and isset($separateTopic) and $separateTopic==1) or $action=='vthread' or $action=='vtopic' or $action=='editmsg' or ($action=='pmail' and isset($_GET['step']) and ($_GET['step']=='massmail' or $_GET['step']=='sendmsg' or $_GET['step']=='viewmsg_inbox')) or ($action=='premodpanel' and isset($_GET['stepmod']) and ($_GET['stepmod']=='editmsg' or $_GET['stepmod']=='edittpc') ) ) include ($pathToFiles.'addon_bbcolor.php');

if($action=='vthread' or $action=='vtopic' or $action=='editmsg' or ($action=='pmail' and isset($_GET['step']) and ($_GET['step']=='massmail' or $_GET['step']=='sendmsg' or $_GET['step']=='viewmsg_inbox')) or ($action=='' and isset($firstPageTopicForm) and $firstPageTopicForm==1)){
$button_color_picker=<<<out
<a href="javascript:doPicker()" onmouseover="window.status='{$l_bb_color}'; return true" onmouseout="window.status=''; return true" onmousemove="pasteSel()" rel="nofollow"><img src="{$main_url}/img/button_color.svg" class="btnSvg" alt="{$l_bb_color}" title="{$l_bb_color}"></a>&nbsp;&nbsp;
out;

$color_picker_block=<<<out
<!--BBJSBUTTONS-->
<div id="colorpick" style="display:none;">
{$colorPicker}
</div>
<!--/BBJSBUTTONS-->
out;

$color_picker_js=<<<out
<script type="text/javascript">
<!--
var pickerShow;
pickerShow=false;
function doPicker(){
if(!pickerShow) { disp='block'; pickerShow=true; } else { disp='none'; pickerShow=false; }
document.getElementById('colorpick').style.display=disp;
}
//-->
</script> 
out;
}

}
/* --Color Picker */