


<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}




function muestra_oculta(id){
if (id!="")
{
		if (document.getElementById){ //se obtiene el id
	var el = document.getElementById(id); //se define la variable "el" igual a nuestro div
	try
	{
	el.style.display = (el.style.display == 'none') ? 'block' : 'none'; //damos un atributo display:none que oculta el div		
	}
	catch (err)
	{
	}

	}
	}
	window.onload = function(){/*hace que se cargue la función lo que predetermina que div estará oculto hasta llamar a la función nuevamente*/
	muestra_oculta('carroVOLAN');/* "contenido_a_mostrar" es el nombre que le dimos al DIV */
	}

}



function muestra_images(id){

try
{
if (document.getElementById){ //se obtiene el id
var elimage = document.getElementById(id); //se define la variable "el" igual a nuestro div
elimage.style.display = (elimage.style.display == 'block') ? 'none' : 'block'; //damos un atributo display:none que oculta el div
}

window.onload = function(){/*hace que se cargue la función lo que predetermina que div estará oculto hasta llamar a la función nuevamente*/
muestra_images('gallery');/* "contenido_a_mostrar" es el nombre que le dimos al DIV */
}
	
}
catch (err)
{
}
}



var peticion = false; 
if (window.XMLHttpRequest) {
      peticion = new XMLHttpRequest();
      } else if (window.ActiveXObject) {
            peticion = new ActiveXObject("Microsoft.XMLHTTP");
}

function vertodas()
{
	if (onsoc=="bt1")
	{
	top.location="catalogo.asp?C/Nov/T/0/0/0/Novedades_Europeo"
	}
	if (onsoc=="bt2")
	{
	top.location="catalogo.asp?L/Nov/0/0/0/0/Novedades_Libros"
	}
	if (onsoc=="bt3")
	{
	top.location="catalogo.asp?M/Nov/0/0/0/0/Novedades_Merchandising"
	}
	if (onsoc=="bt4")
	{
	top.location="catalogo.asp?D/Nov/0/0/0/0/Novedades_DVD-Blu-Ray"
	}
}



onsoc=""; 
si=0;
function CambiarEstilo(id) {

	var elementosMenu = getElementsByClassName(document, "li", "activo");
	for (k = 0; k< elementosMenu.length; k++) {
	elementosMenu[k].className = "inactivo";
	}
	var identity=document.getElementById(id);
	identity.className="activo";
	onsoc=id
	top.frames["wrap"].document.location="wrap.asp?bt="+id
}


function getElementsByClassName(oElm, strTagName, strClassName){

    var arrElements = (strTagName == "*" && document.all)? document.all : oElm.getElementsByTagName(strTagName);
    var arrReturnElements = new Array();
    strClassName = strClassName.replace(/\-/g, "\\-");
    var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
    var oElement;
    for(var i=0; i<arrElements.length; i++){
        oElement = arrElements[i];      
        if(oRegExp.test(oElement.className)){
            arrReturnElements.push(oElement);
        }   
    }
    return (arrReturnElements)
}



function cambiaColor(){ 
	try
	{
    var i 
    for (i=0;i<document.merchan.color.length;i++){ 
       if (document.merchan.color[i].checked) 
          break; 
    } 
    return(document.merchan.color[i].value)		
	}
	catch (err)
	{
		return(0)
	}

} 



function Resultado(c1,c2,c3,c4,c5,c6)
{
top.location="resultado.asp?"+c1+"/"+c2+"/"+c3+"/"+c4+"/"+c5+"/"+c6
}


function Catalogo(c1,c2,c3,c4,c5,clle)
{
	if (c4=="0")
	{
		c6="Todas_las_novedades"
	}
	if (c4=="1")
	{
		c6="Novedades_Europeo"
	}
	if (c4=="8")
	{
		c6="Novedades_USA"
	}
	if (c4=="5")
	{
		c6="Novedades_Manga"
	}

top.location="catalogo.asp?"+c1+"/"+c2+"/"+c3+"/"+c4+"/"+c5+"/"+clle+"/"+c6
}


function logout()
{
    answer=confirm("Confirmar para desconectar usuario")
	if (answer)
	{
	top.location="logout.asp"
	}
}






function muestra_mascomics(id){

try
{
if (document.getElementById){ //se obtiene el id
var elbloc = document.getElementById(id); //se define la variable "el" igual a nuestro div
elbloc.style.display = (elbloc.style.display == 'none') ? 'block' : 'none'; //damos un atributo display:none que oculta el div
}

window.onload = function(){/*hace que se cargue la función lo que predetermina que div estará oculto hasta llamar a la función nuevamente*/
muestra_mascomics('menuLatDRETA_comics_ficha');/* "contenido_a_mostrar" es el nombre que le dimos al DIV */
}
	
}
catch (err)
{
}

}


var ima=false;
function cambiar(obj) {
  obj.src = (ima) ? 'images/up.png' : 'images/down.png';
  ima = !ima;
}



function muestra_masmerchandising(id){

try
{
if (document.getElementById){ //se obtiene el id
var elblocmerchan = document.getElementById(id); //se define la variable "el" igual a nuestro div
elblocmerchan.style.display = (elblocmerchan.style.display == 'block') ? 'none' : 'block'; //damos un atributo display:none que oculta el div
}

window.onload = function(){/*hace que se cargue la función lo que predetermina que div estará oculto hasta llamar a la función nuevamente*/
muestra_masmerchandising('menuLatDRETA_merchandising_ficha');/* "contenido_a_mostrar" es el nombre que le dimos al DIV */
}
	
}
catch (err)
{
}

}




var ima2=false;
function cambiar2(obj) {
  obj.src = (ima2) ? 'images/down.png' : 'images/up.png';
  ima2 = !ima2;
}





function muestra_maslibros(id){

try
{
if (document.getElementById){ //se obtiene el id
var elbloclibros = document.getElementById(id); //se define la variable "el" igual a nuestro div
elbloclibros.style.display = (elbloclibros.style.display == 'block') ? 'none' : 'block'; //damos un atributo display:none que oculta el div
}

window.onload = function(){/*hace que se cargue la función lo que predetermina que div estará oculto hasta llamar a la función nuevamente*/
muestra_maslibros('menuLatDRETA_libros_ficha');/* "contenido_a_mostrar" es el nombre que le dimos al DIV */
}
	
}
catch (err)
{
}

}



var ima3=false;
function cambiar3(obj) {
  obj.src = (ima3) ? 'images/down.png' : 'images/up.png';
  ima3 = !ima3;
}






function muestra_masdvd(id){

try
{
if (document.getElementById){ //se obtiene el id
var elblocdvd = document.getElementById(id); //se define la variable "el" igual a nuestro div
elblocdvd.style.display = (elblocdvd.style.display == 'block') ? 'none' : 'block'; //damos un atributo display:none que oculta el div
}

window.onload = function(){/*hace que se cargue la función lo que predetermina que div estará oculto hasta llamar a la función nuevamente*/
muestra_masdvd('menuLatDRETA_dvd_ficha');/* "contenido_a_mostrar" es el nombre que le dimos al DIV */
}
	
}
catch (err)
{
}

}




var ima4=false;
function cambiar4(obj) {
  obj.src = (ima4) ? 'images/down.png' : 'images/up.png';
  ima4 = !ima4;
}








