idi_1= new Image(); idi_1.src = 'img/catala.gif';	
idi_1s= new Image(); idi_1s.src = 'img/catala_2.gif';	
idi_2= new Image(); idi_2.src = 'img/castella.gif';	
idi_2s= new Image(); idi_2s.src = 'img/castella_2.gif';	

function Detect_Ip(id,nom){ if(document.images) document.images[id].src=eval(nom+".src"); } 
function posicionamiento_web_e() { window.event.srcElement.style.display = "None"; } 

function mostra_contingut(nrecipient,nomMenu,nomImg,nomCont,max){
  idMenu=nomMenu+nrecipient;
  objMenu=document.getElementById(idMenu);
  idImg=nomImg+nrecipient;
  objImg=document.getElementById(idImg);
  idRecip=nomCont+nrecipient;
  objRecip=document.getElementById(idRecip);
  if(objRecip && objRecip.style && objMenu && objMenu.style && objImg && objImg.style)
  {   
    for(i=1;i<=max;i++)
    {
      idObjM=nomMenu+i;
      idObjI=nomImg+i;
      idObj=nomCont+i;
      if(idRecip!=idObj)
      {																										
        objM=document.getElementById(idObjM);
	    objI=document.getElementById(idObjI);
        obj=document.getElementById(idObj);      
        if(obj && obj.style && objM && objM.style && objI && objI.style)
	{
	  objM=objM.style;
	  objI=objI.style;
          obj=obj.style;

          objI.visibility='hidden';
	  obj.visibility='hidden';
	  obj.display='none';	  
        }
      }
    }    
    objMenu=objMenu.style;    
    objImg=objImg.style;
    objRecip=objRecip.style;
//    objMenu.color='#135b6e';
    objImg.visibility='visible';
    objRecip.visibility='visible';
    objRecip.display='block';    
  }  
}

var NUM_OPCIONS=4;
function subOpcions(num){     
    for(i=1;i<=NUM_OPCIONS;i++){
      oobj=document.getElementById("opcio"+i);
      obj=document.getElementById("subOpcio"+i);
      if(!obj){
        alert("No existeix la opcio "+i);
        return;
      }
      if(i==num){
        if(oobj)oobj.style.background="#f7fff7";
		oobj.style.font.color="#438b8d";
        obj.style.visibility='visible';
        obj.style.display='block';
      }
      else{
        if(oobj)oobj.style.background="#438b8d";
		oobj.style.font.color="#f7fff7";
        obj.style.visibility='hidden';
        obj.style.display='none';
      }
    } 
}

var NUM_OPCIONS2=2;
function subOpcions2(num){     
    for(i=1;i<=NUM_OPCIONS2;i++){
      obj=document.getElementById("subOpcio2"+i);
      if(!obj){
        alert("No existeix la opcio "+i);
        return;
      }
      if(i==num){
        obj.style.visibility='visible';
        obj.style.display='block';
      }
      else{
        obj.style.visibility='hidden';
        obj.style.display='none';
      }
    }
    
}
var NUM_TEXT=1;
function text(num){     
    for(i=1;i<=NUM_TEXT;i++){
      obj=document.getElementById("text"+i);
      if(!obj){
        alert("No existeix el text "+i);
        return;
      }
      if(i==num){
        obj.style.visibility='visible';
        obj.style.display='block';
      }
      else{
        obj.style.visibility='hidden';
        obj.style.display='none';
      }
    }
    
}
var NUM_index=4;
function index(num){     
    for(i=1;i<=NUM_index;i++){
      obj=document.getElementById("index"+i);
      if(!obj){
        alert("No existeix el text "+i);
        return;
      }
      if(i==num){
        obj.style.visibility='visible';
        obj.style.display='block';
      }
      else{
        obj.style.visibility='hidden';
        obj.style.display='none';
      }
    }
    
}
usuario="web"
dominio="einnova.com" 
conector="@"

function dame_correo(){
   return usuario + conector + dominio
}

function escribe_enlace_correo(){
   document.write("<a class=\"adress\" href='mailto:" + dame_correo() + "'>" + dame_correo() + "</a>")
} 
function escribe_enlace_correo2(){
   document.write("<a href='mailto:" + dame_correo() + "' target=\"_blank\">" + dame_correo() + "</a>")
} 
function escribe_enlace_correo3(){
   document.write("<a class=\"sub2\" href='mailto:" + dame_correo() + "' target=\"_blank\">" + dame_correo() + "</a>")
} 
<!-- Begin
function popup(){
cancho = 500
calto = 405
var size = "top=0, left=0, width="+cancho+" ,height="+calto;
window.open('normativas.htm','ventana',size);
}
// End -->

// Browser Slide-Show script.
// With image cross fade effect for those browsers that support it.
var slideCache = new Array();
function RunSlideShow(pictureName,imageFiles,displaySecs,timeseg)
{
var t = timeseg;
var imageSeparator = imageFiles.indexOf(";");
var nextImage = imageFiles.substring(0,imageSeparator);
if (document.all)
{
document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
document.getElementById(pictureName).filters.blendTrans.Apply();
}
document.getElementById(pictureName).src = nextImage;
if (document.all)
{
document.getElementById(pictureName).filters.blendTrans.Play();
}
var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length)
+ ';' + nextImage;
setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+","+t+")",displaySecs*t);
// Cache the next image to improve performance.
imageSeparator = futureImages.indexOf(";");
nextImage = futureImages.substring(0,imageSeparator);
if (slideCache[nextImage] == null) {
slideCache[nextImage] = new Image;
slideCache[nextImage].src = nextImage;
}
}
<!-- Begin
function Redimensio(id, src, w, h, alt) {
do{
var iw = document.body.clientWidth;
if (src == null) return;
if (id == null) id = "idd";
if (w == null) w = 100;
if (h == null) h = 100;
if(alt == null) alt = "Picture";
var sw = Math.round(w*(iw/1024));
var sh = Math.round(h*(iw/1024));	
document.write('<img id="'+id+'" src="'+src+'" alt="'+alt+'" width="'+sw+'" height="'+sh+'" border="0">');
}while(window.onReload)
}
// End -->


