function pintar(celda1,celda2,palabra1,palabra2){
	palabra1.style.visibility ="visible";
	palabra2.style.visibility ="hidden";
	celda2.bgColor="#0000FF";
	celda1.bgColor="#0000FF";
	celda2.style.cursor="hand";
//	celda1.style.cursor="hand";
	reproducirSonido();
}
function despintar(celda1,celda2,palabra1,palabra2){
	palabra1.style.visibility ="hidden";
	palabra2.style.visibility ="visible";
	celda2.bgColor="#000000";
	celda1.bgColor="#000000";	
}
function reproducirSonido(){
	document.all.sound.src="click.wav";
}
function vermapa(palabra){
	palabra.style.display="block";
}
function desvermapa(palabra){
	palabra.style.display="none";
}
function blanco(palabra){
	palabra.style.color="#FFFFFF";
//	palabra.style.cursor="hand";
}
function azul(palabra){
	palabra.style.color="#0000FF";
//	palabra.style.cursor="hand";
}
function gris(palabra){
	palabra.style.color="#666666";
//	palabra.style.cursor="hand";
}
function negro(palabra){
	palabra.style.color="#000000";
//	palabra.style.cursor="hand";
}
function rojo(palabra){
	palabra.style.color="#FF0000";
//	palabra.style.cursor="hand";
}
function verde(palabra){
	palabra.style.color="#00FF00";

//	palabra.style.cursor="hand";
}
function turquesa(palabra){
	palabra.style.color="#33FFFF";

//	palabra.style.cursor="hand";
}
function subrayar(palabra){
	palabra.style.textDecoration = "overline";

}
function desubrayar(palabra){
	palabra.style.textDecoration = "none";
}

//function celdaEnlace(c1,c2,c3,c4,c5,p1,p2,p3){
//	document.getElementById('c1').style.background="#0000FF";
//	document.getElementById('c2').style.background="#0000FF";
//	document.getElementById('c3').style.background="#0000FF";
//	document.getElementById('c4').style.background="#0000FF";
//	document.getElementById('c5').style.background="#0000FF";
//	p2.style.display="none";
//	p3.style.display="none";
//}
//function enciendeBarra(palabra,celda){
//	celda.style.display="none";
//	palabra.style.display="block";
//    document.all.barra.style.display="block";
//}
//function apagaBarra(palabra,celda){
//	celda.style.display="block";
//	palabra.style.display="none";	
//}

function cambiaTabla(tEntra,tSale1,tSale2){
	tSale1.style.display="none";
	tSale2.style.display="none";
	tEntra.style.display="block";
}
	
var arrSlideStyles = new Array();
arrSlideStyles = ['PUSH'];
var i = 0;

var bToggle = 0;

function fnToggle(texto) {
//	if(i==0){
    oDiv.filters[0].slideStyle = arrSlideStyles[bToggle];
	oDiv.innerText="          "+texto;
    oDiv.filters[0].Apply();        
    oDiv.style.backgroundColor="blue"; 
	oDiv.filters[0].Play();
//	}
//	i=num;
}
function ponerTexto(texto){
	oDiv.innerText="          "+texto;
}

// ---> Funciones NuestraModa <--- //
// intercambio de imagenes

function apareceimg(img){
	img.style.display="block";	
}
function desapareceimg(img){
	img.style.display="none";	
}

// mostrar detalles prendas

function mostrarPrenda(celda,img){
	celda.background = "../imagenes/nm/"+img;	
}
//leer fichero
function abrirFichero() 
{ 
var fso,ageneral,contenido,root; 
root="\\localhost:8080\Noticias\este.txt"; //aki vendria la ruta entera donde esta alojado el fichero. Ejemplo:\\20.20.20.20\tmp\fichero.txt 

fso = new ActiveXObject("Scripting.FileSystemObject"); 
if (fso.FileExists(root)) //si existe 
{ 
ageneral = fso.OpenTextFile(root,1, true); //se abre el archivo 
while(!ageneral.AtEndOfStream ) //lee hasta final de fichero 
{ 
contenido=contenido+ageneral.ReadLine(); //lee linea y anyade a la variable 
} 
ageneral.Close(); //cierra fichero 
alert(contenido); 
} 
else //si no existe 
{ 
alert("El fichero no existe"); 
} 
}
