
	var tnidartista=77; // Identificador del artista

	var ccodint1=-1;
	var ccodint2=-1;

	var pagDet1="";
	var pagList1="";	

	var pagDet2="";
	var pagList2="";
	
	var nPostsListadoIndex = 0;
	var nPostsListado = 0;
	
	
	var language = (navigator.userLanguage)? navigator.userLanguage : navigator.language;
	var idioma = language.substring(0,2);	
	var sPath = window.location.pathname;
	//var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	
if (location.hash!="#en") {
	if (sPage == "biografia_en.asp")
		window.location = "/biografia.asp"
	switch (idioma){ 
		case "es": 
		locale = "ES"; 
		break; 
		default : 
		locale = "EN"; 
		break; 
		} 
} else 
{
		
	if (sPage == "biografia.asp")
		window.location = "/biografia_en.asp?#en"
	locale = "EN"
	
}

	//alert("idioma:" + idioma);


// Cambia el idioma de las imágenes

$(document).ready(function(){

  $("img").each(function() {

                        imagen = $(this).attr('src')
						if (imagen)
						{
                                   if (locale == "ES") imagen = imagen.replace("/en/", "/es/");      

                                   else imagen = imagen.replace("/es/", "/en/");      

                                   $(this).attr('src', imagen)
						}
						
                  

});

 $("div").each(function() {

                        imagen = $(this).attr('class')
//alert(imagen);
								if (imagen){
                                   if (locale == "ES") imagen = imagen.replace("_en", "_es");      

                                   else imagen = imagen.replace("_es", "_en");      

                                   $(this).attr('class', imagen)
								}

});
 
 
  $("link").each(function() {

                        imagen = $(this).attr('href')
//alert(imagen);
								if (imagen){
                                   if (locale == "ES") imagen = imagen.replace("_en", "_es");      

                                   else imagen = imagen.replace("_es", "_en");      

                                   $(this).attr('href', imagen)
								}

});
  
  $("input").each(function() {

                        imagen = $(this).attr('src')
//alert(imagen);
								if (imagen){
                                  if (locale == "ES") imagen = imagen.replace("/en/", "/es/");      

                                   else imagen = imagen.replace("/es/", "/en/");      

                                   $(this).attr('src', imagen)
								}

});
  
  $("a").each(function() {

                      						
                        imagen = $(this).attr('onmouseover')
						if (imagen)
						{
							
                                   if (locale == "ES") imagen = imagen.replace("/en/", "/es/");      

                                   else imagen = imagen.replace("/es/", "/en/");      

                                   $(this).attr('onmouseover', imagen)
						}

                        imagen = $(this).attr('onmouseout')
						if (imagen)
						{
                                   if (locale == "ES") imagen = imagen.replace("/en/", "/es/");      

                                   else imagen = imagen.replace("/es/", "/en/");      

                                   $(this).attr('onmouseout', imagen)
						}

});

 });

