function rollover(imagen,estado){
	
	eval("document."+imagen+".src='img/"+imagen+estado+".gif'")
	
	}
//función para dirigir el buscador de la cabecera
function accion(){
termino=document.forms[0].termino.value
if (document.forms[0].donde.options[document.forms[0].donde.selectedIndex].value=="1") {
document.forms[0].action="busqueda.asp"
document.forms[0].submit()
}
if (document.forms[0].donde.options[document.forms[0].donde.selectedIndex].value=="2"){
 document.forms[0].action="buscador2.asp?categoria=todas"
 document.forms[0].submit()
 }
if (document.forms[0].donde.options[document.forms[0].donde.selectedIndex].value=="3") {
document.forms["busGoogle"].q.value=termino
document.forms["busGoogle"].submit()
//document.location.href="http://www.google.com/search?q="+termino+""
}
if (document.forms[0].donde.options[document.forms[0].donde.selectedIndex].value=="4") {
document.location.href="http://www.casadellibro.com/busquedas/quickResults/0,,1-t-"+termino+",00.html?tBusq=t&tValueForSearch="+termino+"&cFo=true&ca=791&rOd=&NotQueryAgain=false"
}
}
// Abrir ventana nueva
function openwindow(url,x,y) {
v=open(url,"name","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width="+x+",height="+y);
}
function recomendar(articulo){
openwindow('recomendar.asp?articulo='+articulo,416,250)
}
var VentanaInterior = function(idImagen){
    capaContenedor = document.getElementById("contenedorContenido");
	 fragmentoDocumento = document.createDocumentFragment ();
	 this.idImagen = idImagen;
	 this.crearContenedor();
	 this.crearCierre();
	 this.crearEnlace();
	 this.crearImagen();
	 this.crearTexto()
	 enlaceCierre.appendChild(textoCerrar);
	 enlacePagina.appendChild(textoPagina);
	 tituloNuevo.appendChild(textoNuevo);
	 parrafoNuevo.appendChild(texto2Nuevo);
	 capaContenedorAmpliaciones.appendChild(enlaceCierre);
	 capaContenedorAmpliaciones.appendChild(enlacePagina);
	 capaContenedorAmpliaciones.appendChild(imgPantallazo);
	 fragmentoDocumento.appendChild(capaContenedorAmpliaciones);
	  capaContenedor.appendChild(fragmentoDocumento);
	  contenedorAmpliaciones.appendChild(tituloNuevo)
	  contenedorAmpliaciones.appendChild(parrafoNuevo)
	 /////////////////////////////////////////////
	 enlaceCierre.onclick = function(){
	     borrarFragmento();
		  return false;
		  
	 };
	 imgPantallazo.onclick= function(){
	 lanzarPagina2();
	 }
	 tituloNuevo.onclick= function(){
	 lanzarPagina();
	 }
}
VentanaInterior.prototype = {
    //rutasImg: ["img_uniforme_01_grande.jpg","img_uniforme_02_grande.jpg",""],
    crearContenedor: function(){
	    var idContenedor = "contenedorAmpliaciones";
		 capaContenedorAmpliaciones = document.createElement ("div");
		 capaContenedorAmpliaciones.id = idContenedor;
		 with(capaContenedorAmpliaciones.style){
		     position = "absolute";
			  top = "100px";
			  left = "120px";
			  width = "609px";
			  height = "580px";
			  
			  backgroundColor="#FFF";
			  border= "3px solid #A41507";
			  zIndex = 10000;
			  
		 }
	 },
	 
	 crearTexto: function(){
	 tituloNuevo = document.createElement ("h1");
	 textoNuevo = document.createTextNode("Nuevo libro de Ediciones Minotauro Digital:                                      En torno a los márgenes, de Santiago Rodríguez");
	 tituloNuevo.title="En torno a los márgenes, de Santiago Rodríguez Guerrero-Strachan";
	 
	 parrafoNuevo = document.createElement ("p");
	 texto2Nuevo = document.createTextNode("Santiago Rodríguez Guerrero-Strachan, En torno a los márgenes. Ensayos de literatura poscolonial, Madrid, Minotauro Digital, 2008, 176 págs. 16 €.");
	 
	  with(parrafoNuevo.style){
		   position = "absolute";
			left = "14px";
			top = "530px";
			display ="block";
			color = "#000";
			fontSize = "15px";
			fontFamily="DIN,Arial"
			//textDecoration = "underline";
		 }
	 with(tituloNuevo.style){
		   position = "absolute";
			left = "44px";
			top = "25px";
			display ="block";
			color = "#A41507";
			fontSize = "25px";
			textDecoration = "underline";
			cursor="hand";
		 }
	 },
	 crearCierre: function(){
	    enlaceCierre = document.createElement ("a");
		 enlaceCierre.id = "cerrar";
		 enlaceCierre.href = "#";
		 textoCerrar = document.createTextNode ("Cerrar Ventana");
		 with(enlaceCierre.style){
		   position = "absolute";
			left = "500px";
			top = "5px";
			display ="block";
			color = "#000";
			fontSize = "12px";
			textDecoration = "underline";
		 }
	 },
	 
	 
	 
	 crearEnlace: function(){
	    enlacePagina = document.createElement ("a");
		 enlacePagina.id = "enlace";
		 enlacePagina.href = "http://www.minotaurodigital.net/textos.asp?art=218&seccion=Libros&subseccion=del%20Minotauro";
		 enlacePagina.title="Solicite ya su ejemplar de En torno a los márgenes"
		 textoPagina = document.createTextNode ("EN TORNO A LOS MÁRGENES. ENSAYOS DE LITERATURA POSCOLONIAL analiza la literatura que crece en el margen de la civilización europea tras la descolonización. «La mejor literatura no se está escribiendo en los centros tradicionales de la cultura, sino que proviene de los márgenes de lo que fue la civilización occidental: la India, Nigeria, el Caribe, Hispanoamérica o Yugoslavia, también Turquia y algunos países islámicos». Guerrero- Strachan analiza el porqué de este fénomeno, sus características y lo que de común tienen sus autores.                                                 SANTIAGO RODRÍGUEZ GUERRERO-STRACHAN es profesor titular de lengua y literatura inglesa en la Universidad de Valladolid. Se ha interesado por la recepción de Edgar Allan Poe en España, investigación que quedó refl ejada en su libro Presencia de Edgar A. Poe en la literatura española del siglo XIX. Ha traducido diferentes relatos, entre otros los de Henry James. Recientemente ha prologado la Antología del cuento grotesco publicada en Espasa-Calpe. Es colaborador habitual de publicaciones culturales como Lateral y Archipélago, y de otros medios impresos y digitales.");
		 with(enlacePagina.style){
		   position = "absolute";
			left = "20px";
			top = "100px";
			display ="block";
			color = "#A41507";
			fontSize = "14px";
			fontFamily="Arial";
			textDecoration = "none";
			textAlign="justify";
			fontWeight="normal";
			 zIndex = 10000;
			  width = "310px";
		 }
	 },
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 crearImagen: function(){
	    imgPantallazo = document.createElement ("img");
	    imgPantallazo.id = "imgPantallazo";
	    imgPantallazo.src = "img/portada_margenes.jpg";
		imgPantallazo.alt="Pulse para comprar tu ejemplar";
		 with(imgPantallazo.style){
		 cursor="hand";
		   position = "absolute";
			top="130px";
			left="346px";
		 }
	 }
	 
}
var ventanaAbierta = false;
var crearVentanaInterior = function(idImagen){
   if(ventanaAbierta == true){
	 borrarFragmento();
   }
	 nuevaVentana = new VentanaInterior(idImagen);
	 ventanaAbierta = true;
}

var borrarFragmento = function(){
    capaContenedor.removeChild (capaContenedorAmpliaciones);
	 delete (fragmentoDocumento);
	 ventanaAbierta = false;
}
var lanzarPagina = function(){
document.location.href="http://www.minotaurodigital.net/textos.asp?art=218&seccion=Libros&subseccion=del%20Minotauro"
}

var lanzarPagina2 = function(){
document.location.href="http://www.minotaurodigital.net/textos.asp?art=218&seccion=Libros&subseccion=del%20Minotauro"
}

