<vb:if condition="$show['guest']">JS Code</vb:if>
<vb:if condition="$vbulletin->userinfo['userid'] == '0'">JS Code</vb:if>