`if ($vbulletin->options['guest_warn_active']){
if (in_array(THIS_SCRIPT, array('register')))
{}
else
{
if (is_member_of($vbulletin->userinfo, 1)){
if ($vbulletin->options['guest_warn_cloasable_active']){if ($vbulletin->options['guest_warn_cookie_off']){
$template_hook['headinclude_javascript'] .= '<script>function closeBox(toClose) {document.getElementById(toClose).style.display = "none";}</script>
<style>div.guestwarn {background:' . $vbulletin->options['guest_warn_color'] . ';color:' . $vbulletin->options['guest_warn_text_color'] . ';max-width:280px;min-height:18px;padding:0 5px 3px;position:fixed;right: ' . $vbulletin->options['guest_var_width'] . '%;
top: ' . $vbulletin->options['guest_var_height'] . '%;padding: 10px 15px;position: fixed;z-index: 10;font-size:12px;-moz-border-radius: 8px; -webkit-border-radius: 8px; filter:alpha(opacity=' . $vbulletin->options['guest_var_opacity'] . ');
-moz-opacity:.' . $vbulletin->options['guest_var_opacity'] . '; opacity:.' . $vbulletin->options['guest_var_opacity'] . '; -moz-box-shadow:5px 5px 5px #191919; -webkit-box-shadow:5px 5px 5px #191919; box-shadow:5px 5px 5px #191919;}
.close {float: right;background: transparent url(' . $vbulletin->options['guest_warn_image'] . ');width: 22px;height: 22px;}</style>
<div id="message-1" class="msgbox" style="display: block;"><div class="guestwarn">
<a href="#" class="close" onclick="closeBox(\'message-1\'); return false;" title="' .$vbphrase['close_warn']. '"></a>' . $vbulletin->options['guest_var_text'] . '</div></div>';}
else {$template_hook['headinclude_javascript'] .= '<script>function closeBox(toClose) {document.getElementById(toClose).style.display = "none";setCookie(toClose, "closed", ' . $vbulletin->options['guest_warn_days'] . ');}
function setCookie(cName, value, expiredays) {var expDate = new Date();expDate.setDate(expDate.getDate()+expiredays);document.cookie=cName + "=" + escape(value) + ";expires=" + expDate.toGMTString();}
function loadMsg(msgClass) {msg = document.getElementsByTagName("div");for (i=0; i<msg.length; i++){if(msg.className == msgClass) {if(document.cookie.indexOf(msg.id) == -1) {msg.style.display = "block";}}}}
window.onload=function(){loadMsg(\'msgbox\'); }</script>
<style>div.guestwarn {background:' . $vbulletin->options['guest_warn_color'] . ';color:' . $vbulletin->options['guest_warn_text_color'] . ';max-width:280px;min-height:18px;padding:0 5px 3px;position:fixed;right: ' . $vbulletin->options['guest_var_width'] . '%;
top: ' . $vbulletin->options['guest_var_height'] . '%;padding: 10px 15px;position: fixed;z-index: 10;font-size:12px;-moz-border-radius: 8px; -webkit-border-radius: 8px; filter:alpha(opacity=' . $vbulletin->options['guest_var_opacity'] . ');
-moz-opacity:.' . $vbulletin->options['guest_var_opacity'] . '; opacity:.' . $vbulletin->options['guest_var_opacity'] . '; -moz-box-shadow:5px 5px 5px #191919; -webkit-box-shadow:5px 5px 5px #191919; box-shadow:5px 5px 5px #191919;}
.close {float: right;background: transparent url(' . $vbulletin->options['guest_warn_image'] . ');width: 22px;height: 22px;}</style>
<div id="message-1" class="msgbox" style="display: none;"><div class="guestwarn"><a href="#" class="close" onclick="closeBox(\'message-1\'); return false;" title="' .$vbphrase['']. '"></a>
' . $vbulletin->options['guest_var_text'] . '</div></div>';}}else {$template_hook['headinclude_javascript'] .= '
<style>div.guestwarn {background:' . $vbulletin->options['guest_warn_color'] . ';color:' . $vbulletin->options['guest_warn_text_color'] . ';max-width:280px;min-height:18px;padding:0 5px 3px;position:fixed;right: ' . $vbulletin->options['guest_var_width'] . '%;
top: ' . $vbulletin->options['guest_var_height'] . '%;padding: 10px 15px;position: fixed;z-index: 10;font-size:12px;-moz-border-radius: 8px; -webkit-border-radius: 8px; filter:alpha(opacity=' . $vbulletin->options['guest_var_opacity'] . ');
-moz-opacity:.' . $vbulletin->options['guest_var_opacity'] . '; opacity:.' . $vbulletin->options['guest_var_opacity'] . '; -moz-box-shadow:5px 5px 5px #191919; -webkit-box-shadow:5px 5px 5px #191919; box-shadow:5px 5px 5px #191919;}
</style><div class="guestwarn">' . $vbulletin->options['guest_var_text'] . '</div>';}}}}