Note: Small images are links to full-size versions.
Layout is for full-screen mode at resolution 1024x758.\
'
// --------------- Auxiliary variables --------------------
var millisec = 1000
var soundOn = false
var interval = 300
var i=0
var t
var n = mycontent.length-1
var dir = location.href.substring(0,location.href.lastIndexOf('/')+1)
var voice = "no.mp3";
var voices = ["no.mp3","no.mp3","no.mp3","no.mp3","no.mp3","no.mp3","no.mp3"]
var advance = [true,true,true,true,true,true,false]
// -------------------------- key event handler ----------------------------
document.onkeydown=Keyhandler;
function Keyhandler (e){
var oEvent = window.event ? window.event : e;
if(oEvent.keyCode == 33 || oEvent.which == 37) {
mystop(); i=((i=i-1)==-1?i:i-1); altercontent(); }
if(oEvent.keyCode == 34 || oEvent.which == 39) {
mystop(); altercontent(); }
}
function showStatus(){
tmp=document.getElementById("dcontent");
tmp.innerHTML=
"voice="+voice+", i="+i+", n="+n+", voices = ["+voices
+"], introduction="+voices[n-i]+"."
}
function newinterval(ival){
interval = ival;
tmp = document.getElementById("newt");
tmp.value = interval;
}
function mystop(){ clearTimeout(t) }
function altercontent(){ // ======= Page shift controller ================
i=(i==n)? 0 : i+1
if (document.all) { // IE
dcontent.innerHTML=mycontent[i];
} else // non-IE
if (document.getElementById){
rng = document.createRange();
el = document.getElementById("dcontent");
rng.setStartBefore(el);
htmlFrag = rng.createContextualFragment(mycontent[i]);
while (el.hasChildNodes()) el.removeChild(el.lastChild);
el.appendChild(htmlFrag);
}
if (i) {
if (advance[n-i]){
t=setTimeout("altercontent()",interval*millisec);
}
} else { tmp=document.getElementById("newt"); tmp.value=interval; }
}
// ------------------------ end of auxiliary JavaScript functions -----------
i=n
window.onload=altercontent
// - End of JavaScript - -->