function openjukebox(asi,asi2)
{
window.open("http://music.thecheers.org/play-list-"+asi2+".html",
	"mywindow","location=no,titlebar=no,status=no,scrollbars=no,resizable=no,address=no,toolbar=no,width=889,height=345");
}
function openfaq(asi)
{
window.open("http://music.thecheers.org/new/faq.php?contentid="+asi,
	"FAQ","location=no,status=0,scrollbars=0,width=300,height=200");
}

function toggleDisplay(me){
	if (me.style.display==""){
		me.style.display="inline";
	}else{
		me.style.display="";
	}
}
function ClearError() {
window.status = "";
return true;
}

window.onerror = ClearError;
// Initialise popup pointer
var popupWin = null;

function openFullScreen(file,pos,autoStart) {
	popupWin = window.open("http://music.thecheers.org/flvgui/index_full.php?show="+file+"&startPos="+pos+"&fullscreen=true&autoStart="+autoStart,'popupWin', "width=100,height=100,status=0,toolbar=0,resizable=0,location=0,menubar=0,scrollbars=0,directories=0");
//	window.open("flv_test_full.php?show="+file+"&startAt="+startAt,"popupWin","width='100%',height='100%'");	
}

function fullScreenClosed(file,pos,autoStart) {
	var myFlashMovie = document.getElementById("scrubber1");
	myFlashMovie.startPlay(file,pos,autoStart);
//	popupWin = window.open("flv_test_full.php?show="+file+"&startAt="+srartAt,"popupWin","width='100%',height='100%'");
//	window.open("flv_test_full.php?show="+file+"&startAt="+srartAt,"popupWin","width='100%',height='100%'");
}

function expand(){
	window.moveTo(0,0);
	window.resizeTo(screen.availWidth,screen.availHeight);
}
function removeScrollBar(){
	document.body.scroll="no";
}

function changeState() {
	window.close();
}
function closeFullScreen(file,pos,autoStart) {
	window.opener.fullScreenClosed(file,pos,autoStart);
	window.close();
}
function closeWindow2() {
	var myFlashMovie = document.getElementById("fullscreen");
	var file = myFlashMovie.getFile();
	var pos = myFlashMovie.getPos();
	var autoStart = myFlashMovie.isPlaying();
	closeWindow(file,pos,autoStart);
}

function tdmouseover(el) {
	el.style.color = "white"
	el.style.backgroundColor = "#FF9900"
}
function tdmouseout(el) {
	el.style.color = "black"
	el.style.backgroundColor = "white"
}
function tdmouseover2(el) {
	el.style.color = "white"
	el.style.backgroundColor = "#006600"
}
function tdmouseout2(el) {
	el.style.color = "black"
	el.style.backgroundColor = "white"
}
function tdmouseover3(el) {
	el.style.color = "white"
	el.style.backgroundColor = "#EA0000"
}
function tdmouseout3(el) {
	el.style.color = "white"
	el.style.backgroundColor = "#ff8b00"
}