{if $PollAllreadySmall==1}
{if $Extern==1}<h2>{/if}
<strong>{$PollTitleSmall}</strong>
{if $Extern==1}</h2>{/if}
<br />
<br />


<script language="javascript" type="text/javascript">
<!--
$(document).ready(function() {ldelim}
	{foreach from=$PollResultsSmall item=pas name=js}
	$("#voter_{$pas->Id}{$Extern}").fadeIn("slow");
	 {/foreach}
{rdelim}); 
-->
</script>

{foreach from=$PollResultsSmall item=pas}
<strong>{$pas->Frage|koobispecialchars}</strong> {if $pas->Hits>0}({$pas->Perc}%){/if}<br />
<div id="voter_{$pas->Id}{$Extern}" style="display:none; margin-top:3px; margin-bottom:5px; height:15px;background:url('{domain}{$imgpath}/poll/{$pas->Farbe}.png') repeat-x; width:{$pas->Perc|numf}%"></div>
{/foreach}

{*
    <p align="center">{#Poll_alreadyVoted#}</p>
*}

{else}
<script language="javascript" src="{$jspath}/jform.js" type="text/javascript"></script>

<script language="javascript" type="text/javascript">
<!--
$(document).ready(function() {ldelim}
    var options = {ldelim} 
        target:    '#pollform{$Extern}',   
        //url:     '',       
        timeout:   3000 
    {rdelim}; 
 
 	 
	 
    $('#poll_form_1{$Extern}').submit(function() {ldelim} 
        $(this).ajaxSubmit(options); 
        return false; 
    {rdelim}); 
{rdelim}); 
-->
</script>


<form method="post" action="index.php?vote=1&amp;p=poll&amp;action=smallpoll{if $Extern==1}&amp;intern=1{/if}" name="poll_form{$Extern}" id="poll_form_1{$Extern}">
{if $Extern==1}<h2>{/if}
<strong>{$PollTitleSmall}</strong>
{if $Extern==1}</h2>{/if}
<br />
<br />
{foreach from=$PollAnswersSmall item=pas}
{if $PollRes->Multi==1}
<label><input type="checkbox" name="polloption[{$pas->Id}]" value="{$pas->Id}" />{$pas->Frage|koobispecialchars}</label>
<br />
{else}
<label><input type="radio" name="polloption" value="{$pas->Id}" />{$pas->Frage|koobispecialchars}</label>
<br />
{/if}
{/foreach}
{$out}
<br />
<p align="center">
{if $PollPermSmall==1}
<input type="submit" class="button" value="{#Poll_button#}" />
{else}
<small>{#Poll_noAccess#}</small>
{/if}
</p>

</form>
{/if}

{if $Extern!=1}
    {if $PollRes->Kommentare==1}
    <br />
    {#Arrow#}<a href="{$homelink}/index.php?p=poll&amp;area={$area}">{#Global_Comments#}</a>
    {/if}
{/if}
<br />
{#Arrow#}<a href="{$homelink}/index.php?p=poll&amp;action=archive&amp;area={$area}">{#Poll_Archive#}</a>
