var lastfmt = '';
var is_ie = navigator.appVersion.toLowerCase().indexOf('msie') != -1;


function load_unicast_stream (fmt, desc)
{
	load_stream (fmt, desc, true)
}


function load_stream (fmt, desc, unicast)
{
	var u = "player.html?stream="+fmt+"&u="+unicast+"&format="+desc;
	
	if (parent) 
	{
		parent.g_htmlview = false;  // set the htmlview flag to false so that the PLAY will be called on the .asx file
		if (is_ie) parent.load_stream (fmt, desc, unicast)
		else parent.document.location.href = u;
	} 
	else 
	{
		alert ('parent document not found');
	}
	
	lastfmt = fmt;
}


/* underline the current stream */
function selectFormat(fmt) {	
	if (parent && is_ie) {
		parent.selectFormat (fmt);
	}
}
