function setFileModeQuality(idx) { document.getElementById("a"+idx).style.backgroundColor = "#ddd"; document.cookie ="filequality="+idx+";expires=Thu, 22-Apr-2038 00:00:00 GMT"; document.getElementById("selected").style.backgroundColor = "#fff"; setTimeout(function() { loadBody("top.html"); }, 200); } function setTVModeQuality(idx) { document.getElementById("a"+idx).style.backgroundColor = "#ddd"; document.cookie ="tvquality="+idx+";expires=Thu, 22-Apr-2038 00:00:00 GMT"; document.getElementById("selected").style.backgroundColor = "#fff"; setTimeout(function() { loadBody("top.html"); }, 200); } function setBonDriver(idx) { document.getElementById("a"+idx).style.backgroundColor = "#ddd"; document.cookie ="bondriver="+idx+";expires=Thu, 22-Apr-2038 00:00:00 GMT"; document.getElementById("selected").style.backgroundColor = "#fff"; setTimeout(function() { loadBody("top.html"); }, 200); } function selectChannel(idx) { document.getElementById("a"+idx).style.backgroundColor = "#ddd"; setTimeout(function() { loadBody("playtv.html?channel="+idx+"&width="+screen.width); }, 200); } function selectFile(idx) { document.getElementById("a"+idx).style.backgroundColor = "#ddd"; setTimeout(function() { loadBody("playfile.html?file="+idx+"&width="+screen.width); }, 200); } function selectDir(idx) { document.getElementById("a"+idx).style.backgroundColor = "#ddd"; setTimeout(function() { loadBody("filelist.html?dir="+idx); }, 200); } function loadBody(page) { document.body.innerHTML = "