function NM_Redireccionar(url) {
	document.location.href = url;
}
function NM_RedireccionarParent(url) {
	if (window.parent) { window.parent.document.location.href = url; } else { NM_Redireccionar(url); }
}
function NM_Ampliar(rz, path, archivoJPG, w, h, title, e) {
	NM_Popup(rz+"editar/selec_foto_mostrar.php?archivo="+archivoJPG+"&src="+("../"+path+archivoJPG)+"&title="+title+"&e="+e, "Musikaze.com", parseInt(w), parseInt(h), false, false, false);
}
function NM_RemplazarStr(str, esto, porEsto) {
	return str.replace(esto, porEsto); 
}
function NM_PrecargarImagen() {
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=NM_PrecargarImagen.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function NM_RestaurarImagen() {
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function NM_BuscarObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=NM_BuscarObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function NM_CambiarImagen() {
  var i,j=0,x,a=NM_CambiarImagen.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=NM_BuscarObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function NM_PaginaCargada(a, b, c) {
	if (b) { return; }
	//if (a) { NM_Foco("txtLogin"); } else { NM_Foco("txtClave"); }
	if (c==416) { NM_Reproductor("next", ""); }
}

function NM_EsNS() { 		agt=navigator.userAgent.toLowerCase(); return (agt.indexOf('netscape') != -1); }
function NM_EsFirefox() { 	agt=navigator.userAgent.toLowerCase(); return (agt.indexOf('firefox') != -1); }
function NM_EsGecko() { 	agt=navigator.userAgent.toLowerCase(); return (agt.indexOf('gecko') != -1); }
function NM_EsSafari() { 	agt=navigator.userAgent.toLowerCase(); return (agt.indexOf('safari') != -1); }
function NM_EsKonqueror() { agt=navigator.userAgent.toLowerCase(); return (agt.indexOf('konqueror') != -1); }
function NM_EsNS4() { 		return (document.layers); }
function NM_EsNS6() { 		return (document.getElementById); }
function NM_EsIE() {		if (NM_EsGecko()) { return false; } return (document.all); }

function NM_RefAux(layerID, a, b) {
	if (document.getElementById) { 	return eval(a + 'document.getElementById("' + layerID + '")' + b); }
	if (document.layers) { 	return eval(a + 'document.' + layerID); }
	if (document.all) { 	return eval(a + 'document.all.' + layerID + b); }
	return null;
}
function NM_Ref(id) {
	return NM_RefAux(id, "", "");
}
function NM_RefS(id) {
	if (!NM_Ref(id)) { return null; }
	return NM_RefAux(id, "", ".style");
}
function NM_RefP(id) {
	return NM_RefAux(id, "window.parent.", "");
}
function NM_RefPS(id) {
	if (!NM_RefP(id)) { return null; }
	return NM_RefAux(id, "window.parent.", ".style");
}
function NM_RefP2(id) {
	return NM_RefAux(id, "window.parent.parent.", "");
}
function NM_RefPS2(id) {
	if (!NM_RefP2(id)) { return null; }
	return NM_RefAux(id, "window.parent.parent.", ".style");
}
function NM_ValorID(id) {
	var r = NM_Ref(id);
	if (r) { return r.value; }
	return -1;
}
function NM_ValorIdP(id) {
	var r = NM_RefP(id);
	if (r) { return r.value; }
	return -1;
}
function NM_CambiarArchivoCSS(id,a) {
	var r = NM_Ref(id);
	if (r) { r.href = a; }
}
function NM_Check_Valor(id,sn,v1,v2) {
	var r = NM_Ref(id);
	if (r) { r.value = (sn)?v1:v2; }
}
function NM_Check_Label(id,sn,t1,t2) {
	var r = NM_Ref(id);
	if (r) { r.innerHTML = (sn)?t1:t2; }
}
function NM_Visible(id,sn) {
	var r = NM_RefS(id);
	if (r) { r.visibility = (sn)?"visible":"hidden"; }
}
function NM_Src(id,src) {
	var r = NM_Ref(id);
	if (r) { r.src = src; }
}
function NM_Display(id,sn) {
	var r = NM_RefS(id);
	if (r) { r.display = (sn)? ((NM_EsIE() || NM_EsSafari()) ? "block" : null) : "none"; }
}
function NM_DisplayP(id,sn) {
	var r = NM_RefPS(id);
	if (r) { r.display = (sn)? ((NM_EsIE() || NM_EsSafari()) ? "block" : null) : "none"; }
}
function NM_Disabled(id,sn) {
	var r = NM_Ref(id);
	if (r) { r.disabled = (sn); }
}
function NM_ToggleVisible(id){
	var r = NM_RefS(id);
	if (r) { r.visibility = (r.visibility=="hidden")?"visible":"hidden"; }
}
function NM_ToggleDisplay(id) {
	var r = NM_Ref(id);
	var css = (r) ? r["className"] : "";
	//if (false && (id == "divCajetinStandalone")) { str = ""; for (vble in r) { str += "vble "+vble+", "+r[vble]+". "; } alert(str); }
	r = NM_RefS(id);
	if (r) { 
		var iniInv = (css=="css_vis_no") && (r.display!="block");
		//if ((iniInv) && (NM_EsIE())) { alert("inicialmente invisible: "+id+" (browserIE: "+NM_EsIE()+")"); }
		r.display = ((r.display=="none") || (iniInv)) ? ((NM_EsIE()) ? "block" : null) : "none"; 
	}
}
function NM_IsDisplayed(id) {
	var r = NM_RefS(id);
	if (!r) { return false; }
	return ((r.display!="none") && (r.display!="") && (r.display!=null) && (r.display!=undefined));
}
function NM_ExtensionArchivoEs(a,b) { 
	return (a.toLowerCase().search(b) > 0);
}
function NM_TextoFocus(txt, str) {
	txt.select();
	//txt.value = "";
}
function NM_TextoBlur(txt, str) {
	if (txt.value=="") { txt.value = str; }
}
function NM_EsIE6() {
	return (navigator.userAgent.toLowerCase().indexOf('msie 6') != -1);
}
function NM_TypePasswd(input) {
    if (NM_EsIE()) {
		var input2 = document.createElement("input"); 
		input2.id = input.id; 
		input2.name = input.name; 
		input2.value = ""; 
		input2.className = input.className; 
		input2.type = "password"; 
	    r = input.parentNode.replaceChild(input2,input);    
		r = NM_Ref("txtClave");
		r.select();
		r.focus();
	} else {
		input.type = "password";
		input.value = "";
    } 
}
function NM_Validar_Email(c) { 
	return !(c.search(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/ig));
}
function NM_Validar_Txt(txt, msg) { 
	if (txt.value == "") {
		alert(msg);
		NM_FocoObj(txt);
		return false;
	}
	return true;
}
function NM_Validar_EsNumero(txt, msg) { 
	if (txt.value != 0) {
		if (!parseInt(txt.value)) {
			alert(msg);
			NM_FocoObj(txt);
			return false;
		}
	}
	return true;
}
function NM_Validar_EsNumPositivo(txt, msg) { 
	if (!NM_Validar_EsNumero(txt, msg)) { return false; }
	if (txt.value < 0) {
		alert(msg);
		NM_FocoObj(txt);
		return false;
	}
	return true;
}
function NM_EditarFoto(kb,lang,t,f,w,h,hid,a,b,c,d,i,e,r,z) {
	NM_Display(a, true);
	refB = NM_Ref(b);
	refB.innerHTML = '<iframe id="'+i+'" name="'+i+'" src="'+r+'editar/selec_foto_subir.php?calcular=1&r='+r+'&kb='+kb+'&lang='+lang+'&w='+w+'&h='+h+'&hid='+hid+'&a='+a+'&b='+b+'&c='+c+'&d='+d+'&i='+i+'&t='+t+'&f='+f+'&e='+e+'&dir='+z+'" allowtransparency=true width=265 height=365 frameborder=0 scrolling=auto></iframe>';
}
function NM_EditarPopup(kb,lang,t,f,w,h,hid,a,b,c,d,i,r) {
	NM_Display(a, true);
	refB = NM_Ref(b);
	refB.innerHTML = '<iframe id="'+i+'" name="'+i+'" src="'+r+'editar/selec_popup_editar.php?calcular=1&r='+r+'&kb='+kb+'&lang='+lang+'&w='+w+'&h='+h+'&hid='+hid+'&a='+a+'&b='+b+'&c='+c+'&d='+d+'&i='+i+'&t='+t+'&f='+f+'" allowtransparency=true width=245 height=345 frameborder=0 scrolling=no></iframe>';
}
function NM_Popup(url,tit,w,h,menu,scrll,resiz) {
	var opt ="menubar="+((menu)?"yes":"no")+",scrollbars="+((scrll)?"yes":"no")+",resizable="+((resiz)?"yes":"no")+",";
	opt +="marginwidth=0, marginheight=0, leftmargin=0, topmargin=0,";
	opt +="width="+w+",height="+h+",";
	opt +="left=0,top=0,screenLeft=0,screenTop=0";
	var v = window.open(url,"Musikaze",opt);
	v.focus();
}
function NM_MensajeOver(msg) {
	window.status = msg; return true;
}
function NM_MensajeOut() {
	window.status = ""; return true;
}
function NM_Foco(id) {
	if (id == "") { return; }
	var r = NM_Ref(id);
	if (r) { NM_FocoObj(r) };
}
function NM_FocoObj(obj) {
	if (obj) { obj.focus(); obj.select(); };
}
function NM_ToggleColor(id,c1,c2) {
	var r = NM_RefS(id);
	r.backgroundColor = (r.backgroundColor==c1)?c2:c1;
}
function NM_ToggleBold(id) {
	var r = NM_RefS(id);
	r.fontWeight = (r.fontWeight=="bold")?"normal":"bold";
}
function NM_Bold(id,sn) {
	var r = NM_RefS(id);
	r.fontWeight = (sn)?"bold":"normal";
}
function NM_Sel(s) {
	if (s) { return s[s.selectedIndex].value; }
	return "";
}
function NM_Texto(a, b) {
	if (NM_EsSafari()) { NM_Display(a, true); }
	r = NM_Ref(a);	if (r) { r.innerHTML = b; }
}
function NM_TextoParent(a, b) {
	if (NM_EsSafari()) { NM_Display(a, true); }
	r = NM_RefP(a);	if (r) { r.innerHTML = b; }
}
function NM_ValorParent(a, b) {
	r = NM_RefP(a);	if (r) { r.value = b; }
}
function NM_Valor(a, b) {
	r = NM_Ref(a);	if (r) { r.value = b; }
}
function NM_Desplegar(id, hidID, btn1, btn2, forzar) {
	var r1 = NM_RefS(id);
	var r2 = NM_Ref(hidID);
	if (forzar == "") {
		NM_ToggleDisplay(id);
		r2.value = (r1.display=="none")?0:1;
		NM_ToggleDisplay(btn1);
		NM_ToggleDisplay(btn2);
	} else {
		var mostrar = (forzar=="si") ? true : false;
		NM_Display(id, mostrar);
		r2.value = (mostrar)?1:0;
		NM_Display(btn1, !mostrar);
		NM_Display(btn2, mostrar);
	}
}
function NM_FormatearNumero(n, c, d, t) {
	var m = ( c = Math.abs( c ) + 1 ? c : 2, d = d || s1, t = t || s2, /(\d+)(?:(\.\d+)|)/.exec( n + "" ) ), x = m[1].length % 3;
	var r = ( x ? m[1].substr( 0, x ) + t : "" ) + m[1].substr( x ).replace( /(\d{3})(?=\d)/g, "$1" + t ) + ( c ? d + ( +m[2] ).toFixed( c ).substr( 2 ) : "" );
	return NM_RemplazarStr(NM_RemplazarStr(r, t+d, t), "N", "00");
}
function NM_FormatearPrecio(n, d, t) {
	return NM_FormatearNumero(n, 2, d, t);
}
function NM_Tienda_Eliminar(lang,kb,rz,p,e,msg) {
	if (!confirm(msg))
		return;
	var altura = 250;
	var r = NM_RefP("hidDesdeTienda");
	if (r) { altura = (r.value==1)?80:altura; }
	NM_TextoParent("divCarroCompra",'<iframe id="iframeCarroCompra" name="iframeCarroCompra" src="'+rz+'editar/selec_tienda_carrito.php?lang='+lang+'&kb='+kb+'&r='+rz+'&e='+e+'" allowtransparency=true width=200 height='+altura+' frameborder=0 scrolling=no></iframe>');
}
function NM_Tienda_Guardar(lang,kb,rz) {
	f = eval("iframeCarroCompra.document.FEditarItems");
	var n = parseInt(f.hidNumItems.value);
	var str = "";
	for (var i=0; i<n; i++) {
		a = eval("f.hidItem_"+i);
		b = eval("f.txtCantidadItem_"+i);
		c = eval("f.hidTallasItem_"+i);
		str = str + parseInt(a.value) + ":" + parseInt(b.value)+ ":" + parseInt(c.value) + ";";
	}
	var altura = 30;
	var r = NM_Ref("hidDesdeTienda");
	if (r) { altura = (r.value==1)?80:altura; }
	NM_TextoParent("divCarroCompra",'<iframe id="iframeCarroCompra" name="iframeCarroCompra" src="'+rz+'editar/selec_tienda_carrito.php?lang='+lang+'&kb='+kb+'&r='+rz+'&g='+str+'" allowtransparency=true width=200 height='+altura+' frameborder=0 scrolling=no></iframe>');
}
function NM_Tienda_Pedir() {
	r = NM_RefP("hidUrlPedido");
	NM_RedireccionarParent("../"+r.value);
}
function NM_Favoritos(a,b,c,d,e,r) {
	NM_TextoParent(a,'<iframe src="'+r+'editar/selec_favoritos.php?pars='+b+','+c+','+d+','+e+'&r='+r+'" allowtransparency=true width=0 height=0 frameborder=0 scrolling=no></iframe>');
}
function NM_Bandeja(a,b,c,d,e,f,r) {
	NM_TextoParent(a,'<iframe src="'+r+'editar/selec_bandeja.php?pars='+b+','+c+','+d+','+e+','+f+'&r='+r+'" allowtransparency=true width=0 height=0 frameborder=0 scrolling=no></iframe>');
}
function NM_ComprobarUsuarioNM(a,b,c,d,e,f,g,r) {
	NM_TextoParent(a,'<iframe src="'+r+'editar/selec_usuarios_check.php?pars='+b+','+c+','+d+','+e+'&f='+f+'&g='+g+'&r='+r+'" allowtransparency=true width=0 height=0 frameborder=0 scrolling=no></iframe>');
}
function NM_ComprobarIDSitioNM(a,b,c,d,e,f,g,r,t,z) {
	NM_Texto("divSitioMsg_"+e, t);
	var txt = '<iframe src="'+r+'editar/selec_sitio_check.php?pars='+b+','+c+','+d+','+e+'&f='+f+'&g='+g+'&r='+r+'" allowtransparency=true width=0 height=0 frameborder=0 scrolling=no></iframe>'; 
	if (z) { NM_TextoParent(a, txt) } else {  NM_Texto(a, txt) }
}
function NM_ConfirmacionCancelarCompra(a) {
	return confirm(a);
}
function NM_FoxH(a, b, c) { 
	if (NM_EsFirefox() || NM_EsNS()) {	r = NM_RefS(a); if (r) { r.height = "2000px"; } }
}
function NM_CambiarIdioma(sel,a,b,c,d) {
	if ((a) && (!NM_SalirSinGuardar(c))) {
		var r = NM_Ref("hidMenuIdiomaPosSelec");
		sel.selectedIndex = r.value;
		return false; 
	}
	if ((b) && (!NM_ConfirmacionCancelarCompra(d))) {
		var r = NM_Ref("hidMenuIdiomaPosSelec");
		sel.selectedIndex = r.value;
		return false; 
	}
	NM_Redireccionar(sel[sel.selectedIndex].value);
}
function NM_Editor_GuardarDatos(a,b) {	
	f = NM_Ref("FEditarItems"); 
	if (!NM_ConfirmarEliminacion(a,b)) { return; }
	f.hidGuardar.value = "si"; 
	f.submit(); 
}
function NM_SalirSinGuardar(msg) {
	r = NM_Ref("FEditarItems");
	if (r) { if (r.hidCambiosGuardados.value != "1") { if (!confirm(msg)) { return false; } } }
	return true;
}
function NM_Explorar_Fecha(f, a, b, c, d) {
	var opc = "";
	var fecha = "";
	if (f.radioXplFecha_1.checked) { opc = 1; fecha = ""; }
	if (f.radioXplFecha_2.checked) { opc = 2; fecha = a; }
	if (f.radioXplFecha_3.checked) { opc = 3; fecha = b; }
	if (f.radioXplFecha_4.checked) { 
		opc = 4; fecha = f.txtXplFiltroFecha.value; 
		if (fecha=="") { alert(c); f.txtXplFiltroFecha.focus(); return; }
	}
	if (f.radioXplFecha_5.checked) { opc = 5; fecha = ""; }
	NM_Redireccionar(d+"fch="+opc+"&amp;date="+fecha);
}
function NM_SeleccionarEdicion(a, b, c) {
	if (c && (!NM_SalirSinGuardar())) {
		var r = NM_Ref("hidEdicionPosSelec");
		a.selectedIndex = r.value;
		return false; 
	}
	NM_Redireccionar(b+"edc="+NM_Sel(a));
}
function NM_ValidarBuscador(f, msg) {
	if (f.buscar.value == "") {
		alert(msg);
		NM_FocoObj(f.buscar);
		return false;
	}
	return true;
}
function NM_Fechas_Val_Calendar(txt, msg) {
	return true;
	if (txt.value != "") {
		if (!calendar.parseDate(txt.value)) {
			alert(msg);
			NM_FocoObj(txt);
			return false;
		}
	}
	return true;
}
function NM_Explorar_Estilo(f, a, b, c) {
	stl 	= parseInt(f.hidIdEstilo1_1.value);
	lbl 	= parseInt(f.hidIdEstilo2_1.value);
	lb2 	= parseInt(f.hidIdEstilo3_1.value);
	pais 	= parseInt(NM_ValorID("hidIdPais"));
	rgn 	= parseInt(NM_ValorID("hidIdRegion"));
	prv 	= parseInt(NM_ValorID("hidIdProvincia"));
	p		= (c) ? "&popup=si" : "";
	NM_Redireccionar(a+"?xpl="+b+"&stl="+stl+"&lbl="+lbl+"&lb2="+lb2+"&pais="+pais+"&rgn="+rgn+"&prv="+prv+p);
}
function NM_Explorar_Pais(f, a, b, c) {
	pais 	= parseInt(f.hidIdPais.value);
	rgn 	= parseInt(f.hidIdRegion.value);
	prv 	= parseInt(f.hidIdProvincia.value);
	stl 	= parseInt(NM_ValorID("hidIdEstilo1_1"));
	lbl 	= parseInt(NM_ValorID("hidIdEstilo2_1"));
	lb2 	= parseInt(NM_ValorID("hidIdEstilo3_1"));
	p		= (c) ? "&popup=si" : "";
	NM_Redireccionar(a+"?xpl="+b+"&pais="+pais+"&rgn="+rgn+"&prv="+prv+"&stl="+stl+"&lbl="+lbl+"&lb2="+lb2+p);
}
function NM_CategoriaSeleccionada(sel) {
	NM_Redireccionar("?cat="+NM_Sel(sel));
}
function NM_DirSeleccionado(sel) {
	NM_Redireccionar("?dir="+NM_Sel(sel));
}
function NM_SeleccionarOtroCorreo(r) {
	r = NM_Ref(r); r.checked = true; NM_Bold('lblBoletinCuenta', !r.checked); NM_Bold('lblBoletinOtro', r.checked); NM_Bold('lblCorreoCuenta', !r.checked); NM_Bold('txtCorreoBoletin', r.checked);
}
function NM_Tienda_ContinuarPaso3() {
	f = NM_Ref("FEditarItems");
	f.hidGuardar.value = "si";
	f.hidRedireccionar.value = "no";
	f.submit();
}
function NM_SlideShow(a, b) {
	r = NM_Ref("hidSlideShow");
	if (r) { kb = r.value; }
	r = NM_Ref("hidSlideShowR");
	if (r) { rz = r.value; }
	if (NM_EsSafari()) { NM_Display("divVistaSlide", true); NM_Display("divVistaNormal", false);	}
	NM_Texto("divSlideShow",'<iframe id="iframeSlideShow" name="iframeSlideShow" src="'+rz+'editar/selec_slideshow.php?opc='+a+'&id='+b+'&kb='+kb+'&r='+rz+'" allowtransparency=true width=0 height=0 frameborder=0 scrolling=no></iframe>');
}
function NM_SlideShowLink(a) {
	NM_SlideShow("pause", a);
}
function NM_Radio(a, b, c) {
	r = NM_RefP("hidReproductor");
	if (r) { kb = r.value; }
	r = NM_RefP("hidReproductorR");
	if (r) { rz = r.value; }
	NM_TextoParent("divRadio", '<iframe id="iframeRadio" name="iframeRadio" src="'+rz+'editar/selec_radio.php?opc='+a+'&kb='+kb+'&r='+rz+'&s='+c+'" allowtransparency=true width=272 height=100 frameborder=0 scrolling=auto></iframe>');
}
function NM_ReproductorP(a, b) {
	r = NM_RefP("hidReproductor");
	if (r) { kb = r.value; }
	r = NM_RefP("hidReproductorR");
	if (r) { rz = r.value; }
	NM_TextoParent("divReproductor",'<iframe id="iframeReproductor" name="iframeReproductor" src="'+rz+'editar/selec_reproductor.php?opc='+a+'&kb='+kb+'&r='+rz+'&id='+b+'" allowtransparency=true width=219 height=88 frameborder=0 scrolling=auto></iframe>');
}
function NM_Reproductor(a, b) {
	r = NM_Ref("hidReproductor");
	if (r) { kb = r.value; }
	var rz = "";
	r = NM_Ref("hidReproductorR");
	if (r) { rz = r.value; }
	if (NM_EsSafari()) { NM_Display("divVistaSlide", true); NM_Display("divVistaNormal", false);	}
	NM_Texto("divReproductor",'<iframe id="iframeReproductor" name="iframeReproductor" src="'+rz+'editar/selec_reproductor.php?opc='+a+'&kb='+kb+'&r='+rz+'&id='+b+'" allowtransparency=true width=219 height=88 frameborder=0 scrolling=auto></iframe>');
}
function NM_ReproductorLink(a) {
	NM_Reproductor("play", a);
}
var cuantos=0;
function NM_Reproducir(a, b) {
	r = NM_RefP("flashReproductor");
	r2 = NM_RefPS("flashReproductor");
	if (r) {
		r.SetVariable("doit", "now");
		if (b != "") {
			r.SetVariable("player.contentPath", b);
			r.SetVariable("path.text", b);
		}
		r.SetVariable("accion.text", a);
		//r.Rewind();
	}
	if (r2) {
		if (b.substring(b.length - 3, b.length).toLowerCase() == "flv") {
			//r2.height=470;
		} else {
			//r2.height=80;
		}
	}
	NM_ReproductorImg(a);
}
function NM_ReproductorImg(a) {
	var r = NM_Ref("hidReproductorR");
	if (r) { rz = r.value; }
	var radio = false;
	var r = NM_Ref("hidEsRadioNM");
	if (r) { radio = r.value; }
	var img = (radio) ? "radio" : "reproductor";
	r = NM_Ref("btnsReproductor");
	if (r) { r.src = rz+"imgs/"+img+"_"+a+".gif"; }
}
function NM_VideoDestacado(a, rz) {
	NM_Texto("divVideoPortada",'<iframe id="iframeReproductor" name="iframeReproductor" src="'+rz+'editar/selec_videodestacado.php?r='+rz+'&kb='+a+'" allowtransparency=true width=0 height=0 frameborder=0 scrolling=auto></iframe>');
}
function NM_PopupLocalizacion(s) {
	var kb = s.split(",");
	var i = kb[0]; var l = kb[1]; var a = kb[2]; var b = kb[3]; var c = kb[4]; var d = kb[5]; var rz = kb[6]; var w = kb[7]; var h = kb[8]; var cs = kb[9]; 
	r = NM_Ref("idSpanPais_"+i);
	if (r) {
		if (r.innerHTML != "") { return; }
		NM_Texto("idSpanPais_"+i,'<iframe id="idIframePais_'+i+'" src="'+rz+'editar/selec_localizacion_pais.php?v=si&f=FEditarItems&i='+i+'&l='+l+'&a='+a+'&b='+b+'&c='+c+'&d='+d+'&cp=&loc=-1&css='+cs+'" allowtransparency=true width='+w+' height='+h+' frameborder=0 scrolling=no></iframe>');
	}
}
function NM_PopupInvitacion(url, cod, id) {
	var nom = "";
	var r = NM_Ref(id);
	if (r) { nom = r.value; }
	NM_Popup(url+"?type=a&srv="+cod+"&nom="+nom, "Musikaze.com", 480, 450, false, true, false);
}
function NM_On(a, b, c, d, rz) {
	r = NM_RefP(b);
	if (r) { if (r.value != "") {
		NM_Texto(a, '<iframe src="'+rz+'editar/selec_online.php?a='+c+'&'+d+'='+r.value+'" width=0 height=0></iframe>');
	} }
}
function NM_Timer(a, b, t) {
	NM_Texto(a, b);
	setTimeout('NM_Timer(\''+a+'\',\''+b+'\','+t+')', t) ;
}
function NM_ListaIdiomas(a, b, c, kb, rz) {
	NM_Display("divActualIdiomas", false); NM_Display("divSelecIdiomas", true); NM_Texto("divLoadingIdiomas", c);
	NM_Src(a, rz+"editar/selec_idiomas.php?b="+b+"&kb="+kb+"&r="+rz);
}
function NM_ListaIdiomasCerrar() {
	NM_Display("divSelecIdiomas", false); NM_Display("divActualIdiomas", true); NM_Texto("divLoadingIdiomas", "");
}
function NM_ListaMonedas(a, b, c, kb, rz) {
	NM_Display("divActualMonedas", false); NM_Display("divSelecMonedas", true); NM_Texto("divLoadingMonedas", c);
	NM_Src(a, rz+"editar/selec_monedas.php?b="+b+"&kb="+kb+"&r="+rz);
}
function NM_ListaMonedasCerrar() {
	NM_Display("divSelecMonedas", false); NM_Display("divActualMonedas", true); NM_Src("idIfrMonedas", "");
}

