var gPlayerType;


function convertHMStoSec(str)
{
	str = new String(str);
	var strArray = str.split(":");
	var arrayLength = strArray.length;
	var totalSeconds = 0;
	
	if ((arrayLength - 1) >= 0)
	{
		totalSeconds = parseFloat(strArray[arrayLength - 1]);
		if ((arrayLength - 2) >= 0)
		{
			totalSeconds += parseInt((strArray[arrayLength - 2]), 10) * 60;
			if ((arrayLength - 3) >= 0)
			{
				totalSeconds += parseInt((strArray[arrayLength - 3]), 10) * 60 * 60;
			}
		}
	}
	return totalSeconds
}


function init(playerType)
{
	gPlayerType = playerType;
	//gTimerID = window.setInterval("getPosDoEvent()", 50);

}


function skipToChapter(timeStr)
{
	if (timeStr != "#") {
		var player = window.document.MediaPlayer;
		
		player.controls.CurrentPosition = convertHMStoSec(timeStr);
	}
}
