<html>
<head>
<title>Swipe Media ... RJM Programming - August, 2025</title>
<meta id='myviewport' name='viewport' content='width=device-width, initial-scale=0.4, minimum-scale=0.1, maximum-scale=8, user-scalable=yes' >
<style>
td {
border: 1px dotted green;
}
a {
text-shadow:-1px 1px 1px #ff2d95;
background-color:rgba(255,255,255,0.3);
}
.inhouse {
vertical-align: bottom;
padding-bottom: 20px;
}
.inhouse::after {
font-size: 8px;
content: 'Media Gallery \a RJM Programming \a August, 2025 \a Thanks to Lorem Picsum at https://picsum.photos/ \a Thanks to YouTube at https://youtube.com \a ' attr(data-alt) attr(data-vid) attr(data-arb) attr(alt);
white-space: pre-wrap;
}
@media only screen and (min-device-width: 320px) and (max-device-width: 765px) and (orientation: landscape) {
span { padding: 4 12 8 12; }
button { font-size: 22px; border:1px solid gray; }
#femailthft { font-size: 28px; }
#fsmsthft { font-size: 28px; }
#fsavethft { font-size: 28px; }
#fplaythft { font-size: 28px; }
}
@media only screen and (min-device-width: 320px) and (max-device-width: 765px) and (orientation: portrait) {
span { padding: 5 5 15 5; }
button { font-size: 16px; border:1px solid gray; }
#femailthft { font-size: 28px; }
#fsmsthft { font-size: 28px; }
#fsavethft { font-size: 28px; }
#fplaythft { font-size: 28px; }
}
.eggtimer {
border-left-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='826' height='48' viewport='0 0 200 100' style='border-radius:15px;background-color:rgba(0,255,0,0.3);fill:black;font-family:Verdana;font-size:16px;'><text x='0%' y='80%'>\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\01f33f\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\01f33f\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\01f33f\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b</text></svg>");
border-right-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='826' height='48' viewport='0 0 200 100' style='border-radius:15px;background-color:rgba(0,255,0,0.3);fill:black;font-family:Verdana;font-size:16px;'><text x='0%' y='80%'>\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\01f33f\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\01f33f\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\01f33f\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b\0023f3\00231b</text></svg>");
border-left-image-slice: 45% 5%;
border-left-image-repeat: round;
border-right-image-slice: 45% 5%;
border-right-image-repeat: round;
}
</style>
<script type='text/javascript' src='/ytaudioonly.js?rand=34444113331463331444314344443w444e64e54824334694444443434444444442344444604344451313142358'></script>
<script type=text/javascript>
// Monitor scrolling
var asrequestedbystuff='', allowotm=true;
var dword='Disco';
var twcword='The Wrecking Crew';
var yrword='Yacht Rock';
var listword='videolist';
var twcvl=(('' + window.sessionStorage.getItem('the_wrecking_crew_alt_list')).replace(/^undefined$/g,'').replace(/^null$/g,'') != '' ? '&' + listword + '=' + encodeURIComponent(decodeURIComponent(('' + window.sessionStorage.getItem('the_wrecking_crew_alt_list'))).split('&')[0].split('#')[0]) : '');
var yrvl=(('' + window.sessionStorage.getItem('yacht_rock_alt_list')).replace(/^undefined$/g,'').replace(/^null$/g,'') != '' ? '&' + listword + '=' + encodeURIComponent(decodeURIComponent(('' + window.sessionStorage.getItem('yacht_rock_alt_list'))).split('&')[0].split('#')[0]) : '');
var dvl=(('' + window.sessionStorage.getItem('disco_alt_list')).replace(/^undefined$/g,'').replace(/^null$/g,'') != '' ? '&' + listword + '=' + encodeURIComponent(decodeURIComponent(('' + window.sessionStorage.getItem('disco_alt_list'))).split('&')[0].split('#')[0]) : '');
if (twcvl == '') {
twcvl=(('' + window.localStorage.getItem('the_wrecking_crew_alt_list')).replace(/^undefined$/g,'').replace(/^null$/g,'') != '' ? '&listvideo=' + thisencodeURIComponent(decodeURIComponent(('' + window.localStorage.getItem('the_wrecking_crew_alt_list'))).split('&')[0].split('#')[0]) : '');
if (twcvl != '') {
listword='listvideo';
twcword=(twcvl == '' ? 'The Wrecking Crew' : ('&' + listword + '=' + encodeURIComponent(decodeURIComponent(('' + window.localStorage.getItem('the_wrecking_crew_alt_list')))) == twcvl ? 'The Wrecking Crew' : decodeURIComponent(('' + window.localStorage.getItem('the_wrecking_crew_alt_list'))).replace(/\&/g,'#').split('#')[1]));
}
} else {
listword='videolist';
twcword=(twcvl == '' ? 'The Wrecking Crew' : ('&' + listword + '=' + encodeURIComponent(decodeURIComponent(('' + window.sessionStorage.getItem('the_wrecking_crew_alt_list')))) == twcvl ? 'The Wrecking Crew' : decodeURIComponent(('' + window.sessionStorage.getItem('the_wrecking_crew_alt_list'))).replace(/\&/g,'#').split('#')[1]));
}
if (yrvl == '') {
yrvl=(('' + window.localStorage.getItem('yacht_rock_alt_list')).replace(/^undefined$/g,'').replace(/^null$/g,'') != '' ? '&listvideo=' + thisencodeURIComponent(decodeURIComponent(('' + window.localStorage.getItem('yacht_rock_alt_list'))).split('&')[0].split('#')[0]) : '');
if (yrvl != '') {
listword='listvideo';
yrword=(yrvl == '' ? 'Yacht Rock' : ('&' + listword + '=' + encodeURIComponent(decodeURIComponent(('' + window.localStorage.getItem('yacht_rock_alt_list')))) == yrvl ? 'Yacht Rock' : decodeURIComponent(('' + window.localStorage.getItem('yacht_rock_alt_list'))).replace(/\&/g,'#').split('#')[1]));
}
} else {
listword='videolist';
yrword=(yrvl == '' ? 'Yacht Rock' : ('&' + listword + '=' + encodeURIComponent(decodeURIComponent(('' + window.sessionStorage.getItem('yacht_rock_alt_list')))) == yrvl ? 'Yacht Rock' : decodeURIComponent(('' + window.sessionStorage.getItem('yacht_rock_alt_list'))).replace(/\&/g,'#').split('#')[1]));
}
if (dvl == '') {
dvl=(('' + window.localStorage.getItem('disco_alt_list')).replace(/^undefined$/g,'').replace(/^null$/g,'') != '' ? '&listvideo=' + thisencodeURIComponent(decodeURIComponent(('' + window.localStorage.getItem('disco_alt_list'))).split('&')[0].split('#')[0]) : '');
if (dvl != '') {
listword='listvideo';
dword=(dvl == '' ? 'Disco' : ('&' + listword + '=' + encodeURIComponent(decodeURIComponent(('' + window.localStorage.getItem('disco_alt_list')))) == dvl ? 'Disco' : decodeURIComponent(('' + window.localStorage.getItem('disco_alt_list'))).replace(/\&/g,'#').split('#')[1]));
}
} else {
listword='videolist';
dword=(dvl == '' ? 'Disco' : ('&' + listword + '=' + encodeURIComponent(decodeURIComponent(('' + window.sessionStorage.getItem('disco_alt_list')))) == dvl ? 'Disco' : decodeURIComponent(('' + window.sessionStorage.getItem('disco_alt_list'))).replace(/\&/g,'#').split('#')[1]));
}
var speechtotextwo=null;
var secondsidea='';
var alttitle=(location.search.split('atitle=')[1] ? decodeURIComponent(location.search.split('atitle=')[1].split('&')[0]) : '');
var altlh='#radio', asa=false, template='';
var cntcurs=0, lastcurs=0, altlen=-1, ordermatters=[], mattersorder=[], firstidx=-1, ffidx=-1, firstduris='', iij=0;
var completionmatters=(document.URL.indexOf('completionmatters=') != -1 ? true : false);
//var ordmatters=(document.URL.indexOf((document.URL.indexOf('&completionmatters=y&youtube=Klh7sAv9hu4,hMOORQ1Mt2s,k4V3Mo61fJM,-p6OH7FoWoQ,AIOAlaACuv4,HTzGMEfbnAw,CW_ZiojrkVY,FtE3hoR_Nvo') == -1 && document.URL.indexOf('youtube=' + encodeURIComponent('Klh7sAv9hu4,hMOORQ1Mt2s,k4V3Mo61fJM,-p6OH7FoWoQ,AIOAlaACuv4,HTzGMEfbnAw,CW_ZiojrkVY,FtE3hoR_Nvo')) == -1 ? 'ordmatters=' : 'ordJUNKmatters=')) != -1 ? true : false);
var ordmatters=(document.URL.indexOf('ordmatters=') != -1 ? true : false);
var cursanim=[' ',' | ', ' / ', ' - ', ' \ '];
var cursanimtwo=[' ',' | ', ' / ', ' - ', ' \ '];
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || 2 == 2) { // phase of moon emojis for pseudo cursor purposes
cursanimtwo[1]=' ' + String.fromCodePoint(127761) + ' ';
cursanimtwo[2]=' ' + String.fromCodePoint(127762) + ' ';
cursanimtwo[3]=' ' + String.fromCodePoint(127763) + ' ';
cursanimtwo[4]=' ' + String.fromCodePoint(127764) + ' ';
for (iij=127765; iij<=127768; iij++) {
cursanimtwo.push(' ' + String.fromCodePoint(iij) + ' ');
cursanim.push(cursanim[eval(eval(iij - 127764) % 5)]);
}
for (iij=127769; iij<=127772; iij++) {
cursanimtwo.push(' ' + String.fromCodePoint(iij) + ' ');
cursanim.push(cursanim[eval(eval(iij - 127768) % 5)]);
}
for (iij=127773; iij<=127773; iij++) {
cursanimtwo.push(' ' + String.fromCodePoint(iij) + ' ');
cursanim.push(cursanim[eval(eval(iij - 127772) % 5)]);
}
}
var gccount=1, gccsofar='-987';
var dsofar='', wsofar='', czhr=null, pho=false;
var isLandscape = window.matchMedia("(orientation: landscape)").matches;
var isPortrait = window.matchMedia("(orientation: portrait)").matches;
var reipad='|<br>|<br>|<br>|<br>|<br>';
if (navigator.userAgent.match(/iPad/i)) {
reipad='';
}
var gelev='';
var gduris=0;
var gtitis='';
var setoff=false;
var oldradwo=null;
var jload=0;
var jmedias=[];
var relh='', relxh='';
var gtdzero='> </td>';
var dw='';
var ytwo=null;
var radioblurb='', didothers=false, ioisid='';
var lastrecall='';
var doc_URL=document.URL;
var userms=document.URL.replace(/\%23http$/g,'#http').split('#');
if (eval('' + userms.length) >= 2) {
relxh=('' + document.URL).replace(/\%23http$/g,'#http').split(('' + document.URL).replace(/\%23http$/g,'#http').split('#')[0])[1].replace(/\#http$/g,'');
}
relxh='';
var iuser=1;
var independent=true;
var argshuffle='';
if (document.URL.indexOf('shuffle=') != -1) { argshuffle='&shuffle=y'; }
var storedvurl=[];
var storedvtitle=[];
var storedvduration=[];
var lasttitleis='', lkj=0;
var curvaridx=0;
var variants=['cannotenda2','cAnnotenda2','caNnotenda2','canNotenda2','cannOtenda2','cannoTenda2','cannotEnda2','cannoteNda2','cannotenDa2','cannotendA2','cANnotenda2','caNNotenda2','canNOtenda2','Cannotenda2','CAnnotenda2','CaNnotenda2','CanNotenda2','CannOtenda2','CannoTenda2','CannotEnda2','CannoteNda2','CannotenDa2','CannotendA2','CANnotenda2','CaNNotenda2','CanNOtenda2'];
var variantt=['cannotenda2','cAnnotenda2','caNnotenda2','canNotenda2','cannOtenda2','cannoTenda2','cannotEnda2','cannoteNda2','cannotenDa2','cannotendA2','cANnotenda2','caNNotenda2','canNOtenda2','Cannotenda2','CAnnotenda2','CaNnotenda2','CanNotenda2','CannOtenda2','CannoTenda2','CannotEnda2','CannoteNda2','CannotenDa2','CannotendA2','CANnotenda2','CaNNotenda2','CanNOtenda2'];
var variantu=['cannotenda2','cAnnotenda2','caNnotenda2','canNotenda2','cannOtenda2','cannoTenda2','cannotEnda2','cannoteNda2','cannotenDa2','cannotendA2','cANnotenda2','caNNotenda2','canNOtenda2','Cannotenda2','CAnnotenda2','CaNnotenda2','CanNotenda2','CannOtenda2','CannoTenda2','CannotEnda2','CannoteNda2','CannotenDa2','CannotendA2','CANnotenda2','CaNNotenda2','CanNOtenda2'];
var origlenv=eval('' + variants.length);
var sofar=';', gplist='';
var curtdfocus='td0001', curtdn=1, pos3=-1, pos4=-1, lastpos3=-1, lastpos4=-1, readyforswipe=false, vspos3='-1', vspos4='-1';
var doonce=false;
var ytlist='', prefix='';
var thingstot=[''], lasttdid='', lastop='0.0', afi=null;
var isOpera = (navigator.userAgent.match(/Opera|OPR\//) ? true : false);
var agentruew=eval('' + document.documentElement.clientWidth);
var agentrueh=eval('' + document.documentElement.clientHeight);
var amax=Math.max(agentruew,agentrueh);
var amin=Math.min(agentruew,agentrueh);
amin-=60; // used to be -60
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && isLandscape) {
amin-=110;
} else if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && isPortrait) {
amin-=90;
}
//if (isOpera) {
// amin-=80;
// alert('Here');
//}
var numc=eval(2 * Math.ceil(eval(amax / amin)));
var iurl=0, jj=1;
var purlideas='';
var urls=['//picsum.photos/' + amin + '/' + amin + '/', '//www.rjmprogramming.com.au/ITblog/' + amin + '/' + amin + '/'];
//var urls=['//www.rjmprogramming.com.au/ITblog/' + amin + '/' + amin + '/', '//www.rjmprogramming.com.au/ITblog/' + amin + '/' + amin + '/'];
var bcol=['yellow', '#f0f0f0'];
var vidids=[];
var dethingos=[];
if (document.URL.indexOf('&asrequested=you') == -1) {
vidids=((location.search + ('' + location.hash).replace(/^null/g,'').replace(/^undefined/g,'').replace(/^\#/g,'&')).split('youtube=')[1] ? decodeURIComponent(decodeURIComponent((location.search + ('' + location.hash).replace(/^null/g,'').replace(/^undefined/g,'').replace(/^\#/g,'&')).split('youtube=')[1].split('&')[0])) : '').split(',');
} else {
vidids=((location.search + ('' + location.hash).replace(/^null/g,'').replace(/^undefined/g,'').replace(/^\#/g,'&')).split('youtube=')[1] ? thisdecodeURIComponent(decodeURIComponent((location.search + ('' + location.hash).replace(/^null/g,'').replace(/^undefined/g,'').replace(/^\#/g,'&')).split('youtube=')[1].split('&')[0])) : '').split(',');
}
var vididslength=eval('' + vidids.length);
if (vididslength > 27) {
var newarr=[];
for (var imb=0; imb<27; imb++) {
newarr.push(vidids[imb]);
}
vidids=[];
for (var jmb=0; jmb<27; jmb++) {
vidids.push(newarr[jmb]);
}
vididslength=eval('' + vidids.length);
}
var isaudio=(location.search + ('' + location.hash).replace(/^null/g,'').replace(/^undefined/g,'').replace(/^\#/g,'&')).split('audioyoutube=')[1] ? true : false;
var idealis=eval('' + vidids.length);
//alert('' + vididslength + ' ' + idealis);
if (ordmatters) {
for (lkj=0; lkj<vidids.length; lkj++) {
mattersorder.push(vidids[lkj]);
ordermatters.push(lkj);
}
}
//if (completionmatters) {
// alert(vidids.length);
//}
var gdal='';
function thisencodeURIComponent(inida) {
var thingos=inida.split(',');
for (var ity=0; ity<thingos.length; ity++) {
document.getElementById('bdiscoavb').setAttribute('data-you', '&asrequested=you');
alert('3:' + asrequestedbystuff);
asrequestedbystuff+='|' + thingos[ity] + '=You';
alert('33:' + asrequestedbystuff);
}
return encodeURIComponent(inida);
}
function andlateris() {
//alert('prewow ' + dethingos.length);
for (var ity=0; ity<dethingos.length; ity++) {
document.getElementById('bdiscoavb').setAttribute('data-you', '&asrequested=you');
//alert('2:' + asrequestedbystuff);
asrequestedbystuff+='|' + dethingos[ity] + '=You';
//alert('22:' + asrequestedbystuff);
}
}
function thisdecodeURIComponent(jnida) {
var inida=decodeURIComponent(jnida);
//alert('apreprewow ' + inida);
dethingos=inida.split(',');
//alert('preprewow ' + dethingos.length);
if (4 == 45) {
andlateris();
} else {
setTimeout(andlateris, 6000);
}
//alert(inida);
return inida;
}
function alert_delayed() {
if (gdal.trim() != '') {
var thisdal=gdal;
gdal='';
alert(thisdal);
}
}
function delayed_alert(ofw) {
gdal=ofw;
if (gdal.trim() != '') {
setTimeout(alert_delayed, 2000);
}
}
function getrequestedbystuff(viavid, titleo) {
var tds=document.getElementsByTagName('td'), ltds=0;
if (titleo) {
try {
titleo.title='';
} catch(hjgfjh) { }
}
if (asrequestedbystuff.indexOf('|' + viavid + '=') != -1) {
for (ltds=0; ltds<tds.length; ltds++) {
if (tds[ltds].innerHTML.indexOf(viavid) != -1) {
if (titleo) {
try {
titleo.title='As requested by ' + asrequestedbystuff.split('|' + viavid + '=')[1].split('|')[0].replace('as requested by', '') + ' ... ';
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (titleo.outerHTML.indexOf(' ontouchdown=') == -1) {
titleo.ontouchdown=function(event){ if (event.target.title.trim().replace('honethree','') != '') { delayed_alert(event.target.title); } };
}
} else {
if (titleo.outerHTML.indexOf(' onmousedown=') == -1) {
titleo.onmousedown=function(event){ if (event.target.title.trim().replace('honethree','') != '') { delayed_alert(event.target.title); } };
}
}
} catch(hjgfjh) { }
}
tds[ltds].setAttribute('data-arb', ' ... as requested by ' + asrequestedbystuff.split('|' + viavid + '=')[1].split('|')[0].replace('as requested by', '') + ' ... ');
}
}
return ' ... as requested by ' + asrequestedbystuff.split('|' + viavid + '=')[1].split('|')[0].replace('as requested by', '') + ' ... ';
}
for (ltds=0; ltds<tds.length; ltds++) {
if (tds[ltds].innerHTML.indexOf(viavid) != -1) {
tds[ltds].setAttribute('data-arb', '');
}
}
return '';
}
function windowopen(w1,w2,w3) {
setTimeout(function(){ window.open(w1,w2,w3); }, 4000);
}
function getcurv() {
return curvaridx;
}
function setcurv(viai) {
if (viai >= eval('' + variants.length)) {
while (viai >= eval('' + variants.length)) {
variants.push(variants[eval(viai % origlenv)]);
variantt.push(variants[eval(viai % origlenv)]);
variantu.push(variants[eval(viai % origlenv)]);
}
}
curvaridx=eval('' + viai);
}
function getvart(viai) {
if (viai >= eval('' + variants.length)) {
while (viai >= eval('' + variants.length)) {
variants.push(variants[eval(viai % origlenv)]);
variantt.push(variants[eval(viai % origlenv)]);
variantu.push(variants[eval(viai % origlenv)]);
}
}
return '' + variantt[viai];
}
function getvaru(viai) {
if (viai >= eval('' + variants.length)) {
while (viai >= eval('' + variants.length)) {
variants.push(variants[eval(viai % origlenv)]);
variantt.push(variants[eval(viai % origlenv)]);
variantu.push(variants[eval(viai % origlenv)]);
}
}
return '' + variantu[viai];
}
function getvars(viai) {
if (viai >= eval('' + variants.length)) {
while (viai >= eval('' + variants.length)) {
variants.push(variants[eval(viai % origlenv)]);
variantt.push(variants[eval(viai % origlenv)]);
variantu.push(variants[eval(viai % origlenv)]);
}
}
return '' + variants[viai];
}
function createplaylist(insvalo) {
var tdsare=[], itds=0, itdone=false;
var oklast=['A','E','I','M','Q','U','Y','c','g','k','o','s','w','0','4','8'];
var argshuf='';
var plist=null;
if (('' + getaltlh(false)).replace('#radio','') != '') {
if (gplist.trim() != '') {
plist=gplist;
gplist='';
} else {
plist=prompt('Enter YouTube 11 character code video (comma separated) or audio stream only of video (semicolon separated) list to Radio Play (and add ! to start in shuffle mode and/or # to honour the order you enter and/or & to ensure whole list passes through) ... or a YouTube Search String basis to create a playlist via a Radio' + String.fromCodePoint(128251) + '? button to activate, later. Double click on this cell for playlist redefinitions. Enter altrp for an alternative Radio Play webpage.', '');
}
if (plist != null) {
if (plist.toLowerCase() == 'altrp') {
getaltlh(true);
return '';
}
}
} else {
if (gplist.trim() != '') {
plist=gplist;
gplist='';
} else {
plist=prompt('Enter YouTube 11 character code video (comma separated) or audio stream only of video (semicolon separated) list to Radio Play (and add ! to start in shuffle mode and/or # to honour the order you enter and/or & to ensure whole list passes through) ... or a YouTube Search String basis to create a playlist via a Radio' + String.fromCodePoint(128251) + '? button to activate, later. Double click on this cell for playlist redefinitions.', '');
}
}
if (plist != null) {
if (plist.trim() != '') {
if (plist.indexOf('&') != -1) { completionmatters=true; plist=plist.replace(/\&/g,''); argshuf+='&completionmatters=y'; }
if (plist.indexOf('#') != -1) { ordmatters=true; plist=plist.replace(/\#/g,''); argshuf+='ºatters=y'; }
if (plist.trim().indexOf(' ') != -1 || eval('' + plist.trim().split(',')[0].split(';')[0].length) != 11 || oklast.indexOf(plist.trim().split(',')[0].split(';')[0].slice(-1)) == -1) {
tdsare=document.getElementsByTagName('td');
for (itds=0; itds<tdsare.length; itds++) {
if (!itdone && tdsare[itds].innerHTML == '' && ('' + tdsare[itds].id) != 'td0001') {
itdone=true;
tdsare[itds].innerHTML='<iframe style="width:100%;height:100%;" id=karsearch name=karsearch src="/HTMLCSS/karaoke_youtube_api.htm?youtubeid=++++++++++++' + encodeURIComponent(plist.trim()) + '&minimize=y&youtube_duration=&email=&emoji=on&clickcheck=y"></iframe>';
tdsare[itds].scrollIntoView();
}
}
} else {
if (plist.replace(/\!$/g,'') != plist) { argshuf+='&shuffle=y'; }
if (plist.indexOf(';') != -1 && plist.indexOf(',') == -1) {
console.warn('gccOunt=' + gccount + ' and vidids.length=' + vididslength);
window.open(document.URL.split('?')[0].split('#')[0] + '?isradio=y' + argshuf + '&audioyoutube=' + encodeURIComponent(extraatendmaybe(plist.replace(/\;/g,',').replace(/\!$/g,''),'isradio=y' + argshuf)),'_blank');
} else {
console.warn('gccount=' + gccouNt + ' and vidids.length=' + vididslength);
window.open(document.URL.split('?')[0].split('#')[0] + '?isradio=y' + argshuf + '&youtube=' + encodeURIComponent(extraatendmaybe(plist.replace(/\;/g,',').replace(/\!$/g,''),'isradio=y' + argshuf)),'_blank');
}
}
}
}
}
function emailsms(insvalo) {
var insval=insvalo.title, afi=null, saveidea='tube_' + document.title.split(' ...')[0].replace(/\ /g,'_') + '_' + ( ('' + Math.floor(Math.random() * 19897654)) + ('' + Math.floor(Math.random() * 19897654)) + ('' + Math.floor(Math.random() * 19897654)) + '000000000000000000000000000').substring(0,27);
var eors=''; //prompt('Enter an email address or SMS number to send to?', '');
if (eors != null) {
if (insval.toLowerCase().indexOf('save') != -1) {
var nsi=prompt('Enter name for your recallable save.', saveidea);
if (nsi != null) {
if (('' + nsi).trim() != '') {
window.localStorage.setItem(nsi, encodeURIComponent(doc_URL));
if (nsi.indexOf('tube_') == 0) {
var lhalt=getaltlh(false);
if (lhalt.replace('#radio','') != '') {
window.localStorage.setItem(nsi.replace('tube_', 'esp_ornot_esp_'), encodeURIComponent(lhalt));
}
}
}
}
} else if (eors.indexOf('@') != -1 || insval.toLowerCase().indexOf('mail') != -1) {
afi=document.createElement('a');
afi.target='_top';
afi.href='mailto:' + eors + '?subject=' + encodeURIComponent(document.title.split(' ...')[0] + ' ... ') + 'YouTube%20Video%20Playlist%20Idea&20...&body=' + encodeURIComponent(doc_URL);
document.head.appendChild(afi);
afi.click();
} else if (insval.toLowerCase().indexOf('sms') != -1 || (eors.trim() != '' && eors.replace(/0/g,'').replace(/1/g,'').replace(/2/g,'').replace(/3/g,'').replace(/4/g,'').replace(/5/g,'').replace(/6/g,'').replace(/7/g,'').replace(/8/g,'').replace(/9/g,'').trim() != '')) {
afi=document.createElement('a');
afi.target='_top';
afi.href='sms:' + eors + '&body=' + encodeURIComponent(doc_URL);
document.head.appendChild(afi);
afi.click();
}
}
}
function getaltlh(woize) {
var ispsa=1, jspa=1, spsa=[], jspsa=0;
if (document.getElementById('divtitles')) {
if (document.getElementById('divtitles').innerHTML.indexOf('</span>') != -1) {
altlh='#radio';
spsa=document.getElementById('divtitles').innerHTML.split('</span>');
for (jspsa=0; jspsa<vidids.length; jspsa++) {
for (ispsa=1; ispsa<spsa.length; ispsa+=2) {
if (spsa[ispsa].split('|')[eval(-1 + spsa[ispsa].split('|').length)].split('#')[0].trim() == vidids[jspsa] && altlh.indexOf('#' + spsa[ispsa].split('|')[eval(-1 + spsa[ispsa].split('|').length)].split('#')[0].trim()) == -1) {
altlh+='#' + spsa[ispsa].split('|')[eval(-1 + spsa[ispsa].split('|').length)].split('#')[0];
if (spsa[eval(-1 + eval('' + ispsa))].split('>')[1].indexOf('.') == -1) {
altlh+='#' + eval(30 + eval('' + spsa[eval(-1 + eval('' + ispsa))].split('>')[1])) + '.000';
} else {
altlh+='#' + eval(30 + eval('' + spsa[eval(-1 + eval('' + ispsa))].split('>')[1]));
}
if (spsa[ispsa].indexOf('#') == -1) {
altlh+='#YouTube%20Video%20' + ispsa;
} else {
altlh+='#' + encodeURIComponent(spsa[ispsa].split('#')[1]);
}
}
}
}
}
if (woize && altlh.replace('#Radio','') != '') {
oldradwo=window.open('//www.rjmprogramming.com.au/esp_ornot_esp.html' + altlh,'_blank','top=0,left=0,width=' + screen.width + 'height=' + screen.height);
}
return altlh;
}
}
function get_doc() {
return '' + doc_URL;
}
function get_docurl() {
return '' + doc_URL;
}
function mod_docurl(fromst, tost) {
if (fromst == '?' && tost.substring(0,1) == '?' && tost.indexOf('=') != -1) {
//alert(tost);
if (doc_URL.indexOf(tost.substring(1).split('=')[0] + '=') == -1) {
doc_URL=doc_URL.replace(fromst, tost);
}
} else {
doc_URL=doc_URL.replace(fromst, tost);
}
}
function onl() {
var spans=[], jspan=0;
for (var ii=1; ii<=numc; ii++) {
if (document.getElementById('td' + ('0000' + ii).slice(-4))) {
document.getElementById('td' + ('0000' + ii).slice(-4)).style.backgroundImage="url('" + urls[eval(ii % eval('' + urls.length))] + "?rand=" + Math.floor(Math.random() * 1987865) + "')";
} else {
setTimeout(function(){ document.getElementById('myswiperow').innerHTML+='<td id="td' + ('0000' + jj).slice(-4) + '" style="min-width:' + amin + 'px;min-height:' + amin + 'px;width:' + amin + 'px;height:' + amin + "px;background:url('" + urls[eval(ii % eval('' + urls.length))] + "?rand=" + Math.floor(Math.random() * 1987865) + "');" + 'background-size:contain;background-repeat:no-repeat;"></td>'; jj++; }, eval(ii * 1000));
}
}
// isradio=YES&completionmatters=y&shuffle=y&youtube=
if (document.URL.toLowerCase().indexOf('isradio=yes') != -1 && document.URL.toLowerCase().indexOf('youtube=') != -1 && document.URL.toLowerCase().indexOf('audio') == -1) {
spans=document.getElementsByTagName('span');
for (jspan=0; jspan<spans.length; jspan++) {
if (('' + spans[jspan].title).indexOf('A-V') != -1) {
//alert('this one invisible ' + spans[jspan].outerHTML);
spans[jspan].style.border='1px solid transparent';
} else if (('' + spans[jspan].title).indexOf('A+V') != -1) {
//alert('this one visible ' + spans[jspan].outerHTML);
spans[jspan].style.border='1px solid red';
}
}
} else if (document.URL.toLowerCase().indexOf('isradio=yes') != -1 && document.URL.toLowerCase().indexOf('youtube=') != -1 && document.URL.toLowerCase().indexOf('audio') != -1) {
spans=document.getElementsByTagName('span');
for (jspan=0; jspan<spans.length; jspan++) {
if (('' + spans[jspan].title).indexOf('A+V') != -1) {
//alert('that one invisible ' + spans[jspan].outerHTML);
spans[jspan].style.border='1px solid transparent';
} else if (('' + spans[jspan].title).indexOf('A-V') != -1) {
//alert('that one visible ' + spans[jspan].outerHTML);
spans[jspan].style.border='1px solid red';
}
}
}
}
function opup() {
if (eval('' + lastop) < 1.0) {
lastop='' + eval(0.1 + eval('' + lastop));
if (eval('' + thingstot.length) > 1) {
for (var inm=1; inm<thingstot.length; inm++) {
if (thingstot[inm].indexOf(lastdid + ':') != -1) {
document.getElementById(thingstot[inm].split(lastdid + ':')[1]).style.opacity='' + lastop;
}
}
}
if (eval('' + lastop) < 1.0) {
setTimeout(opup, 1000);
} else {
lastop='1.0';
for (var inm=1; inm<thingstot.length; inm++) {
if (thingstot[inm].indexOf(lastdid + ':') != -1) {
document.getElementById(thingstot[inm].split(lastdid + ':')[1]).style.opacity='' + lastop;
}
}
lastdid='';
lastop='0.0';
}
}
}
function refresh(ictid) {
var ict=eval('' + ictid.replace('td','').replace(/^0/g,'').replace(/^0/g,'').replace(/^0/g,'').replace(/^0/g,''));
//alert('Refreshing cell ' + ict);
//ict=1;
if (document.getElementById(ictid).outerHTML.split('>')[0].indexOf('url(') != -1) {
if (eval('' + thingstot.length) > 1) {
for (var inm=1; inm<thingstot.length; inm++) {
if (thingstot[inm].indexOf(ictid + ':') != -1) {
lastop='0.0';
lastdid='' + ictid;
document.getElementById(thingstot[inm].split(ictid + ':')[1]).style.opacity='' + lastop;
}
}
setTimeout(opup, 5000);
}
} else {
document.getElementById(ictid).style.cursor='progress';
document.getElementById(ictid).style.backgroundImage="url('" + urls[eval(ict % eval('' + urls.length))] + "?rand=" + Math.floor(Math.random() * 1987865) + "')";
//document.getElementById(ictid).style.cursor='crosshair';
}
}
function checkthen(ict) {
var kj=0;
if (document.getElementById('td' + ('0000' + ict).slice(-4))) {
if (document.getElementById('td' + ('0000' + ict).slice(-4)).outerHTML.indexOf('background-image:') == -1) {
document.getElementById('td' + ('0000' + ict).slice(-4)).style.cursor='progress';
document.getElementById('td' + ('0000' + ict).slice(-4)).style.backgroundImage="url('" + urls[eval(ict % eval('' + urls.length))] + "?rand=" + Math.floor(Math.random() * 1987865) + "')";
//document.getElementById('td' + ('0000' + ict).slice(-4)).style.cursor='crosshair';
for (kj=1; kj<=2; kj++) {
if (document.getElementById('td' + ('0000' + eval(kj + eval('' + ict))).slice(-4))) {
if (document.getElementById('td' + ('0000' + eval(kj + eval('' + ict))).slice(-4)).outerHTML.indexOf('background-image:') == -1) {
document.getElementById('td' + ('0000' + eval(kj + eval('' + ict))).slice(-4)).style.cursor='progress';
document.getElementById('td' + ('0000' + eval(kj + eval('' + ict))).slice(-4)).style.backgroundImage="url('" + urls[eval(eval(kj + eval('' + ict)) % eval('' + urls.length))] + "?rand=" + Math.floor(Math.random() * 1987865) + "')";
//document.getElementById('td' + ('0000' + eval(kj + eval('' + ict))).slice(-4)).style.cursor='crosshair';
}
}
}
}
if (3 == 5 && navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && document.URL.indexOf('audioyoutube=') != -1) {
curtdn=curtdn;
} else {
if (ict != curtdn) {
document.getElementById('td' + ('0000' + ict).slice(-4)).scrollIntoView();
curtdn=eval('' + ict);
}
}
}
}
function swipechk(ev, ismove) {
if (document.URL.indexOf('youtube=') == -1) {
if (ev.touches) {
if (ev.touches[0].pageX) {
pos3 = ev.touches[0].pageX;
pos4 = ev.touches[0].pageY;
} else {
pos3 = ev.touches[0].clientX;
pos4 = ev.touches[0].clientY;
}
//console.log('pos3 = ' + pos3 + ',pos4 = ' + pos4);
} else if (ev.clientX || ev.clientY) {
pos3 = ev.clientX;
pos4 = ev.clientY;
//console.log('pos3 = ' + pos3 + ' ,pos4 = ' + pos4);
} else {
pos3 = ev.pageX;
pos4 = ev.pageY;
//console.log('pos3 = ' + pos3 + ', pos4 = ' + pos4);
}
if (lastpos3 >= 0 && pos3 >= 0 && readyforswipe && ismove) {
if (lastpos3 > pos3) {
if (Math.abs(lastpos3 - pos3) > 5 && Math.abs(lastpos3 - pos3) > Math.abs(lastpos4 - pos4)) {
curtdn--;
if (curtdn <= 0) {
curtdn++;
} else {
checkthen(curtdn);
readyforswipe=false;
setTimeout(function(){ curtdfocus='td' + ('0000' + curtdn).slice(-4); window.scrollBy(-amin, 0); }, 1000);
pos3=-1;
pos4=-1;
lastpos3=-1;
lastpos4=-1;
}
return '';
} else {
return '';
}
} else if (pos3 > lastpos3 && readyforswipe && ismove) {
if (Math.abs(lastpos3 - pos3) > 5 && Math.abs(lastpos3 - pos3) > Math.abs(lastpos4 - pos4)) {
curtdn++;
if (curtdn > eval(100 * numc)) {
curtdn--;
} else {
checkthen(curtdn);
readyforswipe=false;
setTimeout(function(){ curtdfocus='td' + ('0000' + curtdn).slice(-4); window.scrollBy(amin, 0); }, 1000);
pos3=-1;
pos4=-1;
lastpos3=-1;
lastpos4=-1;
}
return '';
} else {
return '';
}
}
}
if (!ismove) {
lastpos3=-1;
lastpos4=-1;
} else if (pos3 >= 0) {
lastpos3=pos3;
lastpos4=pos4;
}
}
}
function getdur(inytid, indef) {
var outdef='' + indef;
return outdef;
}
function grabcontent(idx) {
var mone=1;
var suffix='', starth='', endh='', istarth='', iendh='', disn='', ayes=false, tog='', argaudio='';
if ((';' + idx + ';') != ';;') {
if (gccsofar.indexOf(';' + idx + ';') == -1 || 9 == 9) {
if (gccsofar.indexOf(';' + idx + ';') != -1) {
mone=0;
//document.title=gccsofar;
}
//gccount++;
//if (completionmatters) { // && gccount < eval('' + vididslength)) {
// document.title='' + gccount + ' Vs ' + vididslength + ' vs ' + gccsofar;
//}
gccsofar+=';' + idx + ';';
}
}
if (firstidx == -1) {
if (idx > 0) {
firstidx=eval('' + idx);
ffidx=firstidx;
firstduris=getdur(vidids[idx],'22234');
}
}
if ((1 == 1 || !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) && document.URL.indexOf('isradio=') != -1 && document.URL.indexOf('youtube=') != -1 && (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || document.URL.indexOf('audioyoutube=') == -1)) {
if (document.URL.indexOf('audioyoutube=') != -1) {
argaudio='&justaudio=';
//alert('Audio here');
isaudio=false;
}
ayes=true;
tog='td0001';
if (eval('' + idx) > 1) {
starth='!--';
endh='--';
disn='display:none;';
}
}
//alert(('' + vidids[idx]));
//if (('' + vidids[idx]).toLowerCase() == 'cannotenda2') {
// alert('Where ' + vidids[0] + ' idx=' + idx + ' vs ' + eval('' + vididslength));
//}
if (vidids[0] != '') {
if (idx < eval('' + vididslength)) {
mone=0; // new line
gccount+=mone; // new position
var cellno=eval(1 + eval('' + idx));
if (eval('' + vidids[idx].length) == 11) {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
suffix='<br><' + starth + 'div id="div' + ('0000' + eval(1 + idx)).slice(-4) + '"></div' + endh + '>';
}
if (isaudio) {
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':if' + idx);
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':sp' + idx);
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':a' + idx);
if (suffix != '') {
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':div' + + ('0000' + eval(1 + idx)).slice(-4));
}
if (eval('' + idx) == 1 && ayes) {
if (('' + window.sessionStorage.getItem('loop_' + vidids[idx])).replace(/^undefined/g,'').replace(/^null/g,'').trim() != '') {
window.sessionStorage.removeItem('loop_' + vidids[idx]);
}
//if (vidids[idx].toLowerCase() == 'cannotenda2') { alert('Here'); }
if (vidids[idx].toLowerCase() == 'cannotenda2') {
//alert('Here');
gtdzero='><' + istarth + 'iframe onload=pcheckif(this); id=if' + idx + ' style="display:none;zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=0Gz_7am23rk' + argshuffle + argaudio + '&youtube_duration=' + getdur('0Gz_7am23rk','22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur('0Gz_7am23rk','22234') + '&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '><br><' + starth + 'span id=sp' + idx + ' style="float:top;"><a id=a' + idx + ' target="_blank" title="?" class="audioytmaybeplay" href="https://www.youtube.com/watch?v=' + vidids[idx] + '" rel="noopener" alt="Audio ' + cellno + '"></a></span' + endh + '>' + suffix + '<br><br></td>';
} else {
gtdzero='><' + istarth + 'iframe onload=checkif(this); id=if' + idx + ' style="display:none;zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=' + vidids[idx] + argshuffle + argaudio + '&youtube_duration=' + getdur(vidids[idx],'22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur(vidids[idx],'22234') + '&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '><br><' + starth + 'span id=sp' + idx + ' style="float:top;"><a id=a' + idx + ' target="_blank" title="?" class="audioytmaybeplay" href="https://www.youtube.com/watch?v=' + vidids[idx] + '" rel="noopener" alt="Audio ' + cellno + '"></a></span' + endh + '>' + suffix + '<br><br></td>';
}
if (tog != '') { if (document.getElementById(tog)) { document.getElementById(tog).style.cursor='progress'; } }
return ' ';
}
if (tog != '') { if (document.getElementById(tog)) { document.getElementById(tog).style.cursor='progress'; } }
if (vidids[idx].toLowerCase() == 'cannotenda2') {
// alert('Here2');
return '<' + istarth + 'iframe onload=pcheckif(this); id=if' + idx + ' style="display:none;zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=0Gz_7am23rk' + argshuffle + argaudio + '&youtube_duration=' + getdur('0Gz_7am23rk','22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur('0Gz_7am23rk','22234') + '&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '><br><' + starth + 'span id=sp' + idx + ' style="float:top;"><a id=a' + idx + ' target="_blank" title="?" class="audioytmaybeplay" href="https://www.youtube.com/watch?v=' + vidids[idx] + '" rel="noopener" alt="Audio ' + cellno + '"></a></span' + endh + '>' + suffix + '<br><br>';
} else {
return '<' + istarth + 'iframe onload=checkif(this); id=if' + idx + ' style="display:none;zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=' + vidids[idx] + argshuffle + argaudio + '&youtube_duration=' + getdur(vidids[idx],'22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur(vidids[idx],'22234') + '&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '><br><' + starth + 'span id=sp' + idx + ' style="float:top;"><a id=a' + idx + ' target="_blank" title="?" class="audioytmaybeplay" href="https://www.youtube.com/watch?v=' + vidids[idx] + '" rel="noopener" alt="Audio ' + cellno + '"></a></span' + endh + '>' + suffix + '<br><br>';
}
} else {
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':if' + idx);
if (suffix != '') {
thingstot.push('td' + ('0000' + eval(1 + idx)).slice(-4) + ':div' + + ('0000' + eval(1 + idx)).slice(-4));
}
if (eval('' + idx) == 1 && ayes) {
if (('' + window.sessionStorage.getItem('loop_' + vidids[idx])).replace(/^undefined/g,'').replace(/^null/g,'').trim() != '') {
window.sessionStorage.removeItem('loop_' + vidids[idx]);
}
//if (vidids[idx].toLowerCase() == 'cannotenda2') { alert('HerE'); }
if (vidids[idx].toLowerCase() == 'cannotenda2') {
//alert('HeReu');
gtdzero='><' + istarth + 'iframe onload=zzzcheckif(this); id=if' + idx + ' style="' + disn + 'zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=0Gz_7am23rk' + argshuffle + argaudio + '&youtube_duration=' + getdur('0Gz_7am23rk','22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur('0Gz_7am23rk','22234') + '&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '>' + suffix + '</td>';
} else {
gtdzero='><' + istarth + 'iframe onload=zcheckif(this); id=if' + idx + ' style="' + disn + 'zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=' + vidids[idx] + argshuffle + argaudio + '&youtube_duration=' + getdur(vidids[idx],'22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur(vidids[idx],'22234') + '&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '>' + suffix + '</td>';
}
if (tog != '') { if (document.getElementById(tog)) { document.getElementById(tog).style.cursor='progress'; } }
return ' ';
}
if (tog != '') { if (document.getElementById(tog)) { document.getElementById(tog).style.cursor='progress'; } }
if (vidids[idx].toLowerCase() == 'cannotenda2') {
//alert('HERe3 ' + istarth);
return '<' + istarth + 'iframe onload=zzzcheckif(this); id=if' + idx + ' style="' + disn + 'zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=0Gz_7am23rk' + argshuffle + argaudio + '&youtube_duration=' + getdur('0Gz_7am23rk','22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur('0Gz_7am23rk','22234') + '&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '>' + suffix;
} else {
return '<' + istarth + 'iframe onload=zcheckif(this); id=if' + idx + ' style="' + disn + 'zoom:0.7;width:100%;height:70%;float:top;" src="//www.rjmprogramming.com.au/HTMLCSS/karaoke_youtube_api.htm?youtubeid=' + vidids[idx] + argshuffle + argaudio + '&youtube_duration=' + getdur(vidids[idx],'22234') + '&unknowndur=y&email=&email=&emoji=on&c0=off&i0=0&j0=' + getdur(vidids[idx],'22234') + '&i1=&j1=&i2=&j2=&i3=&j3=&i4=&j4=&i5=&j5=&i6=&j6=&i7=&j7=&i8=&j8=&i9=&j9=&i10=&j10=&i11=&j11=&i12=&j12=&i13=&j13=&i14=&j14=&i15=&j15=&i16=&j16=&i17=&j17=&i18=&j18=&i19=&j19=&i20=&j20=&i21=&j21=&i22=&j22=&i23=&j23=&i24=&j24=&i25=&j25=&i26=&j26=&i27=&j27=&i28=&j28=&i29=&j29=&rand=' + Math.floor(Math.random() * 1989786) + relxh + '#http"></iframe' + iendh + '>' + suffix;
}
}
}
}
}
if (tog != '') { if (document.getElementById(tog)) { document.getElementById(tog).style.cursor='progress'; } }
return '';
}
function checkarb(iois) {
var aconto=null;
aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
//alert('4:' + asrequestedbystuff);
asrequestedbystuff+=aconto.body.innerText;
//alert('44:' + asrequestedbystuff);
}
}
}
function checkiflater(iois) {
var ief=0;
var aconto=null;
try {
aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var hones=aconto.getElementsByTagName('h1');
if (eval('' + hones.length) > 0) {
if (hones[0].innerHTML.indexOf('Karaoke via YouTube') != 0) {
if (document.getElementById('a' + iois.id.replace('if',''))) {
document.getElementById('a' + iois.id.replace('if','')).innerHTML=hones[0].innerHTML;
document.getElementById('a' + iois.id.replace('if','')).className='audioytplay';
document.getElementById('a' + iois.id.replace('if','')).title=hones[0].innerHTML;
}
if (!doonce) {
doonce=true;
setTimeout(audioytlook, 10000);
}
}
}
var tyembeds=aconto.body.innerHTML.split('/embed/');
//alert('HEREx ' + tyembeds[1]);
for (var it=1; it<tyembeds.length; it++) {
if (ytlist.trim() == '') {
//if (wsofar != '' && dsofar != '') { alert('Dsofar=' + dsofar + ',' + wsofar); }
ytlist+='' + tyembeds[it].substring(0,11);
ief++;
} else {
//if (wsofar != '' && dsofar != '') { alert('DsoFar=' + dsofar + ',' + wsofar); }
ytlist+=',' + tyembeds[it].substring(0,11);
ief++;
}
}
if (completionmatters && gccount < eval('' + vididslength)) {
if (!pho) {
//top.document.title='yes';
perhapshangon();
}
} else {
if (ytlist != '') { if (1 == 1 && eval('' + vidids.length) >= 1) { if (1 == 4) { alert('gccount=' + gccount + ' and vidids.length=' + vididslength); } } if ((document.URL + ('' + location.hash)).indexOf('independent=') == -1 || prefix.indexOf('completionmatter') != -1) { if (!setoff) { setoff=true; setTimeout(function(){ location.href=maxto(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix))); }, 5000); } } }
}
}
}
} catch(hgfdhg) { }
}
function maxto(inuis) {
var outuis=inuis;
while (eval('' + outuis.length) >= 650) {
outuis=outuis.substring(0, eval(-14 + eval('' + outuis.length)));
}
//alert(outuis.split('?')[1]);
return outuis;
}
function zcheckif(iois) {
var imore=1, aaconto=null;
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
aaconto=aconto;
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
if (template == '') { templatye='' + iois.src; }
try {
aconto.getElementById('c0').checked=true;
while (aconto.getElementById('c' + imore)) {
if (aconto.getElementById('j' + imore)) {
if (('' + aconto.getElementById('j' + imore).value).replace(/0/g,'').replace('.','') != '') {
aconto.getElementById('c' + imore).checked=true;
} else if (iois.src.indexOf('&j' + imore + '=') != -1 && iois.src.indexOf('&j' + imore + '=&') == -1) {
aconto.getElementById('i' + imore).value=decodeURIComponent(iois.src.split('&i' + imore + '=')[1].split('&')[0]);
aconto.getElementById('j' + imore).value=decodeURIComponent(iois.src.split('&j' + imore + '=')[1].split('&')[0]);
aconto.getElementById('c' + imore).checked=true;
aaconto.checkval(aconto.getElementById('i' + imore) && imore > 0);
//} else if (iois.src.indexOf('&j' + imore + '=') != -1 && iois.src.indexOf('&j' + imore + '=22234&') == -1) {
// alert('found ' + imore);
}
}
imore++;
}
setTimeout(function(){ var prefar=aconto.getElementById('youtubeid').value + ';' + aconto.getElementById('youtube_duration').value + ';'; if (sofar.indexOf(prefar) == -1) { sofar+=fixone(prefar); } }, 100);
//setTimeout(function(){ var prefar=aconto.getElementById('youtubeid').value + ';' + aconto.getElementById('j0').value + ';'; if (sofar.indexOf(prefar) == -1) { sofar+=fixone(prefar); } }, 100);
} catch(hfgd) {
setTimeout(function(){ xcheckif(document.getElementById(iois.id)); }, 6000);
}
}
}
}
function sparecheckif(iois) {
var imore=1, aaconto=null;
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null && iois.src.indexOf('youtubeid=&') == -1) {
aaconto=aconto;
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
try {
aconto.getElementById('c0').checked=true;
while (aconto.getElementById('c' + imore)) {
if (aconto.getElementById('j' + imore)) {
if (('' + aconto.getElementById('j' + imore).value).replace(/0/g,'').replace('.','') != '') {
aconto.getElementById('c' + imore).checked=true;
} else if (iois.src.indexOf('&j' + imore + '=') != -1 && iois.src.indexOf('&j' + imore + '=&') == -1) {
aconto.getElementById('i' + imore).value=decodeURIComponent(iois.src.split('&i' + imore + '=')[1].split('&')[0]);
aconto.getElementById('j' + imore).value=decodeURIComponent(iois.src.split('&j' + imore + '=')[1].split('&')[0]);
aconto.getElementById('c' + imore).checked=true;
aaconto.checkval(aconto.getElementById('i' + imore) && imore > 0);
//} else if (iois.src.indexOf('&j' + imore + '=') != -1 && iois.src.indexOf('&j' + imore + '=22234&') == -1) {
// alert('found ' + imore);
}
}
imore++;
}
setTimeout(function(){ var prefar=aconto.getElementById('youtubeid').value + ';' + aconto.getElementById('youtube_duration').value + ';'; if (sofar.indexOf(prefar) == -1) { sofar+=fixone(prefar); } }, 100);
//setTimeout(function(){ var prefar=aconto.getElementById('youtubeid').value + ';' + aconto.getElementById('j0').value + ';'; if (sofar.indexOf(prefar) == -1) { sofar+=fixone(prefar); } }, 100);
} catch(hfgd) {
setTimeout(function(){ xcheckif(document.getElementById(iois.id)); }, 6000);
}
}
}
}
function zzzcheckif(iois) {
var imore=1, aaconto=null;
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
aaconto=aconto;
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
try {
aconto.getElementById('c0').checked=true;
while (aconto.getElementById('c' + imore)) {
//alert(0);
if (aconto.getElementById('j' + imore)) {
//alert(9);
if (('' + aconto.getElementById('j' + imore).value).replace(/0/g,'').replace('.','') != '') {
//alert(1);
aconto.getElementById('c' + imore).checked=true;
} else if (iois.src.indexOf('&j' + imore + '=') != -1 && iois.src.indexOf('&j' + imore + '=&') == -1) {
//alert(2);
aconto.getElementById('i' + imore).value=decodeURIComponent(iois.src.split('&i' + imore + '=')[1].split('&')[0]);
aconto.getElementById('j' + imore).value=decodeURIComponent(iois.src.split('&j' + imore + '=')[1].split('&')[0]);
aconto.getElementById('c' + imore).checked=true;
//alert(aconto.getElementById('i' + imore).value);
aaconto.checkval(aconto.getElementById('i' + imore));
//} else if (iois.src.indexOf('&j' + imore + '=') != -1 && iois.src.indexOf('&j' + imore + '=22234&') == -1) {
// alert('foUnd ' + imore);
}
}
imore++;
}
//alert(8);
setTimeout(function(){ var prefar=aconto.getElementById('youtubeid').value + ';' + aconto.getElementById('youtube_duration').value + ';'; if (sofar.indexOf(prefar) == -1) { sofar+=fixone(prefar); } }, 100);
} catch(hfgd) {
setTimeout(function(){ xxxcheckif(document.getElementById(iois.id)); }, 6000);
//alert(85);
}
}
}
}
function xcheckif(iois) {
var imore=1, aaconto=null;
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
aaconto=aconto;
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
try {
aconto.getElementById('c0').checked=true;
while (aconto.getElementById('c' + imore)) {
if (aconto.getElementById('j' + imore)) {
if (('' + aconto.getElementById('j' + imore).value).replace(/0/g,'').replace('.','') != '') {
aconto.getElementById('c' + imore).checked=true;
}
}
imore++;
}
setTimeout(function(){ var prefar=aconto.getElementById('youtubeid').value + ';' + aconto.getElementById('youtube_duration').value + ';'; if (sofar.indexOf(prefar) == -1) { sofar+=fixone(prefar); } }, 100);
} catch(hfgd) {
}
}
}
}
function xxxcheckif(iois) {
var imore=1, aaconto=null;
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
aaconto=aconto;
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
try {
aconto.getElementById('c0').checked=true;
while (aconto.getElementById('c' + imore)) {
if (aconto.getElementById('j' + imore)) {
if (('' + aconto.getElementById('j' + imore).value).replace(/0/g,'').replace('.','') != '') {
aconto.getElementById('c' + imore).checked=true;
}
}
imore++;
}
//alert(87);
setTimeout(function(){ var prefar=aconto.getElementById('youtubeid').value + ';' + aconto.getElementById('youtube_duration').value + ';'; if (sofar.indexOf(prefar) == -1) { sofar+=fixone(prefar); } }, 100);
} catch(hfgd) {
}
}
}
}
function checkif(iois) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var hones=aconto.getElementsByTagName('h1');
if (eval('' + hones.length) > 0) {
if (hones[0].innerHTML.indexOf('Karaoke via YouTube') == 0) {
ioisid='' + iois.id;
//setTimeout(function(){ checkiflater(document.getElementById(iois.id)); }, 26000); // used to be 6000
setTimeout(perhapshangon, 26000); // used to be 6000
} else {
document.getElementById('a' + iois.id.replace('if','')).innerHTML=hones[0].innerHTML;
document.getElementById('a' + iois.id.replace('if','')).className='audioytplay';
document.getElementById('a' + iois.id.replace('if','')).title=hones[0].innerHTML;
if (!doonce) {
doonce=true;
setTimeout(audioytlook, 10000);
}
}
}
}
}
}
function perhapshangon() {
pho=true;
if (completionmatters && gccount < eval('' + vididslength)) {
//document.title='' + gccount + ' Vs ' + vididslength;
setTimeout(perhapshangon, 5000);
} else if (gccount < eval('' + idealis) && !completionmatters) {
idealis--;
setTimeout(perhapshangon, 5000);
} else {
//document.title='' + gccount + ' vs ' + vididslength;
checkiflater(document.getElementById(ioisid));
}
}
function pcheckif(iois) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var hones=aconto.getElementsByTagName('h1');
if (eval('' + hones.length) > 0) {
if (hones[0].innerHTML.indexOf('Karaoke via YouTube') == 0) {
ioisid='' + iois.id;
//setTimeout(function(){ checkiflater(document.getElementById(iois.id)); }, 26000); // used to be 6000
setTimeout(perhapshangon, 26000); // used to be 6000
} else {
//alert('yes okay');
document.getElementById('a' + iois.id.replace('if','')).innerHTML=hones[0].innerHTML;
document.getElementById('a' + iois.id.replace('if','')).className='audioytplay';
document.getElementById('a' + iois.id.replace('if','')).title=hones[0].innerHTML;
if (!doonce) {
doonce=true;
setTimeout(audioytlook, 10000);
}
}
}
}
}
}
function split_embed(iois) {
var isf=0, itf=0;
var iso=-1;
var sxh=16000;
var dsa=dsofar.trim().split(',');
var wsa=wsofar.trim().split(',');
if (('' + location.hash).indexOf('independent') != -1) { sxh=26000; independent=false; iso=0; }
if (('' + location.hash).indexOf('independentaudio') != -1) { if (prefix.indexOf('&justaudio=y') == -1) { prefix=prefix.replace('&','&justaudio=y&'); } }
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var tyembeds=aconto.body.innerHTML.split('/embed/');
if (eval('' + tyembeds.length) <= 1) { setTimeout(function(){ checkiflater(document.getElementById(iois.id)); }, sxh); } else {
if (eval('' + dsa.length) > 1) {
for (itf=0; itf<dsa.length; itf++) {
if (ytlist.indexOf('' + dsa[itf]) == -1) {
if (ytlist.trim() == '') {
ytlist+='' + dsa[itf].trim().substring(0,11);
} else {
ytlist+=',' + dsa[itf].trim().substring(0,11);
}
}
}
}
if (eval('' + wsa.length) > 1) {
for (itf=0; itf<wsa.length; itf++) {
if (ytlist.indexOf('' + wsa[itf]) == -1) {
if (ytlist.trim() == '') {
ytlist+='' + wsa[itf].trim().substring(0,11);
} else {
ytlist+=',' + wsa[itf].trim().substring(0,11);
}
}
}
}
for (var it=1; it<tyembeds.length; it++) {
if (iso < 0 || iso < 9) {
if (iso >= 0) { iso++ }
if (ytlist.trim() == '') {
//if (wsofar != '' && dsofar != '') { alert('DsofaR=' + dsofar + ',' + wsofar); }
ytlist+='' + tyembeds[it].substring(0,11);
isf++;
} else {
//if (wsofar != '' && dsofar != '') { alert('DsofAr=' + dsofar + ',' + wsofar); }
ytlist+=',' + tyembeds[it].substring(0,11);
isf++;
}
}
}
if (ytlist != '') {
if (prefix.indexOf('isradio=') != -1 && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (ytwo) {
if (!ytwo.closed) {
ytwo.close();
ytwo=null;
}
ytwo=null;
}
if (!independent) {
prefix='isradio=YES&completionmatters=y' + argshuffle + '&';
if (eval('' + dsa.length) > 1 && eval('' + wsa.length) > 1) {
var anarr=ytlist.split(',');
anarr.sort();
ytlist='' + anarr[0];
for (var inb=1; inb<anarr.length; inb++) {
ytlist+=',' + anarr[inb];
}
}
}
if (!didothers) {
//alert(1);
ytwo=window.open(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim()) + ('' + document.getElementById('bdiscoavb').getAttribute('data-you')).replace(/^undefined$/g,'').replace(/^null$/g,''),'_blank','top=0,left=0,width=' + screen.width + ',height=' + screen.height);
} else {
//alert(11);
setTimeout(function(){
ytwo=window.open(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim()) + ('' + document.getElementById('bdiscoavb').getAttribute('data-you')).replace(/^undefined$/g,'').replace(/^null$/g,''),'_blank','top=0,left=0,width=' + screen.width + ',height=' + screen.height);
}, 4000);
}
} else {
if (!independent) {
prefix='isradio=YES&completionmatters=y' + argshuffle + '&';
}
if (!didothers) {
//alert(111);
if (eval('' + vidids.length) >= 1) { if (3 == 4) { alert('gCcount=' + gccount + ' and vidids.length=' + vidids.length + ' ' + tylist.trim().split(',').length + ' ' + document.URL); } }
if ((document.URL + ('' + location.hash)).indexOf('independent=') == -1 || prefix.indexOf('completionmatter') != -1) { if (!setoff) { setoff=true; setTimeout(function(){ location.href=maxto(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim())); }, 6000); } }
} else {
//alert(1111);
setTimeout(function(){
if (eval('' + vidids.length) >= 1) { if (5 == 6) { alert('gCcounT=' + gccount + ' and vidids.length=' + vidids.length + ' ' + tylist.trim().split(',').length + ' ' + document.URL); } }
if ((document.URL + ('' + location.hash)).indexOf('independent=') == -1 || prefix.indexOf('completionmatter') != -1) { if (!setoff) { setoff=true; setTimeout(function(){ location.href=maxto(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim())); }, 6000); } }
}, 4000);
}
//}
}
}
}
}
}
}
function split_embed_two(iois) {
//didothers=true;
var iso=-1;
var sxh=16000;
if (('' + location.hash).indexOf('independent') != -1) { sxh=26000; independent=false; iso=0; }
if (('' + location.hash).indexOf('independentaudio') != -1) { if (prefix.indexOf('&justaudio=y') == -1) { prefix=prefix.replace('&','&justaudio=y&'); } }
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var tyembeds=aconto.body.innerHTML.split('/embed/');
if (eval('' + tyembeds.length) <= 1) { setTimeout(function(){ checkiflater(document.getElementById(iois.id)); }, sxh); } else {
for (var it=1; it<tyembeds.length; it++) {
if (iso < 0 || iso < 9) {
if (iso >= 0) { iso++ }
if (wsofar == ' ') {
wsofar='' + tyembeds[it].substring(0,11);
} else if (wsofar.trim() != '') {
wsofar+=',' + tyembeds[it].substring(0,11);
}
if (ytlist.trim() == '') {
ytlist+='' + tyembeds[it].substring(0,11);
} else {
ytlist+=',' + tyembeds[it].substring(0,11);
}
}
}
if (ytlist != '') {
if (prefix.indexOf('isradio=') != -1 && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (ytwo) {
if (!ytwo.closed) {
ytwo.close();
ytwo=null;
}
ytwo=null;
}
if (1 == 5) {
ytwo=window.open(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim()),'_blank','top=0,left=0,width=' + screen.width + ',height=' + screen.height);
}
} else {
if (1 == 5) {
location.href=document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim());
}
}
}
}
}
}
}
function bordersmaybe() {
var spans=[], jspan=0;
var iso=-1;
if (document.URL.indexOf('isradio=YES&completionmatters=y&shuffle=y&youtube=') != -1 || document.URL.indexOf('isradio=YES&completionmatters=y&justaudio=y&shuffle=y&youtube=') != -1) {
spans=document.getElementsByTagName('span');
for (jspan=0; jspan<spans.length; jspan++) {
if ((prefix + document.URL).indexOf('justaudio=') != -1) {
if (('' + spans[jspan].title).indexOf('A-V')) {
spans[jspan].style.border='1px solid red';
}
} else {
if (('' + spans[jspan].title).indexOf('A+V')) {
spans[jspan].style.border='1px solid red';
}
}
}
}
}
function split_embed_three(iois) {
//didothers=true;
var spans=[], jspan=0;
var iso=-1;
var sxh=16000;
if (('' + location.hash).indexOf('independent') != -1) { sxh=26000; independent=false; iso=0; }
if (('' + location.hash).indexOf('independentaudio') != -1) { if (prefix.indexOf('&justaudio=y') == -1) { prefix=prefix.replace('&','&justaudio=y&'); } }
if (!independent) {
spans=document.getElementsByTagName('span');
for (jspan=0; jspan<spans.length; jspan++) {
if ((prefix + document.URL).indexOf('justaudio=') != -1) {
if (('' + spans[jspan].title).indexOf('A-V')) {
spans[jspan].style.border='1px solid red';
}
} else {
if (('' + spans[jspan].title).indexOf('A+V')) {
spans[jspan].style.border='1px solid red';
}
}
}
}
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body != null) {
var tyembeds=aconto.body.innerHTML.split('/embed/');
if (eval('' + tyembeds.length) <= 1) { setTimeout(function(){ checkiflater(document.getElementById(iois.id)); }, sxh); } else {
for (var it=1; it<tyembeds.length; it++) {
if (iso < 0 || iso < 9) {
if (iso >= 0) { iso++ }
if (dsofar == ' ') {
dsofar='' + tyembeds[it].substring(0,11);
} else if (dsofar.trim() != '') {
dsofar+=',' + tyembeds[it].substring(0,11);
}
if (ytlist.trim() == '') {
ytlist+='' + tyembeds[it].substring(0,11);
} else {
ytlist+=',' + tyembeds[it].substring(0,11);
}
}
}
if (ytlist != '') {
if (prefix.indexOf('isradio=') != -1 && !navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (ytwo) {
if (!ytwo.closed) {
ytwo.close();
ytwo=null;
}
ytwo=null;
}
if (1 == 5) {
ytwo=window.open(document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim()),'_blank','top=0,left=0,width=' + screen.width + ',height=' + screen.height);
}
} else {
if (1 == 5) {
location.href=document.URL.split('?')[0].split('#')[0] + '?' + prefix + 'youtube=' + encodeURIComponent(extraatendmaybe(ytlist.trim(),prefix).trim());
}
}
}
}
}
}
}
function showStuff() {
var dod=true, yytlist='';
if (dsofar.trim() != '') {
dod=false;
}
if (czhr != null) {
if (czhr.readyState == 4) {
if (czhr.status == 200) {
var tyembeds=czhr.responseText.split('/embed/');
//var qwr=prompt('' + tyembeds.length + ':' + czhr.responseText, czhr.responseText);
if (eval('' + tyembeds.length) > 1) {
for (var it=1; it<tyembeds.length; it++) {
if (yytlist.trim() == '') {
yytlist+='' + tyembeds[it].substring(0,11);
if (dod) {
dsofar=yytlist;
} else {
wsofar=yytlist;
}
} else {
yytlist+=',' + tyembeds[it].substring(0,11);
if (dod) {
dsofar=yytlist;
} else {
wsofar=yytlist;
}
}
}
}
}
}
}
}
function mod_gtdzero(ineleven, indur, intit) {
kmore=1;
if (document.getElementById('divtitles').innerHTML.indexOf(ineleven) != -1) { kmore=0; }
// &j0=22234&c1=off&i1=0%7CI_izvAbhExY%23Will%20be%20filled%20in&j1=-1&c2=on&c2=on&i2=0%7CMGemtjVtfZM&j2=172&c3=on&c3=on&i3=0%7CN-aK6JnyFmk&j3=158&c4=on&c4=on&i4=0%7CPC2HkP5gR2g&j4=367&c5=on&c5=on&i5=0%7CRuMnXi7L7wE&j5=327&c6=on&c6=on&i6=0%7CWMRzQkkAx5I&j6=201&c7=on&c7=on&i7=0%7CWrcwRt6J32o&j7=281&c8=on&c8=on&i8=0%7CXKuJUxGntRI&j8=211&c9=on&c9=on&i9=0%7CYTaWayUE5XA&j9=244&c10=on&c10=on&i10=0%7C_uSmds1pCKg&j10=124&c11=on&i11=0%7CcVgFvYcOKC8&j11=333&c12=on&i12=0%7CccenFp_3kq8&j12=254&c13=on&c13=on&i13=0%7CdwxjpIJm9JM&j13=242&c14=on&i14=0%7CeBpYgpF1bqQ&j14=210&c15=on&c15=on&i15=0%7CerQUlp6GYno&j15=182&c16=on&c16=on&i16=0%7CgQ8O9SidZbs&j16=173&c17=on&i17=0%7Ci9_e0rRvyz8&j17=373&c18=on&i18=0%7Cm_oPMpNY9Rc&j18=219&c19=off&i19=0%7CrUdw7V-FC_Q&j19=22234.0&c20=off&i20=0%7CsukxmZcDGlU&j20=22234.0&c21=off&i21=0%7CvAI24i825_E&j21=22234.0&c22=on&i22=0%7CwKGwiH2bw9s&j22=141&c23=off&i23=0%7CxfmZRiePkEM&j23=22234.0&c24=off&i24=0%7CyEbaeLv-aOo&j24=22234.0&c25=off&i25=0%7Cz-2_OstpR5c&j25=22234.0&c26=off&i26=0%7CzROIlspgOjM&j26=22234.0&i27=&j27=&i28=&j28=&i29=&j29=&rand=560460#http"></iframe></td>">
//if (ineleven == 'I_izvAbhExY') {
//document.getElementById('navig').value=ineleven + ' ' + indur + ' ... ' + gtdzero.split('&j0=')[1];
// }
if (gelev != '' && gelev.trim() == gelev && gelev == ineleven) {
gduris='' + indur;
gtitis='' + intit;
if (gtdzero.indexOf(gelev + '%23Will%20be%20filled%20in&j') != -1 && gtdzero.indexOf('=-1&') != -1) {
gtdzero=gtdzero.replace('%23Will%20be%20filled%20in','').replace('=-1&', '=' + indur + '&').replace('&c1=off','&c1=on');
}
document.getElementById('navig').value=ineleven + ' ' + indur + ' ... ' + gtdzero.split('&j0=')[1];
if (gtdzero.indexOf(gelev + '&j') != -1) {
if (gtdzero.split(gelev + '&j')[1].split('=')[1].indexOf('22234') == 0 && ('' + gduris).indexOf('22234') == -1) {
if (gtdzero.split(gelev + '&j')[1].split('=')[0] != '0') {
gtdzero=gtdzero.replace('&c' + gtdzero.split(gelev + '&j')[1].split('=')[0] + '=off', '&c' + gtdzero.split(gelev + '&j')[1].split('=')[0] + '=on');
gtdzero=gtdzero.replace('&j' + gtdzero.split(gelev + '&j')[1].split('=')[0] + '=22234' + gtdzero.split(gelev + '&j')[1].split('=')[1].split('22234')[1].split('&')[0] + '&', '&j' + gtdzero.split(gelev + '&j')[1].split('=')[0] + '=' + gduris + '&');
gelev+=' ';
} else {
gelev+=' ';
}
} else if ((gtdzero.split(gelev + '&j')[1].split('=')[1].substring(0,1) < '0' || gtdzero.split(gelev + '&j')[1].split('=')[1].substring(0,1) > '9') && ('' + gduris).indexOf('22234') == -1) {
if (gtdzero.split(gelev + '&j')[1].split('=')[0] != '0') {
gtdzero=gtdzero.replace('&c' + gtdzero.split(gelev + '&j')[1].split('=')[0] + '=off', '&c' + gtdzero.split(gelev + '&j')[1].split('=')[0] + '=on');
gtdzero=gtdzero.replace('&j' + gtdzero.split(gelev + '&j')[1].split('=')[0] + '=' + gtdzero.split(gelev + '&j')[1].split('=')[1].split('&')[0] + '&', '&j' + gtdzero.split(gelev + '&j')[1].split('=')[0] + '=' + gduris + '&');
gelev+=' ';
} else {
gelev+=' ';
}
}
} else if (gtdzero.split(gelev + '%23Will%20be%20filled%20in&j') != -1) {
try {
if ((gtdzero.split(gelev + '%23Will%20be%20filled%20in&j')[1].split('=')[1].substring(0,1) < '0' || gtdzero.split(gelev + '%23Will%20be%20filled%20in&j')[1].split('=')[1].substring(0,1) > '9') && ('' + gduris).indexOf('22234') == -1) {
if (gtdzero.split(gelev + '%23Will%20be%20filled%20in&j')[1].split('=')[0] != '0') {
gtdzero=gtdzero.replace('&c' + gtdzero.split(gelev + '%23Will%20be%20filled%20in&&j')[1].split('=')[0] + '=off', '&c' + gtdzero.split(gelev + '%23Will%20be%20filled%20in&&j')[1].split('=')[0] + '=on');
gtdzero=gtdzero.replace('%23Will%20be%20filled%20in&j' + gtdzero.split(gelev + '%23Will%20be%20filled%20in&j')[1].split('=')[0] + '=' + gtdzero.split(gelev + '&j')[1].split('=')[1].split('&')[0] + '&', '&j' + gtdzero.split(gelev + '%23Will%20be%20filled%20in&j')[1].split('=')[0] + '=' + gduris + '&');
gelev+=' ';
} else {
gelev+=' ';
}
}
} catch(ytryutr) { gelev=''; }
}
}
if (gtdzero.indexOf(ineleven + '&j') != -1) {
if (gtdzero.split(ineleven + '&j')[1].split('=')[1].indexOf('22234') == 0 && ('' + indur).indexOf('22234') == -1) {
if (gtdzero.split(ineleven + '&j')[1].split('=')[0] != '0') {
gtdzero=gtdzero.replace('&c' + gtdzero.split(ineleven + '&j')[1].split('=')[0] + '=off', '&c' + gtdzero.split(ineleven + '&j')[1].split('=')[0] + '=on');
gtdzero=gtdzero.replace('&j' + gtdzero.split(ineleven + '&j')[1].split('=')[0] + '=22234' + gtdzero.split(ineleven + '&j')[1].split('=')[1].split('22234')[1].split('&')[0] + '&', '&j' + gtdzero.split(ineleven + '&j')[1].split('=')[0] + '=' + indur + '&');
}
} else if ((gtdzero.split(ineleven + '&j')[1].split('=')[1].substring(0,1) < '0' || gtdzero.split(ineleven + '&j')[1].split('=')[1].substring(0,1) > '9') && ('' + indur).indexOf('22234') == -1) {
if (gtdzero.split(ineleven + '&j')[1].split('=')[0] != '0') {
gtdzero=gtdzero.replace('&c' + gtdzero.split(ineleven + '&j')[1].split('=')[0] + '=off', '&c' + gtdzero.split(ineleven + '&j')[1].split('=')[0] + '=on');
gtdzero=gtdzero.replace('&j' + gtdzero.split(ineleven + '&j')[1].split('=')[0] + '=' + gtdzero.split(ineleven + '&j')[1].split('=')[1].split('&')[0] + '&', '&j' + gtdzero.split(ineleven + '&j')[1].split('=')[0] + '=' + indur + '&');
}
}
} else if (gtdzero.split(ineleven + '%23Will%20be%20filled%20in&j') != -1) {
try {
if ((gtdzero.split(ineleven + '%23Will%20be%20filled%20in&j')[1].split('=')[1].substring(0,1) < '0' || gtdzero.split(ineleven + '%23Will%20be%20filled%20in&j')[1].split('=')[1].substring(0,1) > '9') && ('' + indur).indexOf('22234') == -1) {
if (gtdzero.split(ineleven + '%23Will%20be%20filled%20in&j')[1].split('=')[0] != '0') {
gtdzero=gtdzero.replace('&c' + gtdzero.split(ineleven + '%23Will%20be%20filled%20in&&j')[1].split('=')[0] + '=off', '&c' + gtdzero.split(ineleven + '%23Will%20be%20filled%20in&&j')[1].split('=')[0] + '=on');
gtdzero=gtdzero.replace('%23Will%20be%20filled%20in&j' + gtdzero.split(ineleven + '%23Will%20be%20filled%20in&j')[1].split('=')[0] + '=' + gtdzero.split(ineleven + '&j')[1].split('=')[1].split('&')[0] + '&', '&j' + gtdzero.split(ineleven + '%23Will%20be%20filled%20in&j')[1].split('=')[0] + '=' + indur + '&');
}
}
} catch(hgfjhgfj) {
if (6 == 4) {
gelev=ineleven;
gduris=indur;
gtitis=intit;
}
}
} else if (4 == 6) {
gelev=ineleven;
gduris=indur;
gtitis=intit;
}
gccount+kmore;
//if (gccount == 20) {
//document.getElementById('navig').title=gelev + ' ' + gduris + ' ... ' + gtdzero.split('&j0=')[1];
//}
}
function fixone(oneijs) {
var nextis='2', i, fidx=-1, ishouldbe=-1, thisvis='', thisdis=0;
var ytids=oneijs.split(';');
if (gtdzero != '> </td>') {
nextis=gtdzero.split('=&j')[1].split('=')[0].split('&')[0];
//alert('nextis=' + nextis + ' and ordmatters.length=' + ordermatters.length + ' and ' + (ordmatters || document.URL.indexOf('ordmatters=') != -1));
if ((ordmatters || document.URL.indexOf('ordmatters=') != -1) && (eval('' + ordermatters.length) <= eval('' + nextis) || eval('' + mattersorder.length) <= eval('' + nextis))) {
if (6 == 7) { alert('Firstidx=' + firstidx + ' and nextis=' + nextis + ' and ordmatters.length=' + ordermatters.length + ' and ' + (ordmatters || document.URL.indexOf('ordmatters=') != -1) + ' and gtdzero=' + gtdzero.split('?')[1]); }
}
if ((ordmatters || document.URL.indexOf('ordmatters=') != -1) && eval('' + ordermatters.length) > eval('' + nextis) && eval('' + mattersorder.length) > eval('' + nextis)) {
//alert('firstidx=' + firstidx + ' and nextis=' + nextis + ' and ordmatters.length=' + ordermatters.length + ' and ' + (ordmatters || document.URL.indexOf('ordmatters=') != -1) + ' and gtdzero=' + gtdzero.split('?')[1]);
//gtdzero=gtdzero.replace('&i1=0&','&i1=&');
//alert('firstidx=' + firstidx);
//if (gtdzero.indexOf('&j0=&') == -1 && gtdzero.indexOf('&j1=&') != -1 && eval('' + firstidx) > 0) {
if (firstidx > 0 && ffidx > 0) {
//firstidx++;
//gtdzero=gtdzero.replace('&i1=0&','&i1=&');
//ishouldbe=eval('' + mattersorder.indexOf(('' + gtdzero.split('&i0=')[1].split('&')[0])));
thisvis=gtdzero.split('youtubeid=')[1].split('&')[0];
thisdis=gtdzero.split('j0=')[1].split('&')[0];
//alert('thisvis=' + thisvis + ' and thisdis=' + thisdis);
gtdzero=gtdzero.replace('&i' + firstidx + '=' + gtdzero.split('i' + firstidx + '=')[1].split('&')[0] + '&', '&c' + firstidx + '=off&i' + firstidx + '=0' + encodeURIComponent('|') + thisvis + encodeURIComponent('#Will be filled in') + '&');
//alert(firstduris);
gtdzero=gtdzero.replace('j' + firstidx + '=' + gtdzero.split('j' + firstidx + '=')[1].split('&')[0] + '&', 'j' + firstidx + '=' + (firstduris.replace('22234','') == '' ? '-1' : firstduris) + '&');
if (document.getElementById('lastifz').src.indexOf('youtubeid=&') != -1) {
gccount--;
gelev='' + thisvis;
console.error('gelev=' + thisvis);
//if (thisvis == 'Klh7sAv9hu4') {
// mod_gtdzero('Klh7sAv9hu4', '', '');
//}
document.getElementById('lastifz').src=document.getElementById('lastifz').src.replace('youtubeid=&', 'youtubeid=' + thisvis + '&');
}
gtdzero=gtdzero.replace('youtubeid=' + gtdzero.split('youtubeid=')[1].split('&')[0], 'youtubeid=' + mattersorder[0]);
//var qqw=prompt('0:' + 'youtube_duration=' + gtdzero.split('youtube_duration=')[1].split('&')[0], '');
gtdzero=gtdzero.replace('youtube_duration=' + gtdzero.split('youtube_duration=')[1].split('&')[0], 'youtube_duration=22234');
gtdzero=gtdzero.replace('i0=' + gtdzero.split('i0=')[1].split('&')[0] + '&', 'i0=0&');
gtdzero=gtdzero.replace('j0=' + gtdzero.split('j0=')[1].split('&')[0] + '&', 'j0=22234&');
console.error('-1.' + nextis + ':' + gtdzero);
fidx=-9;
//firstidx=-9;
ffidx=-9;
} else {
if (mattersorder[eval('' + nextis)] == ('' + ytids[0])) {
if (2 == 2 && gtdzero.indexOf(('' + ytids[0])) == -1) {
if (('' + ytids[1]).indexOf('22234') == 0) {
gtdzero=gtdzero.replace('i' + nextis + '=' + gtdzero.split('i' + nextis + '=')[1].split('&')[0] + '&', 'c' + nextis + '=off&i' + nextis + '=0' + encodeURIComponent('|') + ytids[0] + '&');
} else {
gtdzero=gtdzero.replace('i' + nextis + '=' + gtdzero.split('i' + nextis + '=')[1].split('&')[0] + '&', 'c' + nextis + '=on&i' + nextis + '=0' + encodeURIComponent('|') + ytids[0] + '&');
}
}
gtdzero=gtdzero.replace('j' + nextis + '=' + gtdzero.split('j' + nextis + '=')[1].split('&')[0] + '&', 'j' + nextis + '=' + ytids[1] + '&');
console.error('0+0.' + document.getElementById('divtitles').innerHTML.indexOf(ytids[0]) + ' ' + nextis + ':' + gtdzero);
}
gtdzero=gtdzero.replace('i0=' + gtdzero.split('i0=')[1].split('&')[0] + '&', 'i0=0&');
gtdzero=gtdzero.replace('j0=' + gtdzero.split('j0=')[1].split('&')[0] + '&', 'j0=22234&');
console.error('000.' + nextis + ':' + gtdzero);
}
if (mattersorder[eval('' + nextis)] != ('' + ytids[0])) {
if (mattersorder.indexOf(('' + ytids[0])) != -1) {
nextis='' + mattersorder.indexOf(('' + ytids[0]));
if (5 == 5 && gtdzero.indexOf(('' + ytids[0])) == -1) {
if (('' + ytids[1]).indexOf('22234') == 0) {
gtdzero=gtdzero.replace('i' + nextis + '=' + gtdzero.split('i' + nextis + '=')[1].split('&')[0] + '&', 'c' + nextis + '=off&i' + nextis + '=0' + encodeURIComponent('|') + ytids[0] + '&');
} else {
gtdzero=gtdzero.replace('i' + nextis + '=' + gtdzero.split('i' + nextis + '=')[1].split('&')[0] + '&', 'c' + nextis + '=on&i' + nextis + '=0' + encodeURIComponent('|') + ytids[0] + '&');
}
}
gtdzero=gtdzero.replace('j' + nextis + '=' + gtdzero.split('j' + nextis + '=')[1].split('&')[0] + '&', 'j' + nextis + '=' + ytids[1] + '&');
if (('' + nextis) == '000') {
gtdzero=gtdzero.replace('youtubeid=' + gtdzero.split('youtubeid=')[1].split('&')[0], 'youtubeid=' + mattersorder[eval('' + nextis)]);
//var qw=prompt('1:' + 'youtube_duration=' + gtdzero.split('youtube_duration=')[1].split('&')[0], '');
gtdzero=gtdzero.replace('youtube_duration=' + gtdzero.split('youtube_duration=')[1].split('&')[0], 'youtube_duration=22234');
//gtdzero=gtdzero.replace('i0=' + gtdzero.split('i0=')[1].split('&')[0] + '&', 'i0=0' + encodeURIComponent('|') + ytids[0] + '&');
//gtdzero=gtdzero.replace('j0=' + gtdzero.split('j0=')[1].split('&')[0] + '&', 'j0=' + ytids[1] + '&');
gtdzero=gtdzero.replace('i0=' + gtdzero.split('i0=')[1].split('&')[0] + '&', 'i0=0&');
gtdzero=gtdzero.replace('j0=' + gtdzero.split('j0=')[1].split('&')[0] + '&', 'j0=22234&');
console.error('00.' + nextis + ':' + gtdzero);
}
}
}
nextis=gtdzero.split('=&j')[1].split('=')[0].split('&')[0];
//alert('nextis=' + nextis + ' and ordmatters.length=' + ordermatters.length + ' and ' + (ordmatters || document.URL.indexOf('ordmatters=') != -1));
// New if cluse below
if ((ordmatters || document.URL.indexOf('ordmatters=') != -1) && (eval('' + ordermatters.length) <= eval('' + nextis) || eval('' + mattersorder.length) <= eval('' + nextis))) {
if (6 == 77) { alert('FirstIdx=' + firstidx + ' and nextis=' + nextis + ' and ordmatters.length=' + ordermatters.length + ' and ' + (ordmatters || document.URL.indexOf('ordmatters=') != -1) + ' and gtdzero=' + gtdzero.split('?')[1]); }
if (thisvis != '') {
gtdzero=gtdzero.replace('&i' + firstidx + '=' + gtdzero.split('i' + firstidx + '=')[1].split('&')[0] + '&', '&c' + firstidx + '=off&i' + firstidx + '=0' + encodeURIComponent('|') + thisvis + encodeURIComponent('#Will be filled in') + '&');
//alert(firstduris);
gtdzero=gtdzero.replace('j' + firstidx + '=' + gtdzero.split('j' + firstidx + '=')[1].split('&')[0] + '&', 'j' + firstidx + '=' + (firstduris.replace('22234','') == '' ? '-1' : firstduris) + '&');
}
gtdzero=gtdzero.replace('youtube_duration=' + gtdzero.split('youtube_duration=')[1].split('&')[0], 'youtube_duration=22234'); // new
gtdzero=gtdzero.replace('i0=' + gtdzero.split('i0=')[1].split('&')[0] + '&', 'i0=0&');
gtdzero=gtdzero.replace('j0=' + gtdzero.split('j0=')[1].split('&')[0] + '&', 'j0=22234&');
}
} else {
while (eval('' + ordermatters.length) <= eval('' + nextis) || eval('' + mattersorder.length) <= eval('' + nextis)) {
ordermatters.push(('' + nextis));
mattersorder.push(('' + ytids[0]));
}
}
//alert('nextis=' + nextis + ' is ' + '&i' + nextis + '=&j' + nextis + '=&' + ' in ... ' + gtdzero);
if (('' + ytids[1]).indexOf('22234') != 0) {
//alert(ytids[0]);
if (ytids[0] == '0Gz_7am23rk') {
//gtdzero=prompt(gtdzero,gtdzero);
if (decodeURIComponent(userms[iuser]).toLowerCase().indexOf('.pdf') != -1) {
if (jload < eval('' + jmedias.length)) {
gtdzero=gtdzero.replace('&i' + ordermatters[nextis] + '=&j' + ordermatters[nextis] + '=&', '&c' + ordermatters[nextis] + '=on&kk' + ordermatters[nextis] + '=' + variants[eval(-1 + iuser)] + encodeURIComponent('' + decodeURIComponent(userms[iuser])) + '&i' + ordermatters[nextis] + '=0' + encodeURIComponent('|') + '0Gz_7am23rk' + '&j' + ordermatters[nextis] + '=' + jmedias[jload] + '&');
jload++;
} else {
gtdzero=gtdzero.replace('&i' + ordermatters[nextis] + '=&j' + ordermatters[nextis] + '=&', '&c' + ordermatters[nextis] + '=on&kk' + ordermatters[nextis] + '=' + variants[eval(-1 + iuser)] + encodeURIComponent('' + decodeURIComponent(userms[iuser])) + '&i' + ordermatters[nextis] + '=0' + encodeURIComponent('|') + '0Gz_7am23rk' + '&j' + ordermatters[nextis] + '=35.00&');
}
} else {
if (jload < eval('' + jmedias.length)) {
gtdzero=gtdzero.replace('&i' + ordermatters[nextis] + '=&j' + ordermatters[nextis] + '=&', '&c' + ordermatters[nextis] + '=on&kk' + ordermatters[nextis] + '=' + variants[eval(-1 + iuser)] + encodeURIComponent('' + decodeURIComponent(userms[iuser])) + '&i' + ordermatters[nextis] + '=0' + encodeURIComponent('|') + '0Gz_7am23rk' + '&j' + ordermatters[nextis] + '=' + jmedias[jload] + '&');
jload++;
} else {
gtdzero=gtdzero.replace('&i' + ordermatters[nextis] + '=&j' + ordermatters[nextis] + '=&', '&c' + ordermatters[nextis] + '=on&kk' + ordermatters[nextis] + '=' + variants[eval(-1 + iuser)] + encodeURIComponent('' + decodeURIComponent(userms[iuser])) + '&i' + ordermatters[nextis] + '=0' + encodeURIComponent('|') + '0Gz_7am23rk' + '&j' + ordermatters[nextis] + '=' + ytids[1] + '&');
}
}
document.getElementById('divtitles').innerHTML=document.getElementById('divtitles').innerHTML.replace('<span>0|0Gz_7am23rk#Virtual Tour</span>', '<span>0|' + variants[eval(-1 + iuser)] + '#' + decodeURIComponent(userms[iuser]) + '</span>');
iuser++;
} else {
if (gtdzero.indexOf('=0' + encodeURIComponent('|') + ytids[0] + '&') != -1) {
gtdzero=secondsoff(gtdzero.replace('&i' + ordermatters[nextis] + '=&j' + ordermatters[nextis] + '=&', '&c' + ordermatters[nextis] + '=off&i' + ordermatters[nextis] + '=0' + encodeURIComponent('|') + ytids[0] + '&j' + ordermatters[nextis] + '=' + ytids[1] + '&'));
} else {
gtdzero=secondsoff(gtdzero.replace('&i' + ordermatters[nextis] + '=&j' + ordermatters[nextis] + '=&', '&c' + ordermatters[nextis] + '=on&i' + ordermatters[nextis] + '=0' + encodeURIComponent('|') + ytids[0] + '&j' + ordermatters[nextis] + '=' + ytids[1] + '&'));
}
}
} else {
//alert('oops ' + ytids[0]);
return '';
}
//alert('nextis=' + nextis + ' .+. ' + gtdzero);
}
return oneijs;
}
function secondsoff(whatg) {
var outwhat=whatg, thisij='0', thisev='', jcons=0, kcons=0, thatij=0;
if ((ordmatters || document.URL.indexOf('ordmatters=') != -1)) {
var cons=whatg.split('=on&i');
var thiscons=[];
for (jcons=1; icons<cons.length; icons++) {
thisij=cons[jcons].split('=')[0];
thisev=cons[jcons].split('=')[1].split('&')[0].split(encodeURIComponent('|'))[eval(-1 + cons[jcons].split('=')[1].split('&')[0].split(encodeURIComponent('|')).length)];
thiscons=outwhat.split(thisev);
if (eval('' + thiscons.length) > 2) {
for (kcons=eval(1 + jcons); icons<cons.length; icons++) {
if (cons[kcons].indexOf(thisev)) {
thatij=cons[kcons].split('=')[0];
if (!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) || 3 == 3) {
outwhat=outwhat.replace('&c' + thatij + '=on', '&c' + thatij + '=off');
}
}
}
}
}
}
return outwhat;
}
function dodisco(dwhat) {
setTimeout(cursanimate, 600);
if (dwhat.indexOf('=radnoiswas') != -1) {
document.getElementById(dwhat.split('=radnoiswas')[0]).style.border='1px dotted red';
} else if (dwhat.indexOf('isradio=') == 0) {
document.getElementById(dwhat.split('isradio=')[1].split('&')[0]).style.border='1px dotted red';
}
document.body.style.cursor='progress';
if (independent) {
if (prefix.indexOf('shuffle=') == -1) { prefix=dwhat; }
document.getElementById('spareif').src='/HTMLCSS/disco_version.html?rand=' + Math.floor(Math.random() * 1987865) + dvl;
} else if (dwhat == dwhat.toUpperCase()) {
dsofar=' ';
czhr = new XMLHttpRequest();
czhr.onreadystatechange = showStuff;
czhr.responseType='Document';
czhr.open('GET', '/HTMLCSS/disco_version.html', true);
czhr.send(null);
if (ytlist == '') { ytlist=' '; }
document.getElementById('spareifthree').src='/HTMLCSS/disco_version.html?rantById('subtitlegoeshere').title) == ('' + document.getElementById('subtitlegoeshere').title).trim()) {
document.getElementById('subtitlegoeshere').title+=' ';
}
if (window.parent) {
if (parent.document.getElementById('preareyousinging')) {
if (('' + parent.document.getElementById('preareyousinging').title) == '') {
parent.document.getElementById('preareyousinging').title='Captions and subtitles ';
if (wpwp) {
//alert(8);
parent.document.getElementById(parent.maybedet('preareyousinging')).onmousedown=function(event) { parent.parent.ouralert(parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).title,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerText,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerHTML,null); };
parent.document.getElementById(parent.maybedet('preareyousinging')).ontouchdown=function(event) { parent.parent.ouralert(parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).title,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerText,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerHTML,null); };
} else if (!wpp) {
//alert(1);
parent.document.getElementById(parent.maybedet('preareyousinging')).onmousedown=function(event) { alert(parent.document.getElementById(('' + event.target.id).replace('detdiv','').replace('det','')).title); };
parent.document.getElementById(parent.maybedet('preareyousinging')).ontouchdown=function(event) { alert(parent.document.getElementById(('' + event.target.id).replace('detdiv','').replace('det','')).title); };
} else {
//alert(11);
parent.document.getElementById(parent.maybedet('preareyousinging')).onmousedown=function(event) { parent.ouralert(parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).title,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerText,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerHTML,null); };
parent.document.getElementById(parent.maybedet('preareyousinging')).ontouchdown=function(event) { parent.ouralert(parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).title,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerText,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerHTML,null); };
}
}
parent.document.getElementById('preareyousinging').style.backgroundColor='orange';
parent.document.getElementById(parent.maybedetstart('preareyousinging', whichaltone(alttimesubtitles[cursubi]))).innerHTML=whichone(timesubtitles[cursubi]);
parent.document.getElementById('preareyousinging').title=parent.document.getElementById('preareyousinging').title.replace(parent.document.getElementById('preareyousinging').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + String.fromCharCode(10) + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
document.getElementById('subtitlegoeshere').title=document.getElementById('subtitlegoeshere').title.replace(document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + String.fromCharCode(10) + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
} else if (parent.document.getElementById('subtitlegoeshere')) {
if (('' + parent.document.getElementById('subtitlegoeshere').title) == ('' + parent.document.getElementById('subtitlegoeshere').title).trim()) {
parent.document.getElementById('subtitlegoeshere').title+=' ';
}
parent.document.getElementById(parent.maybedetstart('subtitlegoeshere', whichaltone(alttimesubtitles[cursubi]))).innerHTML=whichone(timesubtitles[cursubi]);
parent.document.getElementById('subtitlegoeshere').title=parent.document.getElementById('subtitlegoeshere').title.replace(parent.document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + String.fromCharCode(10) + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
document.getElementById('subtitlegoeshere').title=document.getElementById('subtitlegoeshere').title.replace(document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + String.fromCharCode(10) + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
}
} else {
document.getElementById('subtitlegoeshere').title=document.getElementById('subtitlegoeshere').title.replace(document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + String.fromCharCode(10) + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
}
}
} else {
for (ithings=0; ithings<stimes.length; ithings++) {
if (eval(cursecselapsed) >= eval(stimes[ithings]) && eval(cursecselapsed) <= eval(etimes[ithings])) {
newsubi=ithings;
//alert('yes ' + ithings);
}
}
if (eval(newsubi) < 0) {
document.getElementById('subtitlegoeshere').innerHTML=document.getElementById('subtitlegoeshere').title.replace(document.getElementById('subtitlegoeshere').title.trim(), '').replace(/\ /g,' ');
if (window.parent) {
if (parent.document.getElementById('preareyousinging')) {
parent.document.getElementById(parent.maybedet('preareyousinging')).innerHTML=parent.document.getElementById('preareyousinging').title.replace(parent.document.getElementById('preareyousinging').title.trim(), '').replace(/\ /g,' ');
} else if (parent.document.getElementById('subtitlegoeshere')) {
parent.document.getElementById(parent.maybedet('subtitlegoeshere')).innerHTML=parent.document.getElementById('subtitlegoeshere').title.replace(parent.document.getElementById('subtitlegoeshere').title.trim(), '').replace(/\ /g,' ');
}
}
}
if (eval(newsubi) >= 0 && eval(cursubi) >= 0 && eval(newsubi) != eval(cursubi)) {
//alert('' + timesubtitles.length + ' needs to be bigger than ' + newsubi);
if (eval('' + timesubtitles.length) > eval(newsubi)) {
cursubi=newsubi;
console.log('Found for ' + cursubi);
if (('' + timesubtitles[cursubi]).replace(/^undefined$/g,'').replace('WEBVTT FILE', '') != '') {
document.getElementById('subtitlegoeshere').innerHTML=('' + timesubtitles[cursubi]).replace(/^undefined$/g,'');
if (window.parent) {
if (parent.document.getElementById('preareyousinging')) {
if (('' + parent.document.getElementById('preareyousinging').title) == '') {
parent.document.getElementById('preareyousinging').title='Captions and subtitles ';
if (wpwp) {
//alert(88);
parent.document.getElementById(parent.maybedet('preareyousinging')).onmousedown=function(event) { parent.parent.ouralert(parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).title,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerText,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerHTML,null); };
parent.document.getElementById(parent.maybedet('preareyousinging')).ontouchdown=function(event) { parent.parent.ouralert(parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).title,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerText,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerHTML,null); };
} else if (!wpp) {
//alert(111);
parent.document.getElementById(parent.maybedet('preareyousinging')).onmousedown=function(event) { alert(parent.document.getElementById(('' + event.target.id).replace('detdiv','').replace('det','')).title); };
parent.document.getElementById(parent.maybedet('preareyousinging')).ontouchdown=function(event) { alert(parent.document.getElementById(('' + event.target.id).replace('detdiv','').replace('det','')).title); };
} else {
//alert(1111);
parent.document.getElementById(parent.maybedet('preareyousinging')).onmousedown=function(event) { parent.ouralert(parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).title,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerText,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerHTML,null); };
parent.document.getElementById(parent.maybedet('preareyousinging')).ontouchdown=function(event) { parent.ouralert(parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).title,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerText,parent.document.getElementById(('' + event.target.id).replace('detJUNKdiv','').replace('det','')).innerHTML,null); };
}
}
parent.document.getElementById('preareyousinging').style.backgroundColor='orange';
parent.document.getElementById(parent.maybedetstart('preareyousinging', whichaltone(alttimesubtitles[cursubi]))).innerHTML=whichone(timesubtitles[cursubi]);
parent.document.getElementById('preareyousinging').title=parent.document.getElementById('preareyousinging').title.replace(parent.document.getElementById('preareyousinging').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + String.fromCharCode(10) + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
document.getElementById('subtitlegoeshere').title=document.getElementById('subtitlegoeshere').title.replace(document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + String.fromCharCode(10) + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
} else if (parent.document.getElementById('subtitlegoeshere')) {
if (('' + parent.document.getElementById('subtitlegoeshere').title) == ('' + parent.document.getElementById('subtitlegoeshere').title).trim()) {
parent.document.getElementById('subtitlegoeshere').title+=' ';
}
parent.document.getElementById(parent.maybedetstart('subtitlegoeshere', whichaltone(alttimesubtitles[cursubi]))).innerHTML=whichone(timesubtitles[cursubi]);
parent.document.getElementById('subtitlegoeshere').title=parent.document.getElementById('subtitlegoeshere').title.replace(parent.document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + String.fromCharCode(10) + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
document.getElementById('subtitlegoeshere').title=document.getElementById('subtitlegoeshere').title.replace(document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + String.fromCharCode(10) + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
}
} else {
document.getElementById('subtitlegoeshere').title=document.getElementById('subtitlegoeshere').title.replace(document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + String.fromCharCode(10) + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
}
}
}
} else if (eval(newsubi) >= 0 && eval(cursubi) >= 0 && document.getElementById('subtitlegoeshere').innerHTML == '') {
console.log('Found For ' + cursubi);
if (('' + timesubtitles[cursubi]).replace(/^undefined$/g,'').replace('WEBVTT FILE', '') != '') {
document.getElementById('subtitlegoeshere').innerHTML=('' + timesubtitles[cursubi]).replace(/^undefined$/g,'');
if (window.parent) {
if (parent.document.getElementById('preareyousinging')) {
parent.document.getElementById(parent.maybedet('preareyousinging')).style.backgroundColor='orange';
parent.document.getElementById(parent.maybedetstart('preareyousinging', whichaltone(alttimesubtitles[cursubi]))).innerHTML=whichone(timesubtitles[cursubi]);
parent.document.getElementById('preareyousinging').title=parent.document.getElementById('preareyousinging').title.replace(parent.document.getElementById('preareyousinging').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
document.getElementById('subtitlegoeshere').title=document.getElementById('subtitlegoeshere').title.replace(document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
} else if (parent.document.getElementById('subtitlegoeshere')) {
parent.document.getElementById(parent.maybedetstart('subtitlegoeshere',whichaltone(alttimesubtitles[cursubi]))).innerHTML=whichone(timesubtitles[cursubi]);
parent.document.getElementById('subtitlegoeshere').title=parent.document.getElementById('subtitlegoeshere').title.replace(parent.document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
document.getElementById('subtitlegoeshere').title=document.getElementById('subtitlegoeshere').title.replace(document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
}
} else {
document.getElementById('subtitlegoeshere').title=document.getElementById('subtitlegoeshere').title.replace(document.getElementById('subtitlegoeshere').title.split('aptions')[0], 'Last (now usefully SubRip editable clickable) caption for ' + stimesf[cursubi] + ' to ' + etimesf[cursubi] + ' is ' + timesubtitles[cursubi] + String.fromCharCode(10) + ' ... ' + String.fromCharCode(10) + 'C');
}
}
}
}
}
if (!isnotplaying) { enforcedtimeis=-1.0; }
}
function convertSrtToText(srt) { // thanks to https://medium.com/@backlinkss.info/convert-srt-to-text-regex-javascript-9660964ee3f0
// Use a expressão regular para remover os números de linha e as marcas de tempo
return srt.replace(/^\d+\n([\d:,.]+ --> [\d:,.]+\n)/gm, '');
}
function fromsecs(outsecs) {
var fromthistimestamp=''; // 21.681 becomes 00:00:02.681
var hrs=Math.floor(eval(outsecs / 3600.0));
var mns=Math.floor(eval(eval(outsecs - hrs * 3600.0) / 60.0));
var scs=Math.floor(eval(eval(outsecs - hrs * 3600.0 - mns * 60.0) / 1.0));
var msc=('' + ('' + (eval(eval(outsecs - hrs * 3600.0 - mns * 60.0 - scs) / 1.0)) + '.').split('.')[1] + '000').substring(0,3);
fromthistimestamp=('0' + ('' + hrs)).slice(-2) + ':' + ('0' + ('' + mns)).slice(-2) + ':' + ('0' + ('' + scs)).slice(-2) + ',' + msc;
//alert('' + outsecs + ' becomes ' + fromthistimestamp);
return ('' + fromthistimestamp).replace(/00\:\00\:00\,000/g, '00:00:00,001').replace(/00\:\00\:00\.000/g, '00:00:00.001');
}
function tosecs(fromthistimestamp) {
//alert('fromthistimestamp=' + fromthistimestamp);
var outsecs=0.0, cola=[], cfactor=1.0, icf=0;
if (fromthistimestamp.replace('.',',').indexOf(',') != -1) {
outsecs+=eval(eval('' + fromthistimestamp.replace('.',',').split(',')[1]) / Math.pow(10.0, eval('' + fromthistimestamp.replace('.',',').split(',')[1].length)));
fromthistimestamp=fromthistimestamp.replace('.',',').split(',')[0];
}
cola=fromthistimestamp.split(':');
for (icf=eval(-1 + cola.length); icf>=0; icf--) {
if (('' + cola[icf]).replace(/0/g,'') != '') {
outsecs+=eval(eval(('' + cola[icf]).replace(/^0/g,'')) * cfactor);
}
//if (fromthistimestamp.indexOf(':01:') != -1) {
//alert('cola[icf]=' + cola[icf] + ' cfactor=' + cfactor + ' outsecs=' + outsecs + ' via ' + fromthistimestamp);
//}
cfactor*=60.0;
}
return outsecs;
}
function stateChanged() {
if (xhr.readyState == 4) {
if (xhr.status == 200) {
if (xhr.response.indexOf(String.fromCharCode(10)) != -1) {
gsrt=xhr.response;
stimes=[];
etimes=[];
timesubtitles=[];
processsrt('');
}
}
}
}
function processsrt(instis) {
var it=0, interimsrt=[];
if (instis != '') {
//alert('instis=' + instis);
gsrt=decodeURIComponent(decodeURIComponent(instis).replace(/\ \+/g,' %2b').replace(/\+/g,' '));
if (gsrt != '' && gsrt.indexOf(String.fromCharCode(10)) == -1 && gsrt.indexOf('=') != -1) {
gsrt=gsrt.split('=')[eval(-1 + gsrt.split('=').length)] + '.srt';
}
if (gsrt.toLowerCase().trim() != gsrt.toLowerCase().trim().replace(/\.srt$/g,'').replace(/VTT\.srt$/g, '.VTT').replace(/vtt\.srt$/g, '.vtt')) {
xhr = new XMLHttpRequest();
xhr.onreadystatechange=stateChanged;
createdlh='#srt=' + encodeURIComponent(gsrt.replace(/SRT\.srt$/g, '.SRT'));
xhr.open('get',gsrt.replace(/SRT\.srt$/g, '.SRT').replace(/VTT\.srt$/g, '.VTT').replace(/vtt\.srt$/g, '.vtt'),true);
xhr.send(null);
gsrt='';
return decodeURIComponent(instis).replace(/SRT\.srt$/g, '.SRT').replace(/VTT\.srt$/g, '.VTT').replace(/vtt\.srt$/g, '.vtt');
}
//gsrt='';
//return decodeURIComponent(instis).replace(/SRT\.srt$/g, '.SRT').replace(/VTT\.srt$/g, '.VTT').replace(/vtt\.srt$/g, '.vtt');
}
if (gsrt != '') {
//alert('gsrt=' + gsrt);
if (gsrt.indexOf('=WEBVTT FILE') != -1) {
gsrt='WEBVTT FILE' + gsrt.split('=WEBVTT FILE')[eval(-1 + gsrt.split('=WEBVTT FILE').length)];
} else if (gsrt.indexOf('WEBVTT FILE') != -1) {
gsrt='WEBVTT FILE' + gsrt.split('WEBVTT FILE')[eval(-1 + gsrt.split('WEBVTT FILE').length)];
}
if (gsrt.indexOf('1' + String.fromCharCode(10) + '0') > 0) {
gsrt='1' + String.fromCharCode(10) + '0' + gsrt.substring(gsrt.indexOf('1' + String.fromCharCode(10) + ' 0'));
} else if (gsrt.indexOf('1' + String.fromCharCode(10)) > 0) {
gsrt='1' + String.fromCharCode(10) + gsrt.substring(gsrt.indexOf('1' + String.fromCharCode(10) + ' '));
}
//alert('GSRT=' + gsrt.replace(String.fromCharCode(10) + String.fromCharCode(10),String.fromCharCode(10)).replace(String.fromCharCode(10) + String.fromCharCode(10),String.fromCharCode(10)).replace(String.fromCharCode(10) + String.fromCharCode(10),String.fromCharCode(10)).replace(String.fromCharCode(10) + String.fromCharCode(10),String.fromCharCode(10)).replace(String.fromCharCode(10) + String.fromCharCode(10),String.fromCharCode(10)).replace(String.fromCharCode(10) + String.fromCharCode(10),String.fromCharCode(10)).replace(String.fromCharCode(10) + String.fromCharCode(10),String.fromCharCode(10)).replace(String.fromCharCode(10) + String.fromCharCode(10),String.fromCharCode(10)).replace(String.fromCharCode(10) + String.fromCharCode(10),String.fromCharCode(10)));
gsrt=gsrt.replace(/\~/g, String.fromCharCode(10));
stimes=[];
etimes=[];
stimesf=[];
etimesf=[];
alttimesubtitles=[];
interimsrt=gsrt.split(' --> ');
timesubtitles=convertSrtToText(gsrt).split(String.fromCharCode(10) + String.fromCharCode(10));
for (it=0; it<timesubtitles.length; it++) {
alttimesubtitles.push('');
}
var what='';
for (it=1; it<timesubtitles.length; it++) {
if (timesubtitles[it].trim().slice(-1) == '}' && timesubtitles[it].trim().indexOf('{') > 0) {
alttimesubtitles[it]=timesubtitles[it].trim().split('{')[1].split('}')[0].split('": "')[eval(-1 + timesubtitles[it].trim().split('{')[1].split('}')[0].split('": "').length)].split('"')[0].replace(/\+/g,'%20').replace(/\%2b/g,'+');
timesubtitles[it]=timesubtitles[it].split('{')[0];
}
what+=' ' + timesubtitles[it];
while (what.indexOf(String.fromCharCode(10)) != -1) {
what=what.replace(String.fromCharCode(10), ' ');
}
//window.open('HTTP://localhost:8888/macos_say_record.php?andsoonclose=y&docronwork=say%20' + encodeURIComponent(what), 'sayif', 'top=50,left=50,width=500,height=500');
//what='';
}
//alert(what);
console.log(timesubtitles);
// 1\n00:00:10,500 --> 00:00:13,000\nhuh\n\n2\n00:00:13,000 --> 00:00:23,000\nhuhagain
stimes.push(0.0);
etimes.push(0.0);
stimesf.push('00:00:00.000');
etimesf.push('00:00:00.000');
for (it=1; it<interimsrt.length; it++) {
stimesf.push(('' + (interimsrt[eval(-1 + it)].split(String.fromCharCode(10))[eval(-1 + interimsrt[eval(-1 + it)].split(String.fromCharCode(10)).length)])).replace(',','.'));
etimesf.push(('' + (interimsrt[eval(0 + it)].split(String.fromCharCode(10))[0])).replace(',','.'));
stimes.push(tosecs(interimsrt[eval(-1 + it)].split(String.fromCharCode(10))[eval(-1 + interimsrt[eval(-1 + it)].split(String.fromCharCode(10)).length)]));
etimes.push(tosecs(interimsrt[eval(0 + it)].split(String.fromCharCode(10))[0]));
}
//alert('' + stimes.length + '/' + etimes.length + '/' + timesubtitles.length);
//console.warn(stimes);
//console.warn(etimes);
//console.warn(timesubtitles);
if (!document.getElementById('mysubrip')) {
if (eval('' + etimes.length) > 0) {
cursubi=0;
//alert('yes');
setInterval(writeoutsubtitle, 100);
}
}
}
if (!document.getElementById('mysubrip')) {
if (createdlh == '') {
createdlh='#srt=' + encodeURIComponent(decodeURIComponent(instis).replace(/\+/g,' '));
}
}
//alert('' + stimes.length + '/' + etimes.length + '/' + timesubtitles.length);
//console.log(stimes);
//console.log(etimes);
//console.log(timesubtitles);
return decodeURIComponent(instis);
}
function checkip(iois) {
if (iois.src.indexOf('signature_signature.php') != -1) {
var aconto = (iois.contentWindow || iois.contentDocument);
if (aconto != null) {
if (aconto.document) { aconto = aconto.document; }
if (aconto.body.innerHTML.indexOf('<p>') == 0) {
ipbit=aconto.body.innerHTML.split('<p>')[1].split('<')[0];
}
}
}
}
function sendoff() {
if (urlis != '') {
//alert(urlis);
document.getElementById('fgrid').submit();
//location.href=urlis;
//urlis='';
}
}
function iframemode(inoup) {
// ?total=9&tag=div&period=4000&from=%3ciframe src%3d%22hb11.jpg%22%3e%3c/iframe%3e&to=%3ciframe src%3d%22bb11.jpg%22%3e%3c/iframe%3e
urlis='';
var suff='?', total=0;
retval=inoup;
vidarr=inoup.split(',');
for (var jk=0; jk<9; jk+=1) { //2) {
if (jk < vidarr.length) {
total++;
} else {
total++;
document.getElementById('p' + eval(eval(jk + 1) / 1)).value='?total=9&tag=div&period=4' + eval(eval(jk + 1) / 1) + '00&from=&to=';
}
}
for (var ik=0; ik<9; ik+=1) { //2) {
if (ik < vidarr.length) {
//if (urlis == '') urlis='http://www.rjmprogramming.com.au/HTMLCSS/reveal_div.php';
if (urlis == '') urlis='//www.rjmprogramming.com.au/HTMLCSS/reveal_div.php';
if (eval(10 + ik) < vidarr.length) {
document.getElementById('p' + eval(eval(ik + 1) / 1)).value='?total=' + total + '&tag=div&period=4' + eval(eval(ik + 1) / 1) + '00&from=' + vidarr[ik] + '&to=' + vidarr[eval(10 + ik)];
urlis+=suff + 'p' + + eval(eval(ik + 1) / 1) + '=' + encodeURIComponent('?total=' + total + '&tag=div&period=4' + eval(eval(ik + 1) / 1) + '00&from=' + vidarr[ik] + '&to=' + vidarr[eval(10 + ik)]);
suff='&';
retval=retval.replace(vidarr[ik] + ',' + vidarr[eval(1 + ik)], '');
} else {
document.getElementById('p' + eval(eval(ik + 1) / 1)).value='?total=' + total + '&tag=div&period=4' + eval(eval(ik + 1) / 1) + '00&from=' + vidarr[ik] + '&to=' + vidarr[ik];
urlis+=suff + 'p' + + eval(eval(ik + 1) / 1) + '=' + encodeURIComponent('?total=' + total + '&tag=div&period=4' + eval(eval(ik + 1) / 1) + '00&from=' + vidarr[ik] + '&to=' + vidarr[ik]);
suff='&';
retval=retval.replace(vidarr[ik], '');
}
if (retval != '') {
if (retval.substring(0,1) == ',') {
retval=retval.replace(',','');
}
}
}
}
if (retval != inoup) {
if (retval == '') {
setTimeout(sendoff,500);
//document.getElementById('fgrid').submit();
} else {
setTimeout(sendoff,500);
document.getElementById('fgrid').target='_blank';
//document.getElementById('fgrid').submit();
}
} else {
urlis='';
}
return retval;
}
function force_next() {
if (nexturl == '') {
if (prevurl.indexOf('this=') != -1) {
pgtn="Go to previous Video on the list";
if (("" + prevvid).length > ('cGdz3GNhEQ4').length) pgtn="Go to previous Playlist on the list";
return "<br><a target='_self' href='" + prevurl + "' title='Go to previous'>" + pgtn + "</a>";
}
return "<br><a target='_self' href='" + drhuh(document.referrer) + "' title='Go to previous'>Go to previous</a>";
}
gtn="Go to next Video on the list";
if (("" + nextvid).length > ('cGdz3GNhEQ4').length) gtn="Go to next Playlist on the list";
if (prevurl.indexOf('this=') != -1) {
pgtn="Go to previous Video on the list";
if (("" + prevvid).length > ('cGdz3GNhEQ4').length) pgtn="Go to previous Playlist on the list";
return "<br><a target='_self' href='" + prevurl + "' title='Go to previous'>" + pgtn + "</a>" + "<br><a target='_self' href='" + nexturl + "' title='Go to next'>" + gtn + "</a>";
}
if (document.referrer.indexOf('this=') != -1) {
return "<br><a target='_self' href='" + drhuh(document.referrer) + "' title='Go to previous'>Go to previous</a>" + "<br><a target='_self' href='" + nexturl + "' title='Go to next'>" + gtn + "</a>";
}
return "<br><a target='_self' href='" + nexturl + "' title='Go to next'>" + gtn + "</a>";
}
function etc_quality() {
return "<br>Quality <select id=iqty onchange=' event.target.setPlaybackQuality(this.value); '><option value='highres'>highres</option><option value='hd1080'>hd1080</option><option value='hd720'>hd720</option><option value='large'>large</option><option value='medium' selected>medium</option><option value='small'>small</option><option value='unknown'>unknown</option></select>" + force_next();
}
function etc_playbackrate() {
return "<br>Playback Rate <select id=ipbr onchange=' event.target.setPlaybackRate(this.value); '><option value='0.25'>x 0.25</option><option value='0.5'>x 0.5</option><option value='1.5'>x 1.5</option><option value='1' selected>x 1</option><option value='2'>x 2</option></select>" + etc_quality();
}
function etc_volume() {
return "<br>Volume <input id=ivol onchange=' event.target.setVolume(this.value); ' type=number min=0 max=100 step=1 value=0></input>" + etc_playbackrate();
}
function postprompt(inp) {
var tp=10, lp=10;
if (inp == null) return "";
if (inp == '') return "";
var qs=inp.split(',');
if (eval('' + qs.length) > 1) {
for (var iqs=1; iqs<qs.length; iqs++) {
window.open(document.URL.split('?')[0].split('#')[0] + '?isnextanswer=' + encodeURIComponent(qs[iqs]), '_blank', 'top=' + tp + ',left=' + lp + ',width=600,height=600');
tp+=20;
lp+=20;
}
inp=qs[0];
}
if (inp.toLowerCase().indexOf('cannotenda2# ') != -1) {
pvid='cannotenda2# ' + inp.split('cannotenda2# ')[1].split(',')[0];
//alert('inp=' + inp);
thesewords=inp.split('cannotenda2# ')[1].split(',')[0].split(' ');
if (eval('' + thesewords.length) > 2) {
thistt=pvid.replace(' ' + thesewords[eval(-1 + thesewords.length)], '').split('cannotenda2# ')[1];
}
relh+='#' + encodeURIComponent(pvid.split('#')[1])
}
if (inp.indexOf('+') != -1) iframegridmode=true;
var oup=inp;
while (oup.indexOf('+') != -1) {
oup=oup.replace('+','');
}
while (oup.indexOf(' ') != -1) {
oup=oup.replace(' ','');
}
if (oup.indexOf(';') != -1) {
var ous=oup.split(';');
oup=ous[eval(-1 + ous.length)];
if (ous[0].indexOf(',') != -1) {
var ouss=ous[0].split(',');
vwidth=eval(ouss[0].replace('[','').replace(']',''));
vheight=eval(ouss[1].replace('[','').replace(']',''));
if (vwidth != 640 || vheight != 390) hone=0;
} else {
vwidth=eval(ous[0].replace('[','').replace(']',''));
if (ous.length >= 3) vheight=eval(ous[1].replace('[','').replace(']',''));
if (vwidth != 640 || vheight != 390) hone=0;
}
}
if (iframegridmode) {
oup=iframemode(oup);
}
return oup;
}
function offerform() {
offerdform(hm);
}
function offerdform(howmany) {
var iid="id=i2 onblur=\"document.getElementById('vid').value=this.value;\""; // used to not be commented out below
//alert(createdlh);
var odivc="<form id='oform' target='_self' action='./stop_start_youtube.html" + createdlh + "' method='GET'><input type='hidden' value='2' name='this'></input><input type='hidden' value='-1' name='playtime'></input><input type='hidden' value='" + vidarr[0] + "' id='vid' name='vid'></input><input id='bsubmit' type='submit' value='Play' style='display:none;'></input><br>Current Video Playing 1 of " + howmany + " <input type='text' readonly value='" + vid + "' name='next'></input> ... and then ...";
for (var ij=2; ij<=howmany; ij++) {
odivc+="<br>Video to Play Later " + ij + " of " + howmany + " <input " + iid + " type='text' value='" + vidarr[eval(-1 + ij)] + "' name='next" + ij + "'></input>";
iid='';
}
odivc+="</form>";
document.getElementById('dform').innerHTML = odivc;
tobechecked=document.getElementById('i2');
}
function updatesc() {
cnt+=one;
cntpause+=onepause;
if (toggle == 0) secscnt+=one;
var ours="00" + eval(secscnt % 60);
var ourm="00" + eval((secscnt - ours) / 60);
suffix="#t=" + ourm.substring(eval(ourm.length - 2)) + "m" + ours.substring(eval(ours.length - 2)) + "s";
if (presuffix != "") presuffix=suffix;
if (eval(eval(cnt) - eval(cntpause)) >= duration && eval(duration) > 0) { // && eval(playtime) < 0) {
if (tobechecked != null) {
if (tobechecked.value != '') {
document.getElementById('oform').submit();
}
} else if (nexturl != '') {
console.warn('9875');
if (urlis == '') location.href=nexturl;
} else {
secscnt=cnt;
stopVideo();
}
}
if (window.parent) {
if (parent.document.getElementById('i0')) {
if (('' + parent.document.URL + 's').replace(/\#https/g,'') != ('' + parent.document.URL + 's')) {
//top.document.title='x';
if (('' + parent.document.getElementById('i0').title + ' ').indexOf('#') == 0 || ('' + top.window.sessionStorage.getItem('ssytemp')).replace(/^undefined/g,'').replace(/^null/g,'') != '') {
//top.document.title='z';
//alert(5643);
monitorplh();
}
}
}
if (parent.document.getElementById('an_i_thingo')) {
if (parent.document.getElementById('an_i_thingo').value != '') {
parent.document.getElementById('an_i_thingo').value='';
//top.document.title='w';
//alert(5643);
monitorplh();
}
}
}
}
function dolaterthis() {
if (onestodourl != '') {
console.warn('9877');
parent.location.href=onestodourl;
onestodourl='';
}
}
function premonitor(iois) {
var mconto = (iois.contentWindow || iois.contentDocument);
var lastrelcount='' + relcount;
if (mconto != null) {
if (mconto.document) { mconto = mconto.document; }
if (iois.src.indexOf('an_i_thingo=&which_i_thingo=&') != -1) {
//top.document.title='0';
console.warn('count follows ...');
if (mconto.body.innerHTML.indexOf('<span>') != -1) {
var thisrelcount='' + mconto.body.innerHTML.split('<span>')[1].split('<')[0];
console.warn('' + thisrelcount);
//top.document.title+=thisrelcount;
if (thisrelcount != lastrelcount) { relcount=eval('' + thisrelcount); if (relcount > 0) { monitorplh(); } }
}
}
//setInterval(ajaxit, 8000);
}
}
function monitorplh() {
//setTimeout(monitorplh, 13000);
var plhis='';
//try {
//plhis=('' + parent.location.hash).replace(/^undefined/g,'').replace(/^null/g,'');
//} catch (ghjfjh) {
//plhis='';
//}
xblanks+=' ';
if (67 == 87) {
if (plhis.trim() == '' || plhis.replace(/\#http$/g,'') == wasmlh.replace(/\#http$/g,'')) {
plhis=('' + top.window.sessionStorage.getItem('ssytemp')).replace(/^undefined/g,'').replace(/^null/g,'');
if (plhis.replace(/\#http$/g,'') != '') {
top.window.sessionStorage.removeItem('ssytemp');
if (parent.document.getElementById('i0')) {
if (('' + parent.document.getElementById('i0').title + ' ').substring(0,1) == '#') {
parent.document.getElementById('i0').title='';
}
}
}
} else if (('' + parent.document.getElementById('i0').title + ' ').substring(0,1) == '#') {
plhis=('' + parent.document.getElementById('i0').title);
if (parent.document.getElementById('i0')) {
parent.document.getElementById('i0').title='';
}
}
}
//parent.document.getElementById('myh1').innerHTML=wasmlh + xblanks.length + ' VS ' + parent.document.getElementById('i0').title + ' vs ' + top.document.getElementById('plhxxx').innerHTML + ' Vs ' + ('' + parent.location.hash).replace(/^undefined/g,'').replace(/^null/g,'');
// plhis=top.document.getElementById('plhxxx').innerHTML;
//if (parent.document.getElementById('plhxxx').innerHTML != '' && ('' + parent.location.hash).replace(/^undefined/g,'').replace(/^none/g,'').replace(/\#http$/g,'') == wasmlh.replace(/\#http$/g,'')) {
// plhis=parent.document.getElementById('plhxxx').innerHTML;
//} else if (top.document.getElementById('plhxxx').innerHTML != '' && ('' + parent.location.hash).replace(/^undefined/g,'').replace(/^none/g,'').replace(/\#http$/g,'') == wasmlh.replace(/\#http$/g,'')) {
// plhis=top.document.getElementById('plhxxx').innerHTML;
//} else if (top.document.title != '' && ('' + parent.location.hash).replace(/^undefined/g,'').replace(/^none/g,'').replace(/\#http$/g,'') == wasmlh.replace(/\#http$/g,'')) {
// plhis=top.document.title;
//}
//if (parent.document.getElementById('i0').title.indexOf('#http') != -1 && ('' + parent.location.hash).replace(/^undefined/g,'').replace(/^null/g,'').replace(/\#http$/g,'') == wasmlh.replace(/\#http$/g,'')) {
//alert(56);
//if (parent.document.getElementById('i0').title.replace(/\#http$/g,'') != wasmlh.replace(/\#http$/g,'')) {
//alert(256);
//plhis=parent.document.getElementById('i0').title;
//alert('yes');
//}
//}
if (plhis.replace(/\#http$/g,'') != wasmlh.replace(/\#http$/g,'')) {
if (wasmlh.replace(/\#http$/g,'') == '') {
//alert('0:' + plhis);
wasmlh=plhis.replace(/\#http$/g,'');
stageone(plhis);
} else if (plhis.indexOf(wasmlh.replace(/\#http$/g,'')) == 0) {
//alert('1:' + plhis.split(wasmlh)[1]);
stageone(plhis.split(wasmlh)[1]);
wasmlh=plhis.replace(/\#http$/g,'');
} else if (plhis.indexOf(wasmlh.replace(/\#http$/g,'')) != -1) {
//alert('2:' + plhis.split(wasmlh)[0]);
stageone(plhis.split(wasmlh)[0]);
wasmlh=plhis.replace(/\#http$/g,'');
} else {
//alert('6:' + plhis);
wasmlh=plhis.replace(/\#http$/g,'');
stageone(plhis);
console.warn('it changed');
}
//} else if (wasmlh.replace(/\#http$/g,'') != '') {
// alert(plhis);
}
//if (player == window.self) {
//}
}
function dothislater(afterhowlong, nexturlisthistime) {
onestodourl=nexturlisthistime;
setTimeout(dolaterthis, Math.floor(eval(1000 * eval(onespause + eval('' + afterhowlong)))));
}
function drhuh(indr) {
var outdr=indr;
if (onestodosuffix != '') {
var drhbits=outdr.split('&andthen=')[0].split('#')[0];
if (prevonestodosuffix != onestodosuffix) {
return drhbits[0] + '&andthen=' + prevonestodosuffix;
} else {
var nexties=onestodosuffix.split(';');
var nextdetails=nexties[1].split(',');
if (onestodosuffix.replace(nexties[0] + ";" + nextdetails[0],"") == '') return outdr;
return drhbits[0] + '&andthen=' + onestodosuffix.replace(nexties[0] + ";" + nextdetails[0],"");
}
}
return outdr;
}
function fauxit(insecs) {
if (fauxpas_w) {
//alert(1987);
if (fauxpas_w.document.getElementById('fauxpasstartsecs' + fauxpas_w.document.getElementById('tbtheone').value)) {
//alert(1887);
if (fauxpas_w.document.getElementById('fauxpasstartsecs' + fauxpas_w.document.getElementById('tbtheone').value).value == '') {
//alert(1787);
fauxpas_w.document.getElementById('fauxpasstartsecs' + fauxpas_w.document.getElementById('tbtheone').value).value='' + insecs;
} else {
var sofararr=fauxpas_w.document.getElementById('fauxpasstartsecs' + fauxpas_w.document.getElementById('tbtheone').value).value.split(',');
var farsoarr=fauxpas_w.document.getElementById('fauxpasendsecs' + fauxpas_w.document.getElementById('tbtheone').value).value.split(',');
if (eval('' + sofararr.length) > eval('' + farsoarr.length) || fauxpas_w.document.getElementById('fauxpasendsecs' + fauxpas_w.document.getElementById('tbtheone').value).value == '') {
if (fauxpas_w.document.getElementById('fauxpasendsecs' + fauxpas_w.document.getElementById('tbtheone').value).value == '') {
fauxpas_w.document.getElementById('fauxpasendsecs' + fauxpas_w.document.getElementById('tbtheone').value).value='' + insecs;
} else {
fauxpas_w.document.getElementById('fauxpasendsecs' + fauxpas_w.document.getElementById('tbtheone').value).value+=',' + insecs;
}
} else {
fauxpas_w.document.getElementById('fauxpasstartsecs' + fauxpas_w.document.getElementById('tbtheone').value).value+=',' + insecs;
}
}
}
}
return insecs;
}
function vslfd(inida) {
if (inida.trim() != '') {
//alert('0:' + fauxpas_w.document.getElementById('fauxpasstartsecs' + fauxpas_w.document.getElementById('tbtheone').value).value);
var sofararr=fauxpas_w.document.getElementById('fauxpasstartsecs' + fauxpas_w.document.getElementById('tbtheone').value).value.split(',');
var arrsofar=fauxpas_w.document.getElementById('fauxpas' + fauxpas_w.document.getElementById('tbtheone').value).value.split(' , ');
if (fauxpas_w.document.getElementById('fauxpas' + fauxpas_w.document.getElementById('tbtheone').value).value != '') {
//alert('1:' + fauxpas_w.document.getElementById('fauxpas' + fauxpas_w.document.getElementById('tbtheone').value).value);
if (inida.split('#')[0] != fauxpas_w.document.getElementById('fauxpas' + fauxpas_w.document.getElementById('tbtheone').value).value.split(' , ')[eval(-1 + fauxpas_w.document.getElementById('fauxpas' + fauxpas_w.document.getElementById('tbtheone').value).value.split(' , ').length)].split('#')[0]) {
//alert('2:' + eval('' + arrsofar.length) + ' < ' + eval('' + sofararr.length) + ' ?');
lastfauxdef=inida;
if (eval('' + arrsofar.length) == eval('' + sofararr.length) && fauxpas_w.document.getElementById('fauxpas' + fauxpas_w.document.getElementById('tbtheone').value).value != '') {
fauxpas_w.document.getElementById('fauxpas' + fauxpas_w.document.getElementById('tbtheone').value).value+=' , ';
if (inida.indexOf('#') != -1) {
fauxpas_w.document.getElementById('fauxpasreally' + fauxpas_w.document.getElementById('tbtheone').value).value+=' , ';
}
}
while (eval('' + arrsofar.length) < eval('' + sofararr.length)) {
fauxpas_w.document.getElementById('fauxpas' + fauxpas_w.document.getElementById('tbtheone').value).value+=' , ';
fauxpas_w.document.getElementById('fauxpasreally' + fauxpas_w.document.getElementById('tbtheone').value).value+=' , ';
arrsofar=fauxpas_w.document.getElementById('fauxpas' + fauxpas_w.document.getElementById('tbtheone').value).value.split(' , ');
}
fauxpas_w.document.getElementById('fauxpas' + fauxpas_w.document.getElementById('tbtheone').value).value+=inida.split('#')[0];
if (inida.indexOf('#') != -1) {
fauxpas_w.document.getElementById('fauxpasreally' + fauxpas_w.document.getElementById('tbtheone').value).value+=inida.split('#')[1];
}
}
} else {
//alert('2:' + fauxpas_w.document.getElementById('fauxpasstartsecs' + fauxpas_w.document.getElementById('tbtheone').value).value);
fauxpas_w.document.getElementById('fauxpas' + fauxpas_w.document.getElementById('tbtheone').value).value+=inida.split('#')[0];
if (inida.indexOf('#') != -1) {
fauxpas_w.document.getElementById('fauxpasreally' + fauxpas_w.document.getElementById('tbtheone').value).value+=inida.split('#')[1];
}
}
}
//alert(inida);
return inida;
}
function lfmcs() {
var thisvolume=-1, sofarmaxvol=0;
if (ttt.title == lastlfmcs && ttt.title.indexOf(' mute control') != -1) {
try {
thisvolume=eval('' + event.target.getVolume());
if (lastvolume == 0) { lastvolume=-1; }
} catch(thyu) {
thisvolume=-1;
}
if (thisvolume > 0 && ttt.title.indexOf(' mute control') != -1) {
if (ttt.title.indexOf('maxvol:') == -1) {
ttt.title=ttt.title.replace(' mute control', ' maxvol:' + thisvolume + ' mute control');
lastlfmcs=ttt.title;
} else {
sofarmaxvol=eval(ttt.title.split('maxvol:')[1].split(' mute control')[0]);
if (sofarmaxvol < thisvolume) {
ttt.title=ttt.title.replace('maxvol:' + ttt.title.split('maxvol:')[1].split(' mute control')[0], 'maxvol:' + thisvolume);
lastlfmcs=ttt.title;
}
}
}
} else if (ttt.title != lastlfmcs) {
lastlfmcs=ttt.title;
if (lastvolume <= 0) {
try {
lastvolume=eval('' + event.target.getVolume());
if (lastvolume == 0) { lastvolume=-1; }
} catch(thyu) {
lastvolume=-1;
}
if (lastvolume > 0 && ttt.title.indexOf(' mute control') != -1) {
if (ttt.title.indexOf('maxvol:') == -1) {
ttt.title=ttt.title.replace(' mute control', ' maxvol:' + lastvolume + ' mute control');
lastlfmcs=ttt.title;
} else {
sofarmaxvol=eval(ttt.title.split('maxvol:')[1].split(' mute control')[0]);
if (sofarmaxvol < lastvolume) {
ttt.title=ttt.title.replace('maxvol:' + ttt.title.split('maxvol:')[1].split(' mute control')[0], 'maxvol:' + lastvolume);
lastlfmcs=ttt.title;
}
}
}
}
if (ttt.title.indexOf('maxvol:') != -1) {
maxvolume=eval(ttt.title.split('maxvol:')[1].split(' mute control')[0]);
}
if (lastlfmcs.indexOf('volume:') != -1) {
if (lastlfmcs.split('volume:')[1].toLowerCase().trim().replace(/^0\%/g,'mute').replace(/^100\%/g,'unmute').indexOf('unmute') == 0) {
if (lastvolume > 0) {
try {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (confirm('Okay to unmute ' + (parent.parent.getlasttitleclicked() != '' ? parent.parent.getlasttitleclicked() : parent.document.getElementById('myh1').innerHTML) + ' ?')) {
if (parent.document.getElementById('myh1').innerHTML.indexOf('Karaoke via ') == 0) {
event.target.playVideo();
}
event.target.setVolume(lastvolume);
//if (eval('' + lastvolume) == 0) { alert('OoPS'); }
if (parent.document.getElementById('myh1').innerHTML.indexOf('Karaoke via ') != 0) {
event.target.playVideo();
}
} else {
setTimeout(function(){ top.donothingmute(); }, 30000);
}
} else {
event.target.setVolume(lastvolume);
}
} catch(thyu) {
}
}
} else if (lastlfmcs.split('volume:')[1].toLowerCase().trim().replace(/^0\%/g,'mute').replace(/^100\%/g,'unmute').indexOf('mute') == 0) {
setTimeout(function(){
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (confirm('Okay to mute ' + (parent.parent.getlasttitleclicked() != '' ? parent.parent.getlasttitleclicked() : parent.document.getElementById('myh1').innerHTML) + ' ?')) {
if (parent.document.getElementById('myh1').innerHTML.indexOf('Karaoke via ') == 0) {
event.target.playVideo();
}
event.target.setVolume(0);
if (parent.document.getElementById('myh1').innerHTML.indexOf('Karaoke via ') != 0) {
event.target.playVideo();
}
} else {
setTimeout(function(){ top.donothingmute(); }, 30000);
}
} else {
event.target.setVolume(0);
}
}, 200);
} else if (('' + lastlfmcs.split('volume:')[1].toLowerCase().replace(/^\ /g,'').replace(/^\ /g,'').replace(/^\ /g,'').replace(/^1/g,'0').replace(/^2/g,'0').replace(/^3/g,'0').replace(/^4/g,'0').replace(/^5/g,'0').replace(/^6/g,'0').replace(/^7/g,'0').replace(/^8/g,'0').replace(/^9/g,'0')).indexOf('%') != -1) {
if (('' + lastlfmcs.split('volume:')[1].toLowerCase().replace(/^\ /g,'').replace(/^\ /g,'').replace(/^\ /g,'').split(' ')[0].split(',')[0].split(';')[0].split('|')[0]) > 0) {
if (maxvolume > 0) {
lastvolume=eval(eval(eval('' + lastlfmcs.split('volume:')[1].toLowerCase().replace(/^\ /g,'').replace(/^\ /g,'').replace(/^\ /g,'').split(' ')[0].split(',')[0].split(';')[0].split('|')[0].split('%')[0]) / 100.0) * eval('' + maxvolume));
if (maxvolume < lastvolume) {
ttt.title=ttt.title.replace('maxvol:' + ttt.title.split('maxvol:')[1].split(' mute control')[0], 'maxvol:' + lastvolume);
lastlfmcs=ttt.title;
maxvolume=lastvolume;
}
try {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (confirm('Okay to try unmute ' + (parent.parent.getlasttitleclicked() != '' ? parent.parent.getlasttitleclicked() : parent.document.getElementById('myh1').innerHTML) + ' ?')) {
if (parent.document.getElementById('myh1').innerHTML.indexOf('Karaoke via ') == 0) {
event.target.playVideo();
}
event.target.setVolume(lastvolume);
if (parent.document.getElementById('myh1').innerHTML.indexOf('Karaoke via ') != 0) {
event.target.playVideo();
}
} else {
setTimeout(function(){ top.donothingmute(); }, 30000);
}
} else {
event.target.setVolume(lastvolume);
}
} catch(thyu) {
}
}
} else if (eval('' + lastlfmcs.split('volume:')[1].toLowerCase().replace(/^\ /g,'').replace(/^\ /g,'').replace(/^\ /g,'').split(' ')[0].split(',')[0].split(';')[0].split('|')[0].split('%')[0]) > 0) {
lastvolume=eval('' + lastlfmcs.split('volume:')[1].toLowerCase().replace(/^\ /g,'').replace(/^\ /g,'').replace(/^\ /g,'').split(' ')[0].split(',')[0].split(';')[0].split('|')[0].split('%')[0]);
if (maxvolume < lastvolume) {
ttt.title=ttt.title.replace('maxvol:' + ttt.title.split('maxvol:')[1].split(' mute control')[0], 'maxvol:' + lastvolume);
lastlfmcs=ttt.title;
maxvolume=lastvolume;
}
try {
if (navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)) {
if (confirm('Okay if we try unmute ' + (parent.parent.getlasttitleclicked() != '' ? parent.parent.getlasttitleclicked() : parent.document.getElementById('myh1').innerHTML) + ' ?')) {
if (parent.document.getElementById('myh1').innerHTML.indexOf('Karaoke via ') == 0) {
event.target.playVideo();
}
event.target.setVolume(lastvolume);
if (parent.document.getElementById('myh1').innerHTML.indexOf('Karaoke via ') != 0) {
event.target.playVideo();
}
} else {
setTimeout(function(){ top.donothingmute(); }, 30000);
}
} else {
event.target.setVolume(lastvolume);
}
} catch(thyu) {
}
}
}
}
}
}
function followup() {
var lb='', ilb=2, prevtext=' ', theon='on', thispdu='';
var hgx='';
if (window.parent) {
//alert(parent.document.URL);
if ((parent.document.URL + '~').indexOf('srt=~') != -1 || (parent.document.URL + '~').indexOf('srt' + encodeURIComponent('=') + '~') != -1) {
hgx='srt=';
}
}
if (window.top && hgx == '') {
//alert(parent.document.URL);
if ((top.document.URL + '~').indexOf('srt=~') != -1 || (top.document.URL + '~').indexOf('srt' + encodeURIComponent('=') + '~') != -1) {
hgx='srt=';
}
}
if (document.URL.slice(-4) == 'srt=' || hgx == 'srt=' || ('' + location.hash).replace(/^undefined/g,'').replace(/^null/g,'').replace(/srt\=$/g, '') != ('' + location.hash).replace(/^undefined/g,'').replace(/^null/g,'') && ('' + location.hash).replace(/^undefined/g,'').replace(/^null/g,'').replace(/^#/g,'') != '') {
if (document.getElementById('subripcommentary')) {
if (document.getElementById('subripcommentary').innerHTML == '') {
document.getElementById('subripcommentary').innerHTML='Awaiting pause for SubRip subtitles <div id=divcbi style=display:inline-block;><iframe class="spag" scrolling="no" data-accept="text/*" id="cbi" frameborder="0" style="display:inline-block;width:173px;height:218px;margin-top:-200px;" src="/HTMLCSS/client_browsing.htm?typeJUNKhastobe=text&straightJUNKtext=y&wordJUNKing=Allimages%20images%2E%20"></iframe></div><br><textarea onblur="hgrip=massage(this.value,hgrip);" id=mysubrip></tex