var _vote_havevoted = false;
var _vote_cookies = document.cookie.split('; ');
for (var i=0; i<_vote_cookies.length; i++) {
   var _vote_c = _vote_cookies[i];
   var _vote_cc = _vote_c.split('=');
   if (_vote_cc[0] == 'havevoted') {
       var _vote_cids = unescape(_vote_cc[1]).split(',');
       for (var ci=0; ci<_vote_cids.length; ci++) {
           if (_vote_cids[ci] == '5851') {
               _vote_havevoted = true;
           }
       }
   }
}
if (_vote_havevoted) {
    document.write('<div class=\'tv2vote\'><table border=0 cellpadding=2 cellspacing=0 width=\'100%\'>\n<tr><td class=\'tv2votehead\' colspan=2><font color=black class=\'tv2voteheadtext\'>Hvad fodrer du din hund med?</font></td></tr>\n<tr><td valign=top class=\'tv2voteshow\'><font color=black class=\'tv2voteshowtext\'>Tørfoder</font><br><table border=0 cellpadding=0 cellspacing=0 width=75%><tr><td class=\'tv2voteresultbar\' title=\'1214\'>&nbsp;</td></tr></table></td><td align=right class=\'tv2voteshow\'><font color=black class=\'tv2voteshowtext\'>68&nbsp;%</font></td></tr>\n<tr><td valign=top class=\'tv2voteshow\'><font color=black class=\'tv2voteshowtext\'>Barf (rå mad)</font><br><table border=0 cellpadding=0 cellspacing=0 width=26%><tr><td class=\'tv2voteresultbar\' title=\'431\'>&nbsp;</td></tr></table></td><td align=right class=\'tv2voteshow\'><font color=black class=\'tv2voteshowtext\'>24&nbsp;%</font></td></tr>\n<tr><td valign=top class=\'tv2voteshow\'><font color=black class=\'tv2voteshowtext\'>Madrester</font><br><table border=0 cellpadding=0 cellspacing=0 width=8%><tr><td class=\'tv2voteresultbar\' title=\'135\'>&nbsp;</td></tr></table></td><td align=right class=\'tv2voteshow\'><font color=black class=\'tv2voteshowtext\'>8&nbsp;%</font></td></tr>\n<tr><td valign=top class=\'tv2votefoot\' colspan=2><font color=black class=\'tv2voteshowtext\'>Stemmer ialt: 1780</font></td></tr>\n</table></div>');
} else {
    document.write('<div class=\'tv2vote\'><form name=\'tv2vote\' method=\'post\' action=\'http://diverse.tv2.dk/vote/registervote.php\'>\n<table border=0 cellpadding=2 cellspacing=0 width=\'100%\'>\n<input type=\'hidden\' name=\'votingid\' value=\'5851\'>\n<tr><td class=\'tv2votehead\' colspan=\'2\'><font color=black class=\'tv2voteheadtext\'>Hvad fodrer du din hund med?</font></td></tr>\n<tr><td valign=\'top\' align=\'left\' width=\'1\' class=\'tv2voteshowoptions\'><input type=\'radio\' name=\'optionid\' value=\'22620\' id=\'voteoption22620\' class=\'tv2voteoption\'></td><td align=\'left\' width=\'99%\' class=\'tv2voteshow\'><font color=black class=\'tv2voteshowtext\'> <label for=\'voteoption22620\'>T&oslash;rfoder</label></font></td></tr>\n<tr><td valign=\'top\' align=\'left\' width=\'1\' class=\'tv2voteshowoptions\'><input type=\'radio\' name=\'optionid\' value=\'22621\' id=\'voteoption22621\' class=\'tv2voteoption\'></td><td align=\'left\' width=\'99%\' class=\'tv2voteshow\'><font color=black class=\'tv2voteshowtext\'> <label for=\'voteoption22621\'>Barf (r&aring; mad)</label></font></td></tr>\n<tr><td valign=\'top\' align=\'left\' width=\'1\' class=\'tv2voteshowoptions\'><input type=\'radio\' name=\'optionid\' value=\'22622\' id=\'voteoption22622\' class=\'tv2voteoption\'></td><td align=\'left\' width=\'99%\' class=\'tv2voteshow\'><font color=black class=\'tv2voteshowtext\'> <label for=\'voteoption22622\'>Madrester</label></font></td></tr>\n<tr><td class=\'tv2votefoot\' colspan=\'2\'><input type=\'submit\' value=\'stem\' class=\'tv2votesubmitbutton\'></td></tr></table>\n');document.write('<input type="hidden" name="returnURL" value="' + window.location.href + '" />');document.write('</form></div>');
}


