
/* ---------------------------------------------------------------------- *\

  Function    : editor_defaultConfig

  Description : default configuration settings for wysiwyg editor

\* ---------------------------------------------------------------------- */



function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function Lanzafamilias1(li,texto,num,colo) {
 // direccionar a frames 
 var texto_compuesto= "";
 var link2,link3;
 //link3 = "imagen.php?idfamilia=" + num;
 link3 = "imgfam.php?idfamilia=" + num;
 link4 = "inferior.php?idfamilia=" + num+ "&catalogo=1"+"&ficha=0" ;
 if (num <10) {
  num = "0" + num;
 }
 
 texto_compuesto = texto ;
 link2 = "superior.php?texto1=" + texto_compuesto + "&color=" + colo + "&num=" + num;
 //parent.subm.location=li;
 
 parent.parent.superior.location= link2;
 //cambiamos la imagen a la primera:
 
 parent.info.location=link3;
 
 parent.parent.foot.location = link4;
  //alert("link2:"+link2);
}

function Lanzasubfamilias1(li,texto,num,fami,ficha) {
 // direccionar a imagen.php 
 
 //parent.info.location=li;
 if(num==137)
   link4 = "inferior.php?idfamilia=" + fami + "&idproducto=" + num + "&catalogo=" + 1 + "&idficha=" + ficha + "&ficha=0";
 else  
   link4 = "inferior.php?idfamilia=" + fami + "&idproducto=" + num + "&catalogo=" + 1 + "&idficha=" + ficha + "&ficha=1";
 parent.parent.foot.location = link4;
 
}

function Lanzasup(menu,opemp,opcatalogo,opnot,opcontac,posanumeret) {
 // direccionar a frames 
 var link2;
 //parent.cont.location=menu;
 parent.foot.location= "inferior.php?opempresa="+opemp+"&idfamilia=" + "1"+ "&catalogo=" + opcatalogo+ "&noticias=" + opnot + "&contacto=" + opcontac;
 //parent.right_frame.location="page4.htm";
 if(posanumeret == 1) {
  link2 = "superior.php?texto1=" + "LENTICULAR 3D " + "&color=" + "EA860B" + "&num=" + "01";
  parent.superior.location= link2;
 }
 else {
  link2 = "superior.php?texto1=" + " " + "&color=" + "DC4515" + "&num=" + " ";
  parent.superior.location= link2;
  }
 // document.location.href = li;

}


function Activafamilias1() {
  
  //alert(prueba);
  document.all.chk1.focus();
  //document.all.chk1.click();
  document.all.chk1.focus();
}
function Activasubfamilias1() {
  ;
}

function Lanzaopcion(li) {
 
 //parent.cont.info.location=li;
 
 
}

function Lanzaopcion2(li) {
 
 var tt = document.getElementById("textarea").value;
 
 if (tt=="MORPH" || tt=="ZOOM" || tt=="MOVIE" || tt=="REALITY" || tt=="FLIP" || tt=="DISTANCE") {
   parent.cont.info.location="lenti.php?nombre=" + tt;  
 }
 else {
 ;//parent.cont.info.location=li;
 }
 
 //parent.right_frame.location="page4.htm";

 // document.location.href = li;
  //alert("texto:"+texto);
}

function Lanzabotones(li) {
 // direccionar a frames 
 parent.cont.location=li;
 
 //parent.right_frame.location="page4.htm";

 // document.location.href = li;
  //alert("texto:"+texto);
}

function CambiaDescrip(val1) {

 document.getElementById("textarea").value=val1;
 //document.forms.form1.textarea.value=val1;
 //alert(valor1);

}

function cambiafotonoticias(img1,opcion) {

//var imagengrande = document.all.fotogran.movie;
var imagengrande = document.getElementById('fotogran').movie;


if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    
	  document.getElementById('fotogran').data=img1;
	  document.getElementById('fotogran').movie=img1;	  
	  window.location="noticias.php?gran=" + img1;
	  //}
  }
 else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    //return document.getElementById(movieName);
	document.all.fotogran.movie=img1;
	document.getElementById('fotogran').data=img1;
	
  }



}

function cambiafotonovedades(img1,opcion) {

//var imagengrande = document.all.fotogran.movie;
var imagengrande = document.getElementById('fotogran').movie;


if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    
	  document.getElementById('fotogran').data=img1;
	  document.getElementById('fotogran').movie=img1;	  
	  window.location="novedades.php?gran=" + img1;
	  //}
  }
 else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    //return document.getElementById(movieName);
	document.all.fotogran.movie=img1;
	document.getElementById('fotogran').data=img1;
	
  }



}

function cambiafotoferias(img1,opcion) {

//var imagengrande = document.all.fotogran.movie;
var imagengrande = document.getElementById('fotogran').movie;


if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    
	  document.getElementById('fotogran').data=img1;
	  document.getElementById('fotogran').movie=img1;	  
	  window.location="ferias.php?gran=" + img1;
	  //}
  }
 else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    //return document.getElementById(movieName);
	document.all.fotogran.movie=img1;
	document.getElementById('fotogran').data=img1;
	
  }



}


/* ---------------------------------------------------------------------- */