//var correccion=48;

function doResizeit(){
  var e=document.getElementsByTagName("div");
   
	div1=document.getElementById("menutest");
	var marco2= document.getElementById("marco");
		
		 if (navegador=='navigator'){
		
				div1.style.height=marco.clientHeight - correccion;
				div1.style.width=marco.clientWidth - correccion;
			} else {
			
				div1.style.height=marco.clientHeight +2;
				div1.style.width=marco.clientWidth +2;
		}


}


function resolucion(){


if (navigator.appName.indexOf("Internet Explorer")>0){
	
	navegador='ie';
 } else {
	navegador='navigator';
}
//-->
}


function staff(){
	var desc = document.getElementById("viddes");
	var tit = document.getElementById("vidtit");
	var aux = tit.innerHTML;
	if (aux.substring(0,5)=="Staff"){
			desc.innerHTML = " ";
			tit.innerHTML =  " ";
	} else {
			desc.innerHTML = "Alcalde-Presidente: Manuel Ángel Fernández Mateo<br>Jefe de la Unidad de Medios Audiovisuales-Canal Norte digit@l: Eduardo Sánchez Rodríguez<br>Dirección técnica y Documentación: Rafael Cano Botija<br>Dirección de contenidos: Laura Rodríguez Galindo<br>";
			tit.innerHTML = "Staff <span class='tah10'><A HREF='mailto:canalnorte@canalnorte.org'><font color='#969696'>canalnorte@canalnorte.org</font></A></span> ";
	}
}



function redes(id){
  var video2= document.getElementById("valorvideo");
  if (video2.value!=''){
	
		div1= document.getElementById("menutest");
		
		var marcoid = document.getElementById("marco");
	
		marcoid.src=pathweb+"redes.php?id="+id;
		var marco = document.getElementById("marcovideo")
	
		if (div1.style.display == 'none') {
			div1.style.display = 'block'
			if (navegador=='navigator'){
					div1.style.height=marco.clientHeight - correccion;
					div1.style.width=marco.clientWidth - correccion;
				} else {
					div1.style.height=marco.clientHeight;
					div1.style.width=marco.clientWidth;
			}
		} else {
			div1.style.display = 'none'
		}
	} else {
	}
}

function enviar(id, descripcion){
  var video2= document.getElementById("valorvideo");
  if (video2.value!=''){
	var e=document.getElementsByTagName("div");

		div1=document.getElementById("menutest");
		
		var video3=video2.value;
		var marcoid = document.getElementById("marco");
	    var marco = document.getElementById("marcovideo");
		marcoid.src=pathweb+"mandar.php?url="+document.URL+"&id="+id+"&des="+descripcion;
			
		if (div1.style.display == 'none') {
			div1.style.display = 'block'
			if (navegador=='navigator'){
					div1.style.height=marco.clientHeight - correccion;
					div1.style.width=marco.clientWidth - correccion;
				} else {
					div1.style.height=marco.clientHeight;
					div1.style.width=marco.clientWidth;
			}
		} else {
			div1.style.display = 'none'
		}
	} else {
	}
}



function navegar(nombre){
   var e=document.getElementsByTagName("div");

   for(var i=0;i<e.length;i++){

   if ((e[i].id!="pscroller1") && (e[i].id!="pscroller11") && (e[i].id!="pscroller12") && (e[i].id!="viddes")){
   e[i].style.display = 'none'
   }
   }
    var marcoid = document.getElementById("marco");
	marcoid.src = "htm/" + nombre; 
	


}


function navegarout(nombre){
   var e=document.getElementsByTagName("div");

   for(var i=0;i<e.length;i++){
    if ((e[i].id!="pscroller1") && (e[i].id!="pscroller11") && (e[i].id!="pscroller12")){
    e[i].style.display = 'none'
   }
   }
    
	//window.frames[0].window.location =  nombre; 
	window.open(nombre,"CanalNorte"); 
}


 function mostrardiv(texto, event, divaux){

	var e=document.getElementById("tooltipDiv");
	var div1=document.getElementById(divaux);
	e.style.left=parseInt(div1.style.left)+parseInt(div1.style.width)+22;
	e.style.top=parseInt(div1.style.top);
	
 	//e.innerHTML = "<table><tr><td>texto</td></tr></table>";

	e.innerHTML=texto;
	e.style.display = 'block';
 }
 
  function mostrardivbtn(texto, event){

	
 }
 
function ocultardiv(texto){

	}
	

