/* Spoiler */
if($action=='vthread' or $action=='pmail' or (isset($_POST['prevForm']) and $_POST['prevForm']==1) ){
$spoilerBlock=<<<out
<style>
.spoiler{background-color:#777777;color:#777777;border-left:3px solid #326027;font-size:16px;margin-left:2px;padding:3px;width:95%;} .spoilerWarning{font-weight:bold;border-top:0px;color:#FFE25B;margin-left:0px;width:100%;}
</style>
out;
}

if(isset($_POST['prevForm']) and $_POST['prevForm']==1){
$spoilerBlock.='<script src="'.$main_url.'/templates/form.js"></script>';
}

if($action=='vthread' or $action=='vtopic' or $action=='editmsg' or $action=='pmail' or ($action=='' and isset($firstPageTopicForm) and $firstPageTopicForm==1)){
$button_spoiler='<a href="javascript:paste_strinL(selektion,3,\'[spoiler]%5Cr%5Cn\',\'%5Cr%5Cn[/spoiler]\',\'\')" onmouseover="window.status=\''.$l_bb_spoiler.'\'; return true" onmouseout="window.status=\'\'; return true" onmousemove="pasteSel()" rel="nofollow"><img src="'.$main_url.'/img/button_spoiler.svg" class="btnSvg" alt="'.$l_bb_spoiler.'" title="'.$l_bb_spoiler.'"></a>&nbsp;&nbsp;';
}
/* --Spoiler */