// by rob
/*var seconds = 5;
var divid = "plive";
var url = "plive.php";

function refreshDiv(){
    var xmlHttp;
    try{
        xmlHttp=new XMLHttpRequest();
    }
    catch (e){
        try{
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer
        }
        catch (e){
            try {
                xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch (e) {
                alert("your browser does not support the needed AJAX");
    return false;
            }
        }
    }
    fetch_unix_timestamp = function()
    {
        return parseInt(new Date().getTime().toString().substring(0, 10))
    }
    var timestamp = fetch_unix_timestamp();
    var nocacheurl = url+"?t="+timestamp;
    xmlHttp.onreadystatechange=function(){
        if(xmlHttp.readyState==4){
            document.getElementById(divid).innerHTML=xmlHttp.responseText;
            setTimeout('refreshDiv()',seconds*1000);
        }
    }
    xmlHttp.open("GET",nocacheurl,true);
    xmlHttp.send(null);
}

window.onload = function startrefresh(){
    setTimeout('refreshDiv()',seconds*1000);
}
*/
function showList(id) {
	document.getElementById('list1').style.display = 'none';
	document.getElementById('list2').style.display = 'none';
	document.getElementById('list3').style.display = 'none';
	document.getElementById('list'+id).style.display = 'block';
}

function showVideo(id) {
	document.write("<object width=\"318\" height=\"251\"><param name=\"movie\" value=\"http://www.youtube.com/v/"+id+">&amp;hl=en&amp;fs=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/"+id+"&amp;hl=en&amp;fs=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"318\" height=\"251\"></embed></object>");
}
