\n');
// if ( realOnPC ) {RealPlayer = true;} else {RealPlayer = false;}
// } else { if(navigator.userAgent.indexOf("Mac")>=0) {RealPlayer = false} // IE on Mac is unstable! so don't use RealAudio here.
// }
// }
//
// All Realplayer pluging checks are disabled since Realplayer is very common these days.
RealPlayer = true;
function start()
{
if(timerRunning)clearTimeout(timerID);
timerRunning = false;
jbcol=0; boxani();
}
function boxani()
{
timerID = setTimeout("boxani()",2000);
timerRunning = true;
// if (navigator.appName == "Netscape") {
document.jbb.src = "Jbani/box"+jbcol+".jpg";
document.jbt.src = "Jbani/top"+jbcol+".jpg";
jbcol++;
if (jbcol>5) jbcol=1;
// }
}
function next() {
choise++;
if (choise>10) choise=1;
SetImg();
setSRC();
document.vote.choise.value=choise;
}
function prev() {
choise--;
if (choise<1) choise=10
SetImg(choise);
setSRC(choise)
document.vote.choise.value=choise;
}
function setSRC() {
if (RealPlayer) {
// if (navigator.appName == "Netscape") {
document.RaPlayer.SetSource("rtsp://demo.ritbit.net/JukeBox/jb"+choise+".rm");
// } else {
document.RaPlayer.Src=("rtsp://demo.ritbit.net/JukeBox/jb"+choise+".rm");
// }
}
}
function vote(){
document.vote.submit();
}
function play() {
// if (navigator.appName == "Netscape") {
if (RealPlayer) {
document.RaPlayer.DoPlayPause();
}
}
function SetImg() {
// if (navigator.appName == "Netscape") {
document.keuze.src = "Kaartjes/"+choise+".jpg";
// }
}
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1) endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name)
{ var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg) return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
} return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : "");
}
if (GetCookie ('Vir2l')=="Voted") window.location="bedankt.html";
//if (navigator.appName!="Netscape" || parseInt(navigator.appVersion)<3) window.close=(window.alert('Sorry, Netscape3 or higner required. (intensive JavaScript use.)\n\n continue?'));
// -->