var score = 0;

function result(s,r) {
score = score + s;
return question(r);
}

function question(num) {
if (num == 'one') {
document.getElementById('question').innerHTML = 'Do you consider yourself?<ol><li><a onclick="result(1,\'two\')">slimmer than a stick</a></li><li><a onclick="result(2,\'two\')">slightly underweight</a></li><li><a onclick="result(3,\'two\')">average</a></li><li><a onclick="result(3,\'two\')">a little overweight</a></li><li><a onclick="result(4,\'two\')">obese</a></li></ol>';
 }
if (num == 'two') {
document.getElementById('question').innerHTML = 'Is your life...<ol><li><a onclick="result(2,\'three\')">Eventful</a></li><li><a onclick="result(2,\'three\')">Never know what I\'ll get</a></li><li><a onclick="result(3,\'three\')">Same \'ol, same \'ol</a></li><li><a onclick="result(3,\'three\')">Boring</a></li></ol>';
 }
if (num == 'three') {
document.getElementById('question').innerHTML = 'How old are you?<ol><li><a onclick="result(1,\'four\')">0-17</a></li><li><a onclick="result(2,\'four\')">18-25</a></li><li><a onclick="result(3,\'four\')">26-45</a></li><li><a onclick="result(4,\'four\')">46+</a></li></ol>';
 }
if (num == 'four') {
document.getElementById('question').innerHTML = 'Are you more of a...<ol><li><a onclick="result(3,\'five\')">Internet lover</a></li><li><a onclick="result(1,\'five\')">Gamer</a></li><li><a onclick="result(4,\'five\')">Television watcher</a></li><li><a onclick="result(2,\'five\')">Outdoorsman</a></li></ol>';
 }
if (num == 'five') {
document.getElementById('question').innerHTML = 'I listen to mainly...<ol><li><a onclick="result(2,\'six\')">Rock</a></li><li><a onclick="result(1,\'six\')">Rap</a></li><li><a onclick="result(1,\'six\')">Country</a></li><li><a onclick="result(4,\'six\')">Pop</a></li><li><a onclick="result(2,\'six\')">Whatever is popular</a></li></ol>';
 }
if (num == 'six') {
var say;
switch (score) {
case 6:
case 7:
case 8:
 say = 'Nano';
break;
case 9:
case 10:
case 11:
case 12:
 say = 'Shuffle';
break;
case 13:
case 14:
case 15:
 say = 'Classic';
break;
case 16:
case 17:
case 18:
case 19:
 say = 'Touch';
break;
}
document.getElementById('question').innerHTML = '<p class="color">You are the iPod ' + say + '</p><p><small>If you would like to share your iPodness, copy and paste the HTML code to display it on your blog, profile or website.</small></p></div><a href="http://chickencamels.poemofquotes.com/cc/ipod-test.php" style="color:#aaa;" title="What iPod are you?"><div style="border: #666 2px solid; height: 150px; width: 150px; text-align: center; background: url(/badges/ipodbg.png); font-size: 20px;"><p style="padding: 10px;">I am an</p><img src="/badges/' + say + '.png" /><br /><p style="padding: 10px;">iPod ' + say + '</p></div></a><div style="margin-top: -150px; margin-left: 200px; font-size: 0.9em;"><strong>Badge HTML Code:</strong><br /><textarea rows=6 cols=40><a href="http://chickencamels.poemofquotes.com/cc/ipod-test.php" style="color:#000;display:block;" title="What iPod are you?"><div style="border: #666 2px solid; height: 150px; width: 150px; text-align: center; background: url(http://chickencamels.poemofquotes.com/badges/ipodbg.png); font-size: 16px;font-family:arial,sans-serif;"><p style="padding:5px 0 0; margin:0">I am an</p><br /><img src="http://chickencamels.poemofquotes.com/badges/' + say + '.png" style="border:0" /><br />iPod ' + say + '</div></a><p><small><a href="http://chickencamels.poemofquotes.com">SEO news</a> from ChickenCamels</small></p></textarea>';
 }
}