<html>
<head>
<title>Animal Categorization ... thanks to http://groups.engin.umd.umich.edu/CIS/course.des/cis579/animal.txt</title>
<link href='//www.rjmprogramming.com.au/PHP/emboss_h1.css' rel='stylesheet' type='text/css'>

<script type="text/javascript">
// Thanks to Andrew Hedges!
//var ua = navigator.userAgent;
//var isiPad = /iPad/i.test(ua) || /iPhone OS 3_1_2/i.test(ua) || /iPhone OS 3_2_2/i.test(ua);

var type_animal = "";
var superphylum = "";
var phylum = "";
var aclass = "";
var order = "";
var family = "";
var genus = "";
var species = "";
var subspecies = "";


var backbone = ""; // ourconfirm(stuff_outside_caret(document.getElementById('backbone').innerHTML));
var warm_blooded = ""; // ourconfirm(stuff_outside_caret(document.getElementById('warm_blooded').innerHTML));
var has_breasts = ""; // ourconfirm(stuff_outside_caret(document.getElementById('has_breasts').innerHTML));
var can_eat_meat = ""; // ourconfirm(stuff_outside_caret(document.getElementById('can_eat_meat').innerHTML));
var finger_wings = ""; // ourconfirm(stuff_outside_caret(document.getElementById('finger_wings').innerHTML));
var opposing_thumb = ""; // ourconfirm(stuff_outside_caret(document.getElementById('opposing_thumb').innerHTML));
var prehensile_tail = ""; // ourconfirm(stuff_outside_caret(document.getElementById('prehensile_tail').innerHTML));
var nearly_hairless = ""; // ourconfirm(stuff_outside_caret(document.getElementById('nearly_hairless').innerHTML));
var long_powerful_arms = ""; // ourconfirm(stuff_outside_caret(document.getElementById('long_powerful_arms').innerHTML));
var over_400 = ""; // ourconfirm(stuff_outside_caret(document.getElementById('over_400').innerHTML));
var land_based = ""; // ourconfirm(stuff_outside_caret(document.getElementById('land_based').innerHTML));
var thintail = ""; // ourconfirm(stuff_outside_caret(document.getElementById('thintail').innerHTML));
var hooves = ""; // ourconfirm(stuff_outside_caret(document.getElementById('hooves').innerHTML));
var two_toes = ""; // ourconfirm(stuff_outside_caret(document.getElementById('two_toes').innerHTML));
var horns = ""; // ourconfirm(stuff_outside_caret(document.getElementById('horns').innerHTML));
var one_horn = ""; // ourconfirm(stuff_outside_caret(document.getElementById('one_horn').innerHTML));
var fleece = ""; // ourconfirm(stuff_outside_caret(document.getElementById('fleece').innerHTML));
var domesticated = ""; // ourconfirm(stuff_outside_caret(document.getElementById('domesticated').innerHTML));
var lives_in_desert = ""; // ourconfirm(stuff_outside_caret(document.getElementById('lives_in_desert').innerHTML));
var plating = ""; // ourconfirm(stuff_outside_caret(document.getElementById('plating').innerHTML));
var live_in_water = ""; // ourconfirm(stuff_outside_caret(document.getElementById('live_in_water').innerHTML));
var gills = ""; // ourconfirm(stuff_outside_caret(document.getElementById('gills').innerHTML));
var front_teeth = ""; // ourconfirm(stuff_outside_caret(document.getElementById('front_teeth').innerHTML));
var large_ears = ""; // ourconfirm(stuff_outside_caret(document.getElementById('large_ears').innerHTML));
var pouch = ""; // ourconfirm(stuff_outside_caret(document.getElementById('pouch').innerHTML));
var always_in_water = ""; // ourconfirm(stuff_outside_caret(document.getElementById('always_in_water').innerHTML));
var boney = ""; // ourconfirm(stuff_outside_caret(document.getElementById('boney').innerHTML));
var scally = ""; // ourconfirm(stuff_outside_caret(document.getElementById('scally').innerHTML));
var limbs = ""; // ourconfirm(stuff_outside_caret(document.getElementById('limbs').innerHTML));
var jump = ""; // ourconfirm(stuff_outside_caret(document.getElementById('jump').innerHTML));
var live_prime_in_soil = ""; // ourconfirm(stuff_outside_caret(document.getElementById('live_prime_in_soil').innerHTML));
var flat_bodied = ""; // ourconfirm(stuff_outside_caret(document.getElementById('flat_bodied').innerHTML));
var body_in_segments = ""; // ourconfirm(stuff_outside_caret(document.getElementById('body_in_segments').innerHTML));
var shell = ""; // ourconfirm(stuff_outside_caret(document.getElementById('shell').innerHTML));
var tail = ""; // ourconfirm(stuff_outside_caret(document.getElementById('tail').innerHTML));
var digest_cells = ""; // ourconfirm(stuff_outside_caret(document.getElementById('digest_cells').innerHTML));
var stationary = ""; // ourconfirm(stuff_outside_caret(document.getElementById('stationary').innerHTML));
var spikes = ""; // ourconfirm(stuff_outside_caret(document.getElementById('spikes').innerHTML));
var multicelled = ""; // ourconfirm(stuff_outside_caret(document.getElementById('multicelled').innerHTML));
var spiral_shell = ""; // ourconfirm(stuff_outside_caret(document.getElementById('spiral_shell').innerHTML));
var bivalve = ""; // ourconfirm(stuff_outside_caret(document.getElementById('bivalve').innerHTML));


// Thanks to David Walsh
var isiPad = navigator.userAgent.match(/iPad/i) != null;
var isiPhone = navigator.userAgent.match(/iPhone/i) != null;
var isiPod = navigator.userAgent.match(/iPod/i) != null;
var ahelp = true;

function ChangeLcodeNow(){
//<![CDATA[
var obod;
var val = document.getElementById('language');
if (val.value.length != 0 && val.value.indexOf('en') == (0 - 1)) {
var pprefix = val[val.selectedIndex].id;
if (isiPad || isiPhone || isiPod) {
if (!ahelp) {
ahelp = true;
obod = document.getElementById('mybod');
obod.innerHTML = obod.innerHTML + '&nbsp;&nbsp;<a id="abod" target="_blank" style="display:none;" title="Google Translate URL" href="#">Google Translate link</a>';
}
var aobod = document.getElementById('abod');
var locationhref='http://translate.google.com/translate?sl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.rjmprogramming.com.au%2FHTMLCSS%2FConfirmWindow%2Fanimal_categorization.html&tl=' + val.value;
aobod.href=locationhref;
if (1 == 2) {
aobod.innerHTML='Google Translate link';
//aobod.style.display='block';
} else {
aobod.click();
}
} else {
//window.open('http://translate.google.com/translate?sl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.rjmprogramming.com.au%2FHTMLCSS%2FConfirmWindow%2Fanimal_categorization.html&tl=' + val.value, '_blank');
location.href='http://translate.google.com/translate?sl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.rjmprogramming.com.au%2FHTMLCSS%2FConfirmWindow%2Fanimal_categorization.html&tl=' + val.value;
}
}
//]]>
}
</script>
</head>
<body id='mybod' onload="setTimeout(animal_categorize, 5000);" style="background: url('https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSUboJ3Mi82vFFE38ijJ0493ev6f4Wqpvx9eU7_W-ZU9wjMswV2uQ') repeat; ">
<h2 style="color:red; background-color: white; padding_left: 8px; padding_bottom: 8px;"><span id='tyai'>Think your animal is </span><span id='myanimal' style="color:orange;">?</span>&nbsp;&nbsp;<a style="color:green;" onclick=" if (parent.document) { if (parent.document.getElementById('divac')) { top.location.href=top.location.href + '&x' + Math.floor(Math.random() * 566) + '=y'; } } " href='./animal_categorization.html' title='Animal Categorization'>Another go?</a>&nbsp;&nbsp;<a style="color:green;" href="/" id="back" title="Back">Back</a>&nbsp;&nbsp;<a id="abod" title="Google Translate URL" href="#"></a></h2><br>
<select style="background-color:white;color:blue;" id="language" title="Translations courtesy of Google Translate at http://translate.google.com/" onchange='ChangeLcodeNow();'><option value="">Language</option><option value="af">Afrikaans</option><option value="sq">Albanian</option><option value="ar">Arabic</option><option value="hy">Armenian</option><option value="az">Azerbaijani</option><option value="eu">Basque</option><option value="be">Belarusian</option><option value="bg">Bulgarian</option><option value="ca">Catalan</option><option value="zh-CN">Chinese (Simplified)</option><option value="zh-TW">Chinese (Traditional)</option><option value="hr">Croatian</option><option value="cs">Czech</option><option value="da">Danish</option><option value="nl">Dutch</option><option value="">English</option><option value="et">Estonian</option><option value="tl">Filipino</option><option value="fi">Finnish</option><option value="fr">French</option><option value="gl">Galician</option><option value="ka">Georgian</option><option value="de">German</option><option value="el">Greek</option><option value="ht">Haitian Creole</option><option value="iw">Hebrew</option><option value="hi">Hindi</option><option value="hu">Hungarian</option><option value="is">Icelandic</option><option value="id">Indonesian</option><option value="ga">Irish</option><option value="it">Italian</option><option value="ja">Japanese</option><option value="ko">Korean</option><option value="la">Latin</option><option value="lv">Latvian</option><option value="lt">Lithuanian</option><option value="mk">Macedonian</option><option value="ms">Malay</option><option value="mt">Maltese</option><option value="no">Norwegian</option><option value="fa">Persian</option><option value="pl">Polish</option><option value="pt">Portuguese</option><option value="ro">Romanian</option><option value="ru">Russian</option><option value="sr">Serbian</option><option value="sk">Slovak</option><option value="sl">Slovenian</option><option value="es">Spanish</option><option value="sw">Swahili</option><option value="sv">Swedish</option><option value="th">Thai</option><option value="tr">Turkish</option><option value="uk">Ukrainian</option><option value="ur">Urdu</option><option value="vi">Vietnamese</option><option value="cy">Welsh</option><option value="yi">Yiddish</option></select>
<p style='display:none;' id='backbone'>Hear you have an unknown animal. Does your animal have a backbone? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='warm_blooded'>Is the animal warm blooded? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='has_breasts'>Normally, does the female of your animal nurse its young with milk? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='can_eat_meat'>Does your animal eat red meat? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='finger_wings'>Does your animal have finger wings? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='opposing_thumb'>Does your animal have an opposing thumb? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='prehensile_tail'>Does your animal have a prehensile tail? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='nearly_hairless'>Is your animal nearly hairless? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='long_powerful_arms'>Does your animal have long, powerful arms? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='over_400'>Does an adult normally weigh over 400 pounds? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='land_based'>Is your animal land based? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='thintail'>Does your animal have a thin tail? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='hooves'>Does your animal have hooves? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='two_toes'>Does your animal stand on two toes/hooves per foot? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='horns'>Does your animal have horns? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='one_horn'>Does your animal have one horn? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='fleece'>Does your animal have fleece? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='domesticated'>Is your animal domesticated? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='lives_in_desert'>Does your animal normally live in the desert? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='plating'>Is your animal covered with a protective plating? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='live_in_water'>Does your animal live in water? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='gills'>Does your animal have gills? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='front_teeth'>Does your animal have large front teeth? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='large_ears'>Does your animal have large ears? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='pouch'>Does your animal have a pouch? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='always_in_water'>Is your animal always in water? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='boney'>Does your animal have a boney skeleton? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='scally'>Is your animal covered with scaled skin? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='rounded_shell'>Does the animal have a rounded shell? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='limbs'>Does your animal have limbs? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='jump'>Does your animal jump? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='live_prime_in_soil'>Does your animal live primarily in soil? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='flat_bodied'>Does your animal have a flat body? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='body_in_segments'>Is the animals body in segments? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='shell'>Does your animal have a shell? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='tail'>Does your animal have a tail? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='digest_cells'>Does your animal use many cells to digest it's food instead of a stomach? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='stationary'>Is your animal attached permanently to an object? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='spikes'>Does your animal normally have spikes radiating from it's body? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='multicelled'>Is your animal made up of more than one cell? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='spiral_shell'>Does your animal have a spiral-shaped shell? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='bivalve'>Is your animal protected by two half-shells? (OK is yes, Cancel is no)</p>
<p style='display:none;' id='bqcuw'>but questions came up with</p>
<p style="display:none;" id='bat'>bat</p>
<p style="display:none;" id='monkey'>monkey</p>
<p style="display:none;" id='man'>man</p>
<p style="display:none;" id='orangutan_gorilla_chimpanzie'>orangutan,gorilla,chimpanzie</p>
<p style="display:none;" id='baboon'>baboon</p>
<p style="display:none;" id='bear_tiger_lion'>bear,tiger,lion</p>
<p style="display:none;" id='walrus'>walrus</p>
<p style="display:none;" id='cat'>cat</p>
<p style="display:none;" id='coyote_wolf_fox_dog'>coyote,wolf,fox,dog</p>
<p style="display:none;" id='hippopotamus'>hippopotamus</p>
<p style="display:none;" id='sheep_goat'>sheep,goat</p>
<p style="display:none;" id='cow'>cow</p>
<p style="display:none;" id='deer_moose_antelope'>deer,moose,antelope</p>
<p style="display:none;" id='camel'>camel</p>
<p style="display:none;" id='giraffe'>giraffe</p>
<p style="display:none;" id='rhinoceros'>rhinoceros</p>
<p style="display:none;" id='horse_zebra'>horse,zebra</p>
<p style="display:none;" id='whale'>whale</p>
<p style="display:none;" id='dolphin_porpoise'>dolphin,porpoise</p>
<p style="display:none;" id='rabbit'>rabbit</p>
<p style="display:none;" id='rat_mouse_squirrel_beaver_porcupine'>rat,mouse,squirrel,beaver,porcupine</p>
<p style="display:none;" id='kangaroo_koala_bear'>kangaroo,koala bear</p>
<p style="display:none;" id='mole_shrew_elephant'>mole,shrew,elephant</p>
<p style="display:none;" id='bird_penguin'>bird,penguin</p>
<p style="display:none;" id='fish'>fish</p>
<p style="display:none;" id='shark_ray'>shark,ray</p>
<p style="display:none;" id='turtle'>turtle</p>
<p style="display:none;" id='crocodile_alligator'>crocodile,alligator</p>
<p style="display:none;" id='snake'>snake</p>
<p style="display:none;" id='frog'>frog</p>
<p style="display:none;" id='salamander'>salamander</p>
<p style="display:none;" id='flatworm'>flatworm</p>
<p style="display:none;" id='worm_leech'>worm,leech</p>
<p style="display:none;" id='lobster'>lobster</p>
<p style="display:none;" id='crab'>crab</p>
<p style="display:none;" id='centiped_milliped_insect'>centiped,milliped,insect</p>
<p style="display:none;" id='sea_anemone'>sea anemone</p>
<p style="display:none;" id='coral_sponge'>coral,sponge</p>
<p style="display:none;" id='jellyfish'>jellyfish</p>
<p style="display:none;" id='snail'>snail</p>
<p style="display:none;" id='clam_oyster'>clam,oyster</p>
<p style="display:none;" id='squid_octopus'>squid,octopus</p>
<p style="display:none;" id='protozoa'>protozoa</p>
<script type="text/javascript">
document.getElementById("back").href = document.referrer;

function thenlater() {
if (parent.document.getElementById('start_button')) {
parent.document.getElementById('start_button').click();
}
}

function mode_three(inx) {
if (inx != '?') {
return '<a onclick=" if (fsp) { fsp.innerHTML = ' + "'" + 'yes' + "'" + '; pdidchange(0,' + "'" + 'yes' + "'" + '); } " style=text-decoration:none;cursor:pointer; title=yes>' + inx + '</a>';
} else {
return '<a onclick=" if (fsp) { fsp.innerHTML = ' + "'" + 'no' + "'" + '; pdidchange(0,' + "'" + 'no' + "'" + '); } " style=text-decoration:none;cursor:pointer; title=no>' + inx + '</a>';
}
}

function ourconfirm(prom) {
var wo=null;
if (parent.document) {
if (parent.document.getElementById('divac')) {
if (parent.document.getElementById('divac').innerHTML == '') {
parent.document.getElementById('divac').innerHTML=mode_three(prom.replace('(OK is yes, Cancel is no)','').trim().replace('?','')) + mode_three('?');
if (parent.document.getElementById('sq')) {
parent.document.getElementById('sq').innerHTML='<b>' + parent.document.getElementById('divac').innerHTML + '</b><br><br>';
//setTimeout(thenlater,1000);
//if (parent.document.getElementById('start_button')) {
// parent.document.getElementById('start_button').click();
//}
}
return "";
} else if ((parent.document.getElementById('divac').innerHTML.toLowerCase() + ' ').substring(0,1) == 'yes'.substring(0,1)) {
parent.document.getElementById('divac').innerHTML = '';
//setTimeout(thenlater,1000);
//if (parent.document.getElementById('start_button')) {
// parent.document.getElementById('start_button').click();
//}
return 'true';
} else if ((parent.document.getElementById('divac').innerHTML + ' ').toLowerCase().substring(0,1) == 'no'.substring(0,1)) {
parent.document.getElementById('divac').innerHTML = '';
//setTimeout(thenlater,1000);
//if (parent.document.getElementById('start_button')) {
// parent.document.getElementById('start_button').click();
//}
return 'false';
} else {
return "";
}
} else {
var cr = confirm(prom);
if (cr == true) return 'true';
return 'false';
}
} else {
var crr = confirm(prom);
if (crr == true) return 'true';
return 'false';
}
}

function stuff_outside_caret(ins) {
var outis = ins;
var intis = "";
var ij=ins.indexOf("<"), okay=1;
if (ij != -1) {
for (ij=0; ij<ins.length; ij++) {
if (ins.substring(ij,(ij+1)).indexOf('<') != -1) okay = 0;
if (okay == 1 && ins.substring(ij,(ij+1)).indexOf('>') == -1) intis = intis + ins.substring(ij,(ij+1));
if (ins.substring(ij,(ij+1)).indexOf('>') != -1) okay = 1;
}
outis = intis;
}
return outis;
}

function animal_categorize() {

if (backbone == "") backbone = ourconfirm(stuff_outside_caret(document.getElementById('backbone').innerHTML));
//var backbone = ourconfirm(stuff_outside_caret("Hear you have an unknown animal. Does your animal have a backbone? (OK is yes, Cancel is no)");
//if (backbone != true) alert(99);
if (backbone == "") { setTimeout(animal_categorize,5000); return; } else if (backbone == 'true') {
superphylum = "backbone";

if (superphylum == "backbone") {

if (warm_blooded == "") warm_blooded = ourconfirm(stuff_outside_caret(document.getElementById('warm_blooded').innerHTML));
if (warm_blooded == "") { setTimeout(animal_categorize,5000); return; } else if (warm_blooded == 'true') {
phylum = "warm";


if (has_breasts == "") has_breasts = ourconfirm(stuff_outside_caret(document.getElementById('has_breasts').innerHTML));
if (has_breasts == "") { setTimeout(animal_categorize,5000); return; } else if (has_breasts == 'true') {
aclass = "breasts";


if (can_eat_meat == "") can_eat_meat = ourconfirm(stuff_outside_caret(document.getElementById('can_eat_meat').innerHTML));
if (can_eat_meat == "") { setTimeout(animal_categorize,5000); return; } else if (can_eat_meat == 'true') {
order = "meat";


if (finger_wings == "") finger_wings = ourconfirm(stuff_outside_caret(document.getElementById('finger_wings').innerHTML));
if (finger_wings == "") { setTimeout(animal_categorize,5000); return; } else if (finger_wings == 'true') {
type_animal = stuff_outside_caret(document.getElementById("bat").innerHTML);
} else {
family = "nowings";


if (opposing_thumb == "") opposing_thumb = ourconfirm(stuff_outside_caret(document.getElementById('opposing_thumb').innerHTML));
if (opposing_thumb == "") { setTimeout(animal_categorize,5000); return; } else if (opposing_thumb == 'true') {
genus = "thumb";

if (prehensile_tail == "") prehensile_tail = ourconfirm(stuff_outside_caret(document.getElementById('prehensile_tail').innerHTML));
if (prehensile_tail == "") { setTimeout(animal_categorize,5000); return; } else if (prehensile_tail == 'true') {
type_animal = stuff_outside_caret(document.getElementById("monkey").innerHTML);
} else {
species = "notail";


if (nearly_hairless == "") nearly_hairless = ourconfirm(stuff_outside_caret(document.getElementById('nearly_hairless').innerHTML));
if (nearly_hairless == "") { setTimeout(animal_categorize,5000); return; } else if (nearly_hairless == 'true') {
type_animal = stuff_outside_caret(document.getElementById("man").innerHTML);
} else {
subspecies = "hair";


if (long_powerful_arms == "") long_powerful_arms = ourconfirm(stuff_outside_caret(document.getElementById('long_powerful_arms').innerHTML));
if (long_powerful_arms == "") { setTimeout(animal_categorize,5000); return; } else if (long_powerful_arms == 'true') {
type_animal = stuff_outside_caret(document.getElementById("orangutan_gorilla_chimpanzie").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("baboon").innerHTML);
}
}
}
} else {
genus = "nothumb";

if (over_400 == "") over_400 = ourconfirm(stuff_outside_caret(document.getElementById('over_400').innerHTML));
if (over_400 == "") { setTimeout(animal_categorize,5000); return; } else if (over_400 == 'true') {
species = "400";

if (land_based == "") land_based = ourconfirm(stuff_outside_caret(document.getElementById('land_based').innerHTML));
if (land_based == "") { setTimeout(animal_categorize,5000); return; } else if (land_based == 'true') {
type_animal = stuff_outside_caret(document.getElementById("bear_tiger_lion").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("walrus").innerHTML);
}
} else {
species = "under400";

if (thintail == "") thintail = ourconfirm(stuff_outside_caret(document.getElementById('thintail').innerHTML));
if (thintail == "") { setTimeout(animal_categorize,5000); return; } else if (thintail == 'true') {
type_animal = stuff_outside_caret(document.getElementById("cat").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("coyote_wolf_fox_dog").innerHTML);
}
}
}
}
} else {
order = "vegy";

if (hooves == "") hooves = ourconfirm(stuff_outside_caret(document.getElementById('hooves').innerHTML));
if (hooves == "") { setTimeout(animal_categorize,5000); return; } else if (hooves == 'true') {
family = "hooves";
//alert("hooves dead end 00010");

if (two_toes == "") two_toes = ourconfirm(stuff_outside_caret(document.getElementById('two_toes').innerHTML));
if (two_toes == "") { setTimeout(animal_categorize,5000); return; } else if (two_toes == 'true') {
genus = "twotoes";

if (horns == "") horns = ourconfirm(stuff_outside_caret(document.getElementById('horns').innerHTML));
if (horns == "") { setTimeout(animal_categorize,5000); return; } else if (horns == 'true') {
species = "horns";

if (one_horn == "") one_horn = ourconfirm(stuff_outside_caret(document.getElementById('one_horn').innerHTML));
if (one_horn == "") { setTimeout(animal_categorize,5000); return; } else if (one_horn == 'true') {
type_animal = stuff_outside_caret(document.getElementById("hippopotamus").innerHTML);
} else {
subspecies = "nohorn";


if (fleece == "") fleece = ourconfirm(stuff_outside_caret(document.getElementById('fleece').innerHTML));
if (fleece == "") { setTimeout(animal_categorize,5000); return; } else if (fleece == 'true') {
type_animal = stuff_outside_caret(document.getElementById("sheep_goat").innerHTML);
} else {
subsubspecies = "nofleece";


if (domesticated == "") domesticated = ourconfirm(stuff_outside_caret(document.getElementById('domesticated').innerHTML));
if (domesticated == "") { setTimeout(animal_categorize,5000); return; } else if (domesticated == 'true') {
type_animal = stuff_outside_caret(document.getElementById("cow").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("deer_moose_antelope").innerHTML);
}
//alert("hooves dead end 010");
}
//alert("hooves dead end 0100");
}
//alert("hooves dead end 01000");
} else {
species = "nohorns";



if (lives_in_desert == "") lives_in_desert = ourconfirm(stuff_outside_caret(document.getElementById('lives_in_desert').innerHTML));
if (lives_in_desert == "") { setTimeout(animal_categorize,5000); return; } else if (lives_in_desert == 'true') {
type_animal = stuff_outside_caret(document.getElementById("camel").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("giraffe").innerHTML);
}
//alert("hooves dead end 1111");
}
//alert("hooves dead end 111");
} else {
genus = "onetoe";

if (plating == "") plating = ourconfirm(stuff_outside_caret(document.getElementById('plating').innerHTML));
if (plating == "") { setTimeout(animal_categorize,5000); return; } else if (plating == 'true') {
type_animal = stuff_outside_caret(document.getElementById("rhinoceros").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("horse_zebra").innerHTML);
}
//alert("hooves dead end 11");
}
//alert("hooves dead end 1");

} else {
//alert("hooves dead end 01");
family = "feet";

if (live_in_water == "") live_in_water = ourconfirm(stuff_outside_caret(document.getElementById('live_in_water').innerHTML));
if (live_in_water == "") { setTimeout(animal_categorize,5000); return; } else if (live_in_water == 'true') {
genus = "water";

if (gills == "") gills = ourconfirm(stuff_outside_caret(document.getElementById('gills').innerHTML));
if (gills == "") { setTimeout(animal_categorize,5000); return; } else if (gills == 'true') {
type_animal = stuff_outside_caret(document.getElementById("whale").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("dolphin_porpoise").innerHTML);
}
} else {
genus = "dry";



if (front_teeth == "") front_teeth = ourconfirm(stuff_outside_caret(document.getElementById('front_teeth').innerHTML));
if (front_teeth == "") { setTimeout(animal_categorize,5000); return; } else if (front_teeth == 'true') {
species = "teeth";

if (large_ears == "") large_ears = ourconfirm(stuff_outside_caret(document.getElementById('large_ears').innerHTML));
if (large_ears == "") { setTimeout(animal_categorize,5000); return; } else if (large_ears == 'true') {
type_animal = stuff_outside_caret(document.getElementById("rabbit").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("rat_mouse_squirrel_beaver_porcupine").innerHTML);
}
} else {
species = "noteeth";


if (pouch == "") pouch = ourconfirm(stuff_outside_caret(document.getElementById('pouch').innerHTML));

if (pouch == "") { setTimeout(animal_categorize,5000); return; } else if (pouch == 'true') {
type_animal = stuff_outside_caret(document.getElementById("kangaroo_koala_bear").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("mole_shrew_elephant").innerHTML);
}
}
}
}
}
} else {
type_animal = stuff_outside_caret(document.getElementById("bird_penguin").innerHTML);
}


} else {
phylum = "cold";



if (always_in_water == "") always_in_water = ourconfirm(stuff_outside_caret(document.getElementById('always_in_water').innerHTML));
if (always_in_water == "") { setTimeout(animal_categorize,5000); return; } else if (always_in_water == 'true') {
aclass = "water";

if (boney == "") boney = ourconfirm(stuff_outside_caret(document.getElementById('boney').innerHTML));
if (boney == "") { setTimeout(animal_categorize,5000); return; } else if (boney == 'true') {
type_animal = stuff_outside_caret(document.getElementById("fish").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("shark_ray").innerHTML);
}
} else {
aclass = "dry";


if (scally == "") scally = ourconfirm(stuff_outside_caret(document.getElementById('scally').innerHTML));
if (scally == "") { setTimeout(animal_categorize,5000); return; } else if (scally == 'true') {
order = "scales";

if (rounded_shell == "") rounded_shell = ourconfirm(stuff_outside_caret(document.getElementById('rounded_shell').innerHTML));
if (rounded_shell == "") { setTimeout(animal_categorize,5000); return; } else if (rounded_shell == 'true') {
type_animal = stuff_outside_caret(document.getElementById("turtle").innerHTML);
} else {
family = "noshell";


if (limbs == "") limbs = ourconfirm(stuff_outside_caret(document.getElementById('limbs').innerHTML));

if (limbs == "") { setTimeout(animal_categorize,5000); return; } else if (limbs == 'true') {
type_animal = stuff_outside_caret(document.getElementById("crocodile_alligator").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("snake").innerHTML);
}
}
} else {
order = "soft";


if (jump == "") jump = ourconfirm(stuff_outside_caret(document.getElementById('jump').innerHTML));
if (jump == "") { setTimeout(animal_categorize,5000); return; } else if (jump == 'true') {
type_animal = stuff_outside_caret(document.getElementById("frog").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("salamander").innerHTML);
}
}
}
}

} else {
type_animal = "";
}


}

if (type_animal == "") { // jellyback
//alert(87);
superphylum = "jellyback";

if (live_prime_in_soil == "") live_prime_in_soil = ourconfirm(stuff_outside_caret(document.getElementById('live_prime_in_soil').innerHTML));
if (live_prime_in_soil == "") { setTimeout(animal_categorize,5000); return; } else if (live_prime_in_soil == 'true') {
phylum = "soil";


if (flat_bodied == "") flat_bodied = ourconfirm(stuff_outside_caret(document.getElementById('flat_bodied').innerHTML));
if (flat_bodied == "") { setTimeout(animal_categorize,5000); return; } else if (flat_bodied == 'true') {
type_animal = stuff_outside_caret(document.getElementById("flatworm").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("worm_leech").innerHTML);
}

} else {
phylum = "elsewhere";


if (body_in_segments == "") body_in_segments = ourconfirm(stuff_outside_caret(document.getElementById('body_in_segments').innerHTML));
if (body_in_segments == "") { setTimeout(animal_categorize,5000); return; } else if (body_in_segments == 'true') {
aclass = "segments";

if (shell == "") shell = ourconfirm(stuff_outside_caret(document.getElementById('shell').innerHTML));
if (shell == "") { setTimeout(animal_categorize,5000); return; } else if (shell == 'true') {
order = "shell";


if (tail == "") tail = ourconfirm(stuff_outside_caret(document.getElementById('tail').innerHTML));
if (tail == "") { setTimeout(animal_categorize,5000); return; } else if (tail == 'true') {
type_animal = stuff_outside_caret(document.getElementById("lobster").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("crab").innerHTML);
}
} else {
type_animal = stuff_outside_caret(document.getElementById("centiped_milliped_insect").innerHTML);
}
} else {
aclass = "unified";


if (digest_cells == "") digest_cells = ourconfirm(stuff_outside_caret(document.getElementById('digest_cells').innerHTML));
if (digest_cells == "") { setTimeout(animal_categorize,5000); return; } else if (digest_cells == 'true') {
order = "cells";


if (stationary == "") stationary = ourconfirm(stuff_outside_caret(document.getElementById('stationary').innerHTML));
if (stationary == "") { setTimeout(animal_categorize,5000); return; } else if (stationary == 'true') {
family = "stationary";
if (spikes == "") spikes = ourconfirm(stuff_outside_caret(document.getElementById('spikes').innerHTML));
if (spikes == "") { setTimeout(animal_categorize,5000); return; } else if (spikes == 'true') {
type_animal = stuff_outside_caret(document.getElementById("sea_anemone").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("coral_sponge").innerHTML);
}
} else {
type_animal = stuff_outside_caret(document.getElementById("jellyfish").innerHTML);

}

} else {
order = "stomach";


if (multicelled == "") multicelled = ourconfirm(stuff_outside_caret(document.getElementById('multicelled').innerHTML));
if (multicelled == "") { setTimeout(animal_categorize,5000); return; } else if (multicelled == 'true') {
family = "multicelled";

if (spiral_shell == "") spiral_shell = ourconfirm(stuff_outside_caret(document.getElementById('spiral_shell').innerHTML));
if (spiral_shell == "") { setTimeout(animal_categorize,5000); return; } else if (spiral_shell == 'true') {
type_animal = stuff_outside_caret(document.getElementById("snail").innerHTML);
} else {
genus = "noshell";


if (bivalve == "") bivalve = ourconfirm(stuff_outside_caret(document.getElementById('bivalve').innerHTML));
if (bivalve == "") { setTimeout(animal_categorize,5000); return; } else if (bivalve == 'true') {
type_animal = stuff_outside_caret(document.getElementById("clam_oyster").innerHTML);
} else {
type_animal = stuff_outside_caret(document.getElementById("squid_octopus").innerHTML);
}
}
} else {
type_animal = stuff_outside_caret(document.getElementById("protozoa").innerHTML);
}
}
}
}

}


document.getElementById('myanimal').innerHTML = type_animal + ".";
if (parent.document) {
if (parent.document.getElementById('divac')) {
parent.document.getElementById('divac').innerHTML=' ';
}
}
var answer = prompt(stuff_outside_caret(document.getElementById('tyai').innerHTML) + type_animal + " (Superpylum: " + superphylum + " and Phylum: " + phylum + " and Class: " + aclass + " and Order: " + order + " and Family: " + family + " and Genus: " + genus + " and Species: " + species + " and Subspecies: " + subspecies + ")", type_animal);
if (answer != type_animal) {
document.getElementById('myanimal').innerHTML = answer + " (" + stuff_outside_caret(document.getElementById('bqcuw').innerHTML) + " " + type_animal + ").";
}

}
</script>
</body>
</html>