	function montaPgVideos(){
		categoriaVi = "";
		var contConteudo = document.getElementById("conteudo");
		contConteudo.innerHTML = "";
		
		var table1 	= document.createElement("table");
			table1.setAttribute("border"  	 , "0");
			table1.setAttribute("cellpadding", "0");
			table1.setAttribute("cellspacing", "0");
			table1.setAttribute("style", 	   "margin-top:0px;");
			
		var table2 	= document.createElement("tbody");
			
			
		var tr 		= document.createElement("tr");
		
		var td 		= document.createElement("td");
			td.setAttribute("width", "60%");
			td.setAttribute("valign", "top");
		var divViAt = document.createElement("div");
			divViAt.setAttribute("id", "videoAtual");
			td.appendChild(divViAt);
			tr.appendChild(td);
			
		var td2 		= document.createElement("td");
			td2.setAttribute("valign", "top");
			td2.setAttribute("width",  "40%");
		var divListaVid	= document.createElement("div");
			divListaVid.setAttribute("id", "listaVideos");
			divListaVid.setAttribute("class", "fade0");
			td2.appendChild(divListaVid);
			tr.appendChild(td2);
			
			table2.appendChild(tr);
			table1.appendChild(table2);
			contConteudo.appendChild(table1);
			capaVideos = true;
			mostraLista();

	}
	
	function mostraVideo(id, cat){
		if(id == null){id  = "0";}
		if(cat != null){categoriaVi  = cat;}
		AjaxRequest();
		if(!Ajax) {
			alert("Erro na chamada do AJAX, seu navegador não oferece suporte á AJAX");
			return;
		}
		Ajax.onreadystatechange = carregaVideo;
		Ajax.open('GET', 'includes/conteudo.php?conteudo=s&p=v&a=v&id=' + id + "&idioma=" + idioma + "&cat=" + categoriaVi, true);
		Ajax.send(null);
	}
	function carregaVideo(){
		if (Ajax.readyState == 4) {
			if (Ajax.status == 200) {
				//alert(Ajax.responseText);
				montaVideo(Ajax.responseXML);
			} else {
				document.getElementById("videoAtual").innerHTML = '[Erro no Servidor]';
			}
		}else{
			document.getElementById("videoAtual").innerHTML = "<div style='width:600px; height:280px; text-align:center; vertical-align:middle;'>"+carregando()+"</div>";
		}
	}
	function montaVideo(xmlDoc){
		var formaVideo = document.getElementById("videoAtual");
			formaVideo.innerHTML = "";
		var embeded    = "Video not Found";
		var titDesc    = "ERRO";
		var descricao  = Ajax.responseXML + Ajax.responseText;
		if(xmlDoc.hasChildNodes()) {
			if(navigator.appName == "Microsoft Internet Explorer"){
				embeded    = xmlDoc.childNodes[1].childNodes[0].firstChild.nodeValue;
				titDesc    = xmlDoc.childNodes[1].childNodes[1].firstChild.nodeValue;
				descricao  = xmlDoc.childNodes[1].childNodes[2].firstChild.nodeValue;
			}else{
				embeded    = xmlDoc.childNodes[0].childNodes[0].firstChild.nodeValue;
				titDesc    = xmlDoc.childNodes[0].childNodes[1].firstChild.nodeValue;
				descricao  = xmlDoc.childNodes[0].childNodes[2].firstChild.nodeValue;
			}
		}
			formaVideo.innerHTML = "<span></span><div style='margin-top:5px;'>" + embeded + "</div><br><div style='margin-top:-10px; width:605px; font-family:Verdana, Helvetica; font-size:9px;'><b>" + titDesc + ":  </b>" + descricao + "</div>";
	}
	function mostraLista(page, cat){
		if(cat != null){categoriaVi  = cat;}
		if(page == null){page  = "1";}
		pagina  = 2;
		//pagina  = page;
		teclas();
		AjaxRequest();
		//alert("c="+categoriaVi);
		if(!Ajax) {
			alert("Erro na chamada do AJAX, seu navegador não oferece suporte á AJAX");
			return;
		}
		Ajax.onreadystatechange = carregaLista;
		//alert('includes/conteudo.php?conteudo=s&p=v&a=l&page=' + page + "&idioma=" + idioma + "&cat=" + categoriaVi);
		Ajax.open('GET', 'includes/conteudo.php?conteudo=s&p=v&a=l&page=' + page + "&idioma=" + idioma + "&cat=" + categoriaVi, true);
		Ajax.send(null);
	}
	function carregaLista(){
		if (Ajax.readyState == 4) {
			if (Ajax.status == 200) {
					//alert("XML LISTA = " + Ajax.responseXML);
					//alert("TXT LISTA = " + Ajax.responseText);
					montaLista(Ajax.responseXML);
				
			} else {
				document.getElementById("listaVideos").innerHTML = '[Erro no Servidor]';
			}
		}else{
			document.getElementById("listaVideos").innerHTML = carregando();
		}
	}
	function montaLista(xmlDoc){
		
		var formaLista = document.getElementById("listaVideos");
		formaLista.style.display="none";
		var listaVideosXml 	= "";
		if(xmlDoc.hasChildNodes()) {
			
			if(navigator.appName == "Microsoft Internet Explorer"){

				var imagemVideo 	= xmlDoc.childNodes[1].childNodes[0].firstChild.nodeValue;
				
				var imagensTopo		= xmlDoc.childNodes[1].childNodes[1].firstChild.nodeValue;
				
				var paginacao		= xmlDoc.childNodes[1].childNodes[2].firstChild.nodeValue;
				
				//var listaVideosXml 	= xmlDoc.childNodes[1].childNodes[3];
			}else{
				
				var imagemVideo 	= xmlDoc.childNodes[0].childNodes[0].firstChild.nodeValue;
				
				var imagensTopo		= xmlDoc.childNodes[0].childNodes[1].firstChild.nodeValue;
				
				var paginacao		= xmlDoc.childNodes[0].childNodes[2].firstChild.nodeValue;
				
				//var listaVideosXml 	= xmlDoc.childNodes[0].childNodes[3];
			}
			
			var resultado  		= "<img src='" + imagemVideo + "'><br><div style='margin-top:0px;top:0px;'>" + imagensTopo + "</div><br><div class='listaVideosItem'>";
			var listaFinal = "";
			listaVideosXml = xmlDoc.getElementsByTagName("lista")[0];
			var tamam = (listaVideosXml.hasChildNodes()) ? listaVideosXml.childNodes.length : 0 ;

			if(tamam > 0){

				listaFinal 	 += "<div style='height:200px;'><table>";
				for(var i = 0; i<tamam; i++){
						listaFinal 	 += "<tr style='cursor:pointer;' onClick='mostraVideo(" + listaVideosXml.childNodes[i].childNodes[6].firstChild.nodeValue + ")'>";
						listaFinal 	 += "	<td valign='top'>";			  
						listaFinal 	 += "		<img id='_fotos_x_" + i + "' onmouseover=\"sobreFoto('_fotos_x_" + i + "', true);\" onmouseout=\"foraFoto('_fotos_x_" + i + "', true)\" src='" + listaVideosXml.childNodes[i].childNodes[0].firstChild.nodeValue + "' style='margin-left:18px;'>";
						listaFinal 	 += "	</td>";
						listaFinal 	 += "	<td valign='top'>";
						listaFinal 	 += listaVideosXml.childNodes[i].childNodes[1].firstChild.nodeValue;
						listaFinal 	 += "	<br>";
						listaFinal 	 += listaVideosXml.childNodes[i].childNodes[2].firstChild.nodeValue;
						listaFinal 	 += "		-";
						
						listaFinal 	 += listaVideosXml.childNodes[i].childNodes[3].firstChild.nodeValue;
						listaFinal 	 += "	<br>";
						listaFinal 	 += listaVideosXml.childNodes[i].childNodes[4].firstChild.nodeValue + ":";
						listaFinal 	 += listaVideosXml.childNodes[i].childNodes[5].firstChild.nodeValue;
						listaFinal 	 += "	</td>";
						listaFinal 	 += "</tr>";
				}
				
				listaFinal 	 += "</table></div>";
				listaFinal 	 += "	<br><span style='padding-left:30px;font-family:verdana; font-size:11;'>" + paginacao + "</span>";
			}else{

				if(idioma == "pt"){
					listaFinal += "<div style='margin-top:70px;margin-bottom:170px; margin-left:30px;'>Sem videos nesta lista</div>";
				}else if(idioma == "en"){
					listaFinal += "<div style='margin-top:70px;margin-bottom:170px; margin-left:30px;'>There are no videos in this category.</div>";
				}
			}
			listaFinal 	 += "</div>";
			
			resultado += listaFinal;
			//alert(resultado);
			formaLista.innerHTML = resultado;
			formaLista.style.display="block";
			fade('listaVideos', 1);
			if(capaVideos == true){
				mostraVideo();
				capaVideos = false;
				fadeMeio();
			}
		}else{
			formaLista.innerHTML = "ERRO NA LISTA" + xmlDoc;
		}
	}
