
var PlayFileList = new Array();
var PlayNum = -1;
var PlayObj = null;
var TextObj = null;
var PlayKey = 0;
function playlist(sPlayObj, sTextObj, sData)
{
	PlayObj = sPlayObj;
	TextObj = sTextObj;
	PlayFileList = sData.split('¡¬');
	for (var i=0;i<PlayFileList.length;i++)
	{
		PlayFileList[i] = PlayFileList[i].split('¡©');
	}
	if (PlayFileList.length>0) playnext();
}

function playnext()
{
	PlayNum++;
	if (PlayNum>=PlayFileList.length) PlayNum = 0;
	if (PlayKey == 0)
	{
		PlayKey = 1;
	}
	else if (document.all)
	{
		PlayObj.filters.revealTrans.Transition=23;
		PlayObj.filters.revealTrans.apply();
        PlayObj.filters.revealTrans.play();
	}
	PlayObj.src=PlayFileList[PlayNum][0];
	TextObj.innerHTML=PlayFileList[PlayNum][1]; 
	theTimer=setTimeout("playnext()", 5000);	
}

function playopen()
{
	if (PlayNum<0) return false;
	var CurUrl = PlayFileList[PlayNum][2];
	if (CurUrl != '') window.open(CurUrl, '_blank');
	return false;
}


