var isNav, isIE, isNav2;
var coll = "";
var coy = "";
var styleObj = "";


if (navigator.appVersion.charAt(0) == "5")
 { if (navigator.appName == "Netscape") { 
    isNav2 = true
	coy = "getElementById('"; styleObj = "').style";
   } 
}

else
{ if (navigator.appName == "Netscape") { 
    isNav = true 
	coy = "layers['";styleObj = "']"; 
   } 
else 
	{isIE = true; coll = "all['"; styleObj = "'].style";}
}
var ns = isNav;
var ie = isIE;
var cc = 0;

function getQuery() {//para cambiar FileName del Media plugin para Navigator
  var query = location.search.substring(2, location.search.length-1);
  return query;
}

function cambiaVideo(url) {
//variable baseurlstream se ha de definir y dar valor en el fichero HTML
//variable myurl se define y da valor en el fichero HTML
var myurl;
myurl=document.location.protocol+"//"+document.location.hostname+document.location.pathname;
if (isIE) document.NSOPlay.FileName=baseurlstream+url;
	if (isNav) location.href = myurl + "?" + '"' + url + '"';
}

function iniciartodo(){//se carga OnLoad
	iniciarApplet(); //Registra eventos para Netscape.
}

function iniciarApplet(){	//Registra eventos para Netscape. Se carga OnLoad
	var plugin = document.Video;
//	appObs.setByProxyDSNewStreamObserver(plugin, true);
//	lRetVal = Video.GetCurrentEntry( );
//	alert("Current clip: "+lRetVal);
}
function OnDSNewStreamEvt () //para Navigator
{
//    alert('Nuevo stream');
}