<!doctype html>
<html>
<head>
<title>Emoji Walk Animation - RJM Programming - January, 2018</title>
<style>
* { overflow-x: visible; }

select { font-size: 36px; }

#selsport { font-size: 18px; }

td.runner { width: 50px; word-wrap: break-word; font-size: 36px;
transform: scale(-1, 1); -o-transform: scale(-1, 1); -moz-transform: scale(-1, 1); -ms-transform: scale(-1, 1); -webkit-transform: scale(-1, 1);
}
tr { max-height: 40px;
}

#mytr {
background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('sprint.jpg');
background-position: 0% 18%;
}

#mytr2 {
background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('sprint.jpg');
background-position: 20% 28%;
}

#mytr3 {
background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('sprint.jpg');
background-position: 30% 33%;
}

#mytr4 {
background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('sprint.jpg');
background-position: 40% 38%;
}

#mytr5 {
background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('sprint.jpg');
background-position: 50% 43%;
}

#mytr6 {
background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('sprint.jpg');
background-position: 57% 48%;
}

#mytr7 {
background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('sprint.jpg');
background-position: 70% 53%;
}

#mytr8 {
background-image: linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('sprint.jpg');
background-position: 90% 58%;
}

p {
display: block;
font-size: 12px;
-webkit-transform: matrix(-1, 0, 0, 1, 0, 0);
-moz-transform: matrix(-1, 0, 0, 1, 0, 0);
-o-transform: matrix(-1, 0, 0, 1, 0, 0);
transform: matrix(-1, 0, 0, 1, 0, 0);
}

</style>
<script type='text/javascript'>

var verb='Sprint';
var verbs=['Sprint','Row'];
var anotherverb='run';
var verbsuffix='';
var mtg=100;
var wsport='';
var bimg='sprint.jpg';

var running_woman='🏃🏾‍♀️';
var man_running='🏃‍♂️';
var choices=['🏃🏾‍♀️','🏃‍♂️','🏃🏻‍♀️','🏃🏿','🏃🏽','🏃🏿','🏃🏾‍♀️','🏃🏻‍♀️'];
var emoticons=['🏃🏾‍♀️','🏃‍♂️','🏃🏻‍♀️','🏃🏿','🏃🏽','🏃🏿','🏃🏾‍♀️','🏃🏻‍♀️'];


var choicesrowing=['🚣‍♀️','🚣','🚣','🚣🏼','🚣🏽','🚣🏾','🚣🏻‍♀️','🚣🏽‍♀️','🚣🏾‍♀️','🚣🏼‍♀️','🚣🏻','🚣🏿‍♀️','🚣🏿'];
var emoticonsrowing=['🚣‍♀️','🚣','🚣','🚣🏼','🚣🏽','🚣🏾','🚣🏻‍♀️','🚣🏽‍♀️','🚣🏾‍♀️','🚣🏼‍♀️','🚣🏻','🚣🏿‍♀️','🚣🏿'];


//var emoticons=['🏃🏾‍♀️','🏃‍♂️','🏃🏾‍♀️','🏃🏾‍♀️','🏃🏾‍♀️','🏃🏾‍♀️','🏃🏾‍♀️','🏃🏾‍♀️','🏃🏾‍♀️'];
var thisone=[0,0,0,0,0,0,0,0,0], thiso=[0,0,0,0,0,0,0,0,0], prevone=[0,0,0,0,0,0,0,0,0], splits=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0];
var text_align=['left','left','left']; //'center','right'];
var istart=0, lastht=0, eight=[12,12,12,12,12,12,12,12], callitoff=false, endr=800000;
var iend=eval(Math.floor(eval(eval('' + Math.floor(Math.random() * 208)) + 656) / 10) * 10);
while (eval(Math.round(iend) % 100) != 0) {
iend+=10;
}
var kend=eval(iend * 1), extras=0;
iend=location.search.split('meters=')[1] ? eval(decodeURIComponent(location.search.split('meters=')[1].split('&')[0])) : 100;
mtg=iend;
if (eval(iend) <= 0) iend=kend;
kend=iend;
iend+=10;
while (eval(Math.round(iend) % 20) != 0) {
iend+=10;
}
//iend=80;
//iend+=100;
var twenty=eval(10-9);
var laps=0,ilaps=[0,0,0,0,0,0,0,0,0], elapsed=0.0;
var lastgood=-1, lastoid='';

function athen() {
var qws=["biking", "climbing", "juggling", "cartwheeling", "playing water polo", "mountain biking", "playing handball"];
var qwsv=["cycle", "climb", "juggle", "cartwheel", "water polo play", "mountain cycle", "handball play"];
verb=location.search.split('verb=')[1] ? decodeURIComponent(location.search.split('verb=')[1].split('&')[0]) : verbs[0];
if (verb != verbs[0]) {
verbsuffix=verb.replace('Row','rowing');
}
for (var iy=0; iy<qws.length; iy++) {
//alert(qws[iy] + ' vs ' + verb);
if (verb.toLowerCase() == qws[iy] || verb.toLowerCase() == qwsv[iy]) {
document.getElementById('selsport').innerHTML+='<option value="' + qws[iy] + '" selected>' + qws[iy] + '</option>';
//alert(87);
document.getElementById('selsport').value=qws[iy];
if (document.URL.indexOf(encodeURIComponent(qws[iy])) == -1) document.getElementById('dstg').innerHTML='Please wait while we look that up ...'; //document.getElementById('stg').style.display='none';
if (document.URL.indexOf(encodeURIComponent(qws[iy])) == -1) location.href='emoji_lookup.php?sportpp=' + encodeURIComponent(qws[iy]) + '&meters=' + mtg;
} else {
document.getElementById('selsport').innerHTML+='<option value="' + qws[iy] + '">' + qws[iy] + '</option>';
}
}
if (document.getElementById('selsport').innerHTML.toLowerCase().indexOf('>sprint<') == -1) {
document.getElementById('selsport').innerHTML+='<option value="sprint">sprint</option>';
}
if (document.getElementById('selsport').innerHTML.toLowerCase().indexOf('>Your Sport?<') == -1) {
document.getElementById('selsport').innerHTML+='<option value="">Your Sport?</option>';
}
}

function checki(iois) {
if (iois != null) {
var aaconto = (iois.contentWindow || iois.contentDocument);
if (aaconto != null) {
if (aaconto.document) { aaconto = aaconto.document; }
if (aaconto.body != null) {
setTimeout(athen,2000);
}
}
}
}

function bth(inth) {
return inth.replace('emoji_lookup.php', 'emoji_walk_animation.htm').replace('sportpp=', 'verb=');
}

function dows() {
if (wsport.toLowerCase().replace('row', 'sprint') != 'sprint') {
location.href='emoji_lookup.php?sportpp=' + encodeURIComponent(wsport) + '&meters=' + mtg;
} else if (bth(document.URL).indexOf('verb=') != -1) {
location.href=bth(document.URL).split('#')[0].replace('verb=', 'verb=' + encodeURIComponent(wsport) + '&junk=');
} else {
location.href=(bth(document.URL).split('#')[0] + '~').replace('.html~','.html?verb=' + encodeURIComponent(wsport)).replace('.htm~','.htm?verb=' + encodeURIComponent(wsport)).replace('~','&verb=' + encodeURIComponent(wsport));
}
}

function changesport(whatsport) {
if (whatsport == '') {
whatsport=prompt("Please enter your word for the sport. You can see what Fairy or Mage do?", "");
if (whatsport == null) whatsport="";
}
if (verb != whatsport && whatsport.trim() != "") {
wsport=whatsport;
if (wsport == 'sp' + 'rint') wsport = 'Sp' + 'rint';
if (1 == 1) {
document.getElementById('dstg').innerHTML='Please wait while we look that up ...';
} else {
document.getElementById('stg').style.display='none';
}
//alert(65);
setTimeout(dows, 1000);
} //else {
// alert('1111:' + whatsport);
// }
}

function selofy(whatsport) {
verb=location.search.split('verb=')[1] ? decodeURIComponent(location.search.split('verb=')[1].split('&')[0]) : verbs[0];
var retsel='<select id=selsport onchange=changesport(this.value);></select>';
for (var iu=0; iu<verbs.length; iu++) {
if (verb.toLowerCase() == verbs[iu].toLowerCase()) {
retsel=retsel.replace('</select>','<option value="' + verbs[iu] + '" selected>' + verbs[iu].toLowerCase() + '</option></select>');
} else {
retsel=retsel.replace('</select>','<option value="' + verbs[iu] + '">' + verbs[iu].toLowerCase() + '</option></select>');
}
}
if (verb != verbs[0]) {
anotherverb=verb.replace('Row','row');
verbsuffix=verb.replace('Row','rowing');
if (verbsuffix == 'rowing') {
for (var ju=0; ju<eight.length; ju++) {
eight[ju] = eval(2 * eight[ju]);
}
}
}
return retsel; //verb.toLowerCase();
}

function plus(ih,ihep) {
var outihep=ihep;
if (eval("emoticons" + verbsuffix + "[" + ih + "]").indexOf('<p>') != -1) {
outihep += ' (' + eval("emoticons" + verbsuffix + "[" + ih + "]").split('<p>')[1].split('<')[0] + ')';
}
return outihep;
}

function selvia(inn,ine) {
var ij, selis="<select id=sel' + inn + ' onchange=\" var aname=''; if (this.value.trim() != this.value) { aname=prompt('What is ' + anotherverb.replace('run','runn') + 'er name (add ! to randomize energy level effects)?',''); if (aname == null) { aname=''; } else { if (aname .indexOf('!') != -1) { eight[' + inn + ']=eval(Math.floor(Math.random() * 16) + 4); } if (aname.replace('!','') != '') { aname='<p>' + aname.replace('!','') + '</p>'; } else { aname=''; } } } emoticons" + verbsuffix + "[" + inn + "]=this.value.trim() + aname; \"></select>";
for (ij=0; ij<eval("choices" + verbsuffix + ".length"); ij++) {
if (ine == eval("choices" + verbsuffix + "[" + ij + "]")) {
selis=selis.replace("</select>", "<option value='" + eval("choices" + verbsuffix + "[" + ij + "]") + "' selected>" + eval("choices" + verbsuffix + "[" + ij + "]") + "</option></select>");
} else {
selis=selis.replace("</select>", "<option value='" + eval("choices" + verbsuffix + "[" + ij + "]") + "'>" + eval("choices" + verbsuffix + "[" + ij + "]") + "</option></select>");
}
}
for (ij=0; ij<eval("choices" + verbsuffix + ".length"); ij++) {
selis=selis.replace("</select>", "<option title=\"Supply Name and/or Randomize Energy Levels\" value='" + eval("choices" + verbsuffix + "[" + ij + "]") + " '>" + eval("choices" + verbsuffix + "[" + ij + "]") + " ?</option></select>");
}
return selis;
}

function premoref700000() {
moref(700000);
setTimeout(premoref700000, Math.floor(Math.random() * eight[7]) + 40);
}

function premoref600000() {
moref(600000);
setTimeout(premoref600000, Math.floor(Math.random() * eight[6]) + 40);
}

function premoref500000() {
moref(500000);
setTimeout(premoref500000, Math.floor(Math.random() * eight[5]) + 40);
}

function premoref400000() {
moref(400000);
setTimeout(premoref400000, Math.floor(Math.random() * eight[4]) + 40);
}

function premoref300000() {
moref(300000);
setTimeout(premoref300000, Math.floor(Math.random() * eight[3]) + 40);
}

function premoref200000() {
moref(200000);
setTimeout(premoref200000, Math.floor(Math.random() * eight[2]) + 40);
}

function premoref100000() {
moref(100000);
setTimeout(premoref100000, Math.floor(Math.random() * eight[1]) + 40);
}

function premoref0() {
moref(0);
setTimeout(premoref0, Math.floor(Math.random() * eight[0]) + 40);
}

function splitssuffix(at, oid, third) {
var retv="", jj=lastgood, ii, ourlastht=lastht, iz=eval('' + laps);
var meters=eval(eval(oid.split('td')[1]) % 100000);
if (lastgood == -1) {
lastgood=meters;
retv='' + meters;
} else if (lastgood == -2 || at.indexOf('.0') != -1) {
//alert('oid=' + oid);
ourlastht-=twenty;
//lastgood+=eval(1 * twenty); //lastgood=meters;
retv=third; //'' + meters;
meters=eval('' + third); //eval(laps * Math.round(iend) * 10);
lastgood=meters;
lastgood-=eval(1 * twenty);
} else {
lastgood+=eval(1 * twenty);
meters=lastgood;
retv=third;
}
for (ii=0; ii<splits.length; ii++) {
if (('' + at).replace('.0','') == ('' + ii) || eval(splits[ii].split(".")[1].substring(0,eval(-1 + splits[ii].split(".")[1].length))) == meters) {
//retv+="<br><span id=" + meters + "_" + eval(1 + ii) + ">" + ('' + splits[ii]) + "</span>";
retv+="<br><span id=" + meters + "_" + eval(1 + ii) + ">" + plus(ii,splits[ii].split('.')[0].substring(0,eval(-1 + splits[ii].split('.')[0].length)) + "." + splits[ii].split('.')[0].slice(-1)) + "</span>";
} else if (laps > 0) {
if (ii == 0) {
//if (at != '') alert('1: ' + iz);
iz*=eval('' + Math.round(iend));
//if (at != '') alert('*Math.round(iend): ' + iz);
iz*=10;
//if (at != '') alert('*10: ' + iz);
iz+=eval(eval('' + ourlastht) * eval(10 - 9));
//if (at != '') alert('+lastht*10: ' + iz);
}
retv+="<br><span id=" + meters + "_" + eval(1 + ii) + "></span>"; // + eval(splits[ii].split(".")[1].substring(0,eval(-1 + splits[ii].split(".")[1].length))) + "_" + eval(eval(oid.split('td')[1]) % 100000);
} else {
retv+="<br><span id=" + meters + "_" + eval(1 + ii) + "></span>"; // + eval(splits[ii].split(".")[1].substring(0,eval(-1 + splits[ii].split(".")[1].length))) + "_" + eval(eval(oid.split('td')[1]) % 100000);
}
}
lastoid=oid;
if (at == '' && laps > 0) alert(retv);
return retv;
}

function moref(ioff) {
var i,j=Math.round(eval(ioff / 100000));
var zero=ioff;
ioff=0;
if (1 == 2 && eval((thiso[j] + 1) % (Math.round(iend) * 3)) == 0) {
var jend=eval('' + iend), once=false;
while (eval(Math.round(jend) % 100) != 0 || !once) {
once=true;
jend+=10;
}
if (jend < kend) {
for (i=kend; i<Math.round(jend); i++) {
document.getElementById('mytr').innerHTML+='<td class=runner style="text-align:' + text_align[0] + ';" id=td' + i + '> </td>';
document.getElementById('mytr2').innerHTML+='<td class=runner style="text-align:' + text_align[0] + ';" id=td' + eval(i + eval(100000)) + '> </td>';
document.getElementById('mytr3').innerHTML+='<td class=runner style="text-align:' + text_align[0] + ';" id=td' + eval(i + eval(200000)) + '> </td>';
document.getElementById('mytr4').innerHTML+='<td class=runner style="text-align:' + text_align[0] + ';" id=td' + eval(i + eval(300000)) + '> </td>';
document.getElementById('mytr5').innerHTML+='<td class=runner style="text-align:' + text_align[0] + ';" id=td' + eval(i + eval(400000)) + '> </td>';
document.getElementById('mytr6').innerHTML+='<td class=runner style="text-align:' + text_align[0] + ';" id=td' + eval(i + eval(500000)) + '> </td>';
document.getElementById('mytr7').innerHTML+='<td class=runner style="text-align:' + text_align[0] + ';" id=td' + eval(i + eval(600000)) + '> </td>';
document.getElementById('mytr8').innerHTML+='<td class=runner style="text-align:' + text_align[0] + ';" id=td' + eval(i + eval(700000)) + '> </td>';
document.getElementById('mytr9').innerHTML+='<td style="text-align:' + text_align[0] + ';" id=td' + eval(i + eval(800000)) + '> </td>';
}
extras++;
kend=Math.round(jend);
}
iend=Math.round(jend);
//alert(eval((thiso[j] + 1) % (Math.round(iend) * 3)));
}
thiso[j]=eval((thiso[j] + 1) % (Math.round(iend) * 3));
if (thiso[j] == 0) {
if (callitoff) return;
//zero=0;
//while (zero <= 200000) {
document.getElementById('td' + eval(zero + eval(ioff + eval(prevone[j])))).innerHTML=' ';
document.getElementById('td' + eval(zero + eval(ioff + eval(prevone[j])))).style.textAlign='left';
//zero+=100000;
//}
if (6 == 7) {
thisone[j]++;
document.getElementById('td' + eval(zero + eval(eval(thisone[j])))).innerHTML=eval("emoticons" + verbsuffix + "[" + j + "]"); //running_woman;
} else {
thisone[j]=0; //zero;
//zero=0;
//while (zero <= 200000) {
document.getElementById('td' + eval(zero + eval(ioff + eval(thisone[j])))).innerHTML=eval("emoticons" + verbsuffix + "[" + j + "]"); //running_woman;
//zero+=100000;
//}
}
location.href='#td' + zero;
ilaps[j]++;
if (ilaps[j] > laps) {
callitoff=true;
var ans=prompt(verb + ' finished. Click OK to get results, else a number is the number of meters to ' + anotherverb + ' for the next race (negative or zero for random meterage).','');
if (ans != null) {
if (ans != "") {
location.href=bth(document.URL).split('#')[0].split('?')[0] + "?meters=" + encodeURIComponent(ans) + "&verb=" + encodeURIComponent(verb);
return;
}
}
ans=prompt((document.getElementById('td' + endr).innerText + String.fromCharCode(10)).replace(String.fromCharCode(10), ' meter ' + verb + String.fromCharCode(10)) + String.fromCharCode(10) + 'Can enter a number that is the number of meters to ' + anotherverb + ' for the next race (negative or zero for random meterage).','');
if (ans != null) {
if (ans != "") {
location.href=bth(document.URL).split('#')[0].split('?')[0] + "?meters=" + encodeURIComponent(ans) + "&verb=" + encodeURIComponent(verb);
return;
} else {
location.href=bth(document.URL).split('#')[0].split('?')[0];
return;
}
} else {
location.href=bth(document.URL).split('#')[0].split('?')[0];
return;
}
laps=ilaps[j];
//lastht=0;
lastgood=-2; //+=eval(twenty * 1);
//alert('twenty=' + twenty + ' ,' + 'td' + eval(800000 + eval(lastht)) + ',' + '' + eval(eval(eval(eval(lastht) * 10) + eval(ilaps[j] * Math.round(iend) * 10))));
var trb='';
for (i=istart; i<Math.round(iend); i++) {
trb+='<td style="text-align:' + text_align[0] + ';" id=td' + eval(i + eval(800000)) + '> </td>';
}
document.getElementById('mytr9').innerHTML=trb;
//document.getElementById('td800000').innerHTML='' + laps + ' ... ' + Math.round(iend) + ' === ' + eval(laps * Math.round(iend) * 10);
document.getElementById('td' + eval(800000)).innerHTML='' + splitssuffix('' + j + '.0','td' + eval(800000), '' + eval(eval(eval(eval(eval(-twenty)) * eval(10 - 9)) + eval(ilaps[j] * Math.round(iend) * eval(10 - 9))))); //eval(eval(lastht * 10) + eval(ilaps[j] * Math.round(iend) * 10)));
//alert(987);
lastht=0;
lastht=eval(Math.max(0,eval(twenty + eval(0 + eval((thisone[j] + 1) % Math.round(iend))))) % 100000);
lastgood=eval(-twenty + eval(laps * iend));
//alert(lastgood);
}
prevone[j]=thisone[j];
//twenty=eval(20 - 18);
} else if (eval(thiso[j] % 3) == 0) {
//alert('td' + eval(ioff + eval(prevone[j])));
//zero=0;
//while (zero <= 200000) {
if (document.getElementById('td' + eval(zero + eval(ioff + eval(prevone[j])))) == null) {
alert(ioff + ' zero=' + zero + ' prevoff[' + j + '] ... ' + 'td' + eval(zero + eval(ioff + eval(prevone[j]))));
}
document.getElementById('td' + eval(zero + eval(ioff + eval(prevone[j])))).innerHTML=' ';
document.getElementById('td' + eval(zero + eval(ioff + eval(prevone[j])))).style.textAlign='left';
//zero+=100000;
//}
//if (eval(eval(Math.max(zero,eval(0 + eval(zero + eval((thisone[j] + 1) % Math.round(iend))))) % 100000) % 10) == 0) {
splits[j]='' + Math.round(eval(elapsed * 10)) + '.' + eval(Math.max(zero,eval(0 + eval(zero + eval((thisone[j] + 1) % Math.round(iend))))) % 100000) + eval(1 + j);
//document.title='' + splits[j];
//}
if (laps > 0) {
if ( eval( eval((thisone[j] + 1) % Math.round(iend)) % 10) == 0) {

var xlastht=eval(Math.min(eval(lastgood + eval(twenty)),eval(twenty + eval(zero + eval((thisone[j] + 1))))) % 100000);
//if (laps > 0) document.title=lastgood + ' ' + xlastht + ' ... ' + eval(Math.max(zero,eval(twenty + eval(zero + eval((thisone[j] + 1))))) % 100000) + ' versus (greater than) ' + lastht;
if (document.getElementById('td' + eval(800000 - twenty + eval(xlastht)))) {
//if (laps > 0) document.title=lastgood + ' ' + xlastht + ' .+. ' + eval(Math.max(zero,eval(twenty + eval(zero + eval((thisone[j] + 1))))) % 100000) + ' versus (greater than) ' + lastht;
if (document.getElementById('td' + eval(800000 - twenty + eval(xlastht))).innerHTML.replace(' ','').replace(' ','').replace(' ','').replace(' ','') == '') {
//if (laps > 0) document.title=lastgood + ' ' + xlastht + ' .=. ' + eval(Math.max(zero,eval(twenty + eval(zero + eval((thisone[j] + 1))))) % 100000) + ' versus (greater than) ' + lastht;
lastht=xlastht;
}
}
location.href='#td' + Math.max(zero,eval(20 + eval(zero + eval((thisone[j] + 1) % Math.round(iend)))));
return;
//alert('' + lastht + 'td' + eval(800000 + eval(lastht)));
if (document.getElementById('td' + eval(800000 + eval(lastht))) && eval(lastht % 10) == 0) {
//splits[j]='' + Math.round(eval(elapsed * 10)) + '.' + eval(1 + j);
if (eval('' + lastht) >= eval('' + twenty)) {
if (xlastht == eval(lastgood + eval(twenty))) {
//if (eval('' + lastht) >= eval('' + twenty)) alert('look at ' + '' + eval(eval(eval(eval(-twenty + lastht) * 10) + eval(-twenty + eval(ilaps[j] * Math.round(iend)) * 10))));
document.getElementById('td' + eval(800000 - twenty + eval(lastht))).innerHTML='' + splitssuffix('' + j,'td' + eval(800000 - twenty + eval(lastht)), '' + eval(eval(eval(eval(-twenty + lastht) * eval(10 - 9)) + eval(eval(-twenty * eval(10 - 9)) + eval(ilaps[j] * Math.round(iend) * 10))))); //eval(eval(lastht * 10) + eval(ilaps[j] * Math.round(iend) * 10)));
} else {
document.getElementById('td' + eval(800000 - twenty + eval(lastht))).innerHTML='' + splitssuffix('' + j,'td' + eval(800000 - twenty + eval(lastht)), '' + eval(eval(eval(eval(-twenty + lastht) * eval(10 - 9)) + eval(ilaps[j] * Math.round(iend) * eval(10 - 9))))); //eval(eval(lastht * 10) + eval(ilaps[j] * Math.round(iend) * 10)));
}
}
}



}
} else {
if (eval(Math.max(zero,eval(twenty + eval(zero + eval((thisone[j] + 1) % Math.round(iend))))) % 100000) > lastht) {
lastht=eval(Math.max(zero,eval(twenty + eval(zero + eval((thisone[j] + 1) % Math.round(iend))))) % 100000);
//document.title='#td' + Math.max(zero,eval(20 + eval(zero + eval((thisone[j] + 1) % Math.round(iend)))));
location.href='#td' + Math.max(zero,eval(20 + eval(zero + eval((thisone[j] + 1) % Math.round(iend)))));
//alert('' + lastht + 'td' + eval(800000 + eval(lastht)));
if (document.getElementById('td' + eval(800000 + eval(lastht))) && eval(lastht % 10) == 0) {
//splits[j]='' + Math.round(eval(elapsed * 10)) + '.' + eval(1 + j);
if (eval('' + lastht) >= eval('' + twenty)) document.getElementById('td' + eval(800000 - twenty + eval(lastht))).innerHTML='' + splitssuffix('','td' + eval(800000 - twenty + eval(lastht)), '' + eval(eval(eval(eval(-twenty + lastht) * eval(10 - 9)) + eval(ilaps[j] * Math.round(iend) * eval(10 - 9))))); //eval(eval(lastht * 10) + eval(ilaps[j] * Math.round(iend) * 10)));
}
}
twenty=10; //20;
}
thisone[j]=eval((thisone[j] + 1) % Math.round(iend));
if (eval(thisone[j] % 10) == 0 || 1 == 1) {
if (laps > 0) document.title='' + eval(eval(laps * iend * eval(10 - 9)) + eval((thisone[j] % Math.round(iend)))) + '_' + eval(1 + j);
if (document.getElementById(thisone[j] + '_' + eval(1 + j))) {
if (laps > 0) document.title=eval(eval(laps * iend * eval(10 - 9)) + eval((thisone[j] % Math.round(iend)))) + ' ... ' + document.getElementById('mytr9').innerHTML.replace(/\>/g,'').replace(/\</g,'');
if (document.getElementById(thisone[j] + '_' + eval(1 + j)).innerHTML == '') {
//document.getElementById(thisone[j] + '_' + eval(1 + j)).innerHTML='<font size=1>' + Math.round(eval(elapsed * 10)) + '</font>';
document.getElementById(thisone[j] + '_' + eval(1 + j)).innerHTML='<font size=1>' + plus(j,elapsed.toFixed(1)) + '</font>';
}
} else if (document.getElementById(eval((thisone[j] % Math.round(iend))) + '_' + eval(1 + j))) {
if (laps > 0) document.title=eval(eval(laps * iend * eval(10 - 9)) + eval((thisone[j] % Math.round(iend)))) + ' .+. ' + document.getElementById('mytr9').innerHTML.replace(/\>/g,'').replace(/\</g,'');
if (document.getElementById(eval((thisone[j] % Math.round(iend))) + '_' + eval(1 + j)).innerHTML == '') {
//document.getElementById(eval((thisone[j] % Math.round(iend))) + '_' + eval(1 + j)).innerHTML='<font size=1>' + Math.round(eval(elapsed * 10)) + '</font>';
document.getElementById(eval((thisone[j] % Math.round(iend))) + '_' + eval(1 + j)).innerHTML='<font size=1>' + plus(j,elapsed.toFixed(1)) + '</font>';
}
} else if (document.getElementById(eval(eval(laps * iend * eval(10 - 9)) + eval((thisone[j] % Math.round(iend)))) + '_' + eval(1 + j))) {
if (laps > 0) document.title=eval(eval(laps * iend * eval(10 - 9)) + eval((thisone[j] % Math.round(iend)))) + ' .=. ' + document.getElementById('mytr9').innerHTML.replace(/\>/g,'').replace(/\</g,'');
if (document.getElementById(eval(eval(laps * iend * eval(10 - 9)) + eval((thisone[j] % Math.round(iend)))) + '_' + eval(1 + j)).innerHTML == '') {
//document.getElementById(eval(eval(laps * iend * eval(10 - 9)) + eval((thisone[j] % Math.round(iend)))) + '_' + eval(1 + j)).innerHTML='<font size=1>' + Math.round(eval(elapsed * 10)) + '</font>';
document.getElementById(eval(eval(laps * iend * eval(10 - 9)) + eval((thisone[j] % Math.round(iend)))) + '_' + eval(1 + j)).innerHTML='<font size=1>' + plus(j,elapsed.toFixed(1)) + '</font>';
}
}
}
//zero=0;
//while (zero <= 200000) {
document.getElementById('td' + eval(zero + eval(ioff + eval(thisone[j])))).innerHTML=eval("emoticons" + verbsuffix + "[" + j + "]"); //running_woman;
//zero+=100000;
//}
prevone[j]=thisone[j];
} else if (eval(thiso[j] % 3) == 1) {
if (1 == 1) document.getElementById('td' + eval(ioff + eval(thisone[j]))).style.textAlign='center';
splits[j]='' + Math.round(eval(elapsed * 10)) + '.' + eval(Math.max(zero,eval(0 + eval(zero + eval((thisone[j] + 0) % Math.round(iend))))) % 100000) + eval(1 + j);
//document.title='' + splits[j];
thiso[j]+=1;
} else if (eval(thiso[j] % 3) == 2) {
if (1 == 1) document.getElementById('td' + eval(ioff + eval(thisone[j]))).style.textAlign='right';
splits[j]='' + Math.round(eval(elapsed * 10)) + '.' + eval(Math.max(zero,eval(0 + eval(zero + eval((thisone[j] + 0) % Math.round(iend))))) % 100000) + eval(1 + j);
//document.title='' + splits[j];
}
//setTimeout(moref, 100);
}

function depending() {
var newbimg='sprint.jpg', trsuff='';
switch(verb.toLowerCase().replace(/\ /g,'')) {
case 'row':
case 'rowing':
newbimg='row.jpg';
break;
case 'cycle':
case 'biking':
newbimg='cycle.jpg';
break;
case 'climb':
case 'climbing':
newbimg='climbing.jpg';
break;
case 'juggle':
case 'juggling':
newbimg='juggling.jpg';
break;
case 'cartwheel':
case 'cartwheeling':
newbimg='cartwheeling.jpg';
break;
case 'waterpoloplay':
case 'playingwaterpolo':
newbimg='waterpolo.jpg';
break;
case 'mountaincycle':
case 'mountainbiking':
newbimg='mountaincycle.jpg';
break;
case 'handballplay':
case 'playinghandball':
newbimg='handball.jpg';
break;
default:
newbimg='sprint.jpg';
break;
}
if (newbimg != bimg) {
for (var itr=1; itr<=8; itr++) {
document.getElementById('mytr' + trsuff).style.backgroundImage="linear-gradient(rgba(255,255,255,0.7),rgba(255,255,255,0.7)), url('" + newbimg + "')";
trsuff='' + eval(1 + itr);
}
bimg=newbimg;
}
}

function startit() {
var styling='';
verb=location.search.split('verb=')[1] ? decodeURIComponent(location.search.split('verb=')[1].split('&')[0]) : verbs[0];
if (verb != verbs[0]) {
verbsuffix=verb.replace('Row','rowing');
}
depending();
for (var i=istart; i<Math.round(iend); i++) {
styling='';
if (i == Math.floor(eval(eval(kend * eval(10 - 9)) / 100)) * 100) styling=' style=background-color:yellow; ';
document.getElementById('mytr').innerHTML+='<td class=runner' + ' style="border-top: 1px solid black; border-bottom: 1px solid violet;text-align:' + text_align[0] + ';' + styling.replace('style=','') + '" id=td' + i + '> </td>';
document.getElementById('mytr2').innerHTML+='<td class=runner' + ' style="border-top: 1px solid violet; border-bottom: 1px solid indigo;text-align:' + text_align[0] + ';' + styling.replace('style=','') + '" id=td' + eval(i + eval(100000)) + '> </td>';
document.getElementById('mytr3').innerHTML+='<td class=runner' + ' style="border-top: 1px solid indigo; border-bottom: 1px solid blue;text-align:' + text_align[0] + ';' + styling.replace('style=','') + '" id=td' + eval(i + eval(200000)) + '> </td>';
document.getElementById('mytr4').innerHTML+='<td class=runner' + ' style="border-top: 1px solid blue; border-bottom: 1px solid green;text-align:' + text_align[0] + ';' + styling.replace('style=','') + '" id=td' + eval(i + eval(300000)) + '> </td>';
document.getElementById('mytr5').innerHTML+='<td class=runner' + ' style="border-top: 1px solid green; border-bottom: 1px solid yellow;text-align:' + text_align[0] + ';' + styling.replace('style=','') + '" id=td' + eval(i + eval(400000)) + '> </td>';
document.getElementById('mytr6').innerHTML+='<td class=runner' + ' style="border-top: 1px solid yellow; border-bottom: 1px solid orange;text-align:' + text_align[0] + ';' + styling.replace('style=','') + '" id=td' + eval(i + eval(500000)) + '> </td>';
document.getElementById('mytr7').innerHTML+='<td class=runner' + ' style="border-top: 1px solid orange; border-bottom: 1px solid red;text-align:' + text_align[0] + ';' + styling.replace('style=','') + '" id=td' + eval(i + eval(600000)) + '> </td>';
document.getElementById('mytr8').innerHTML+='<td class=runner' + ' style="border-top: 1px solid red; border-bottom: 1px solid black;text-align:' + text_align[0] + ';' + styling.replace('style=','') + '" id=td' + eval(i + eval(700000)) + '> </td>';
document.getElementById('mytr9').innerHTML+='<td style="text-align:' + text_align[0] + ';' + styling.replace('style=','') + '" id=td' + eval(i + eval(800000)) + '> </td>';
}
document.getElementById('td800000').innerHTML='<span id=spanh style=" background-color: white;">The <b><font color=violet>R</font><font color=indigo>a</font><font color=blue>i</font><font color=green>n</font><font color=yellow>b</font><font color=orange>o</font><font color=red>w</font></b> Games <br>' + Math.floor(eval(eval(kend * eval(10 - 9)) / 100)) * 100 + ' meter <br>' + selofy(verb.toLowerCase()) + '</span>';
document.getElementById('td800000').style.backgroundColor='#f0f0f0';
endr+=Math.floor(eval(eval(kend * eval(10 - 9)) / 100)) * 100;
//alert(document.getElementById('mytr3').innerHTML.substring(0,400));
document.getElementById('td' + thisone[0]).innerHTML=selvia(0,eval("emoticons" + verbsuffix + "[0]")); //running_woman;
document.getElementById('td' + eval(thisone[1] + eval(100000))).innerHTML=selvia(1,eval("emoticons" + verbsuffix + "[1]")); //running_woman;
document.getElementById('td' + eval(thisone[2] + eval(200000))).innerHTML=selvia(2,eval("emoticons" + verbsuffix + "[2]")); //running_woman;
document.getElementById('td' + eval(thisone[3] + eval(300000))).innerHTML=selvia(3,eval("emoticons" + verbsuffix + "[3]")); //running_woman;
document.getElementById('td' + eval(thisone[4] + eval(400000))).innerHTML=selvia(4,eval("emoticons" + verbsuffix + "[4]")); //running_woman;
document.getElementById('td' + eval(thisone[5] + eval(500000))).innerHTML=selvia(5,eval("emoticons" + verbsuffix + "[5]")); //running_woman;
document.getElementById('td' + eval(thisone[6] + eval(600000))).innerHTML=selvia(6,eval("emoticons" + verbsuffix + "[6]")); //running_woman;
document.getElementById('td' + eval(thisone[7] + eval(700000))).innerHTML=selvia(7,eval("emoticons" + verbsuffix + "[7]")); //running_woman;
}

function startgame() {
document.getElementById('dstg').innerHTML='Racing now ...';
setInterval(etimer, 100);
setTimeout(premoref0, 100);
setTimeout(premoref100000, 100);
setTimeout(premoref200000, 100);
setTimeout(premoref300000, 100);
setTimeout(premoref400000, 100);
setTimeout(premoref500000, 100);
setTimeout(premoref600000, 100);
setTimeout(premoref700000, 100);
}

function etimer() {
elapsed+=0.1;
}

</script>

</head>
<body onload='startit();'>
<table id='mytbody' cellpadding=0 cellspacing=0>
<tbody id='mtbody'>
<tr id='mytr'></tr>
<tr id='mytr2'></tr>
<tr id='mytr3'></tr>
<tr id='mytr4'></tr>
<tr id='mytr5'></tr>
<tr id='mytr6'></tr>
<tr id='mytr7'></tr>
<tr id='mytr8'></tr>
<tr id='mytr9'></tr>
</tbody>
</table>
<div id=dstg><input style='border: 2px solid red; background-color: yellow; padding: 5px 5px 5px 5px;' type=button onclick="document.getElementById('td3').innerHTML=''; startgame();" value='Start the Games' id='stg'></input></div><div><font size=2>Sponsored by <a target=_blank title='Emoji Terra' href='//www.rjmprogramming.com.au'>RJM Programming</a></font></div><div><font size=2>Thanks to <a target=_blank title='Emoji Terra' href='//emojiterra.com/'>Emoji Terra</a></font></div>
<iframe onload='checki(this);' src='./emoji_lookup.php' id='eli' style='display:none;'></iframe>
</body>
</html>