function posicio_fons(){if(!document.getElementById("fons_si_logo")){return }if(!document.getElementById("menu")){return }alt_menu_min=552;alt_logo_ini=376;alt_menu=document.getElementById("menu").offsetHeight;dif=alt_menu-alt_menu_min;alt_logo_fin=alt_logo_ini+dif;document.getElementById("fons_si_logo").style.height=alt_logo_fin+"px"}function idioma(A,B){if(A=="si"){document.getElementById(B).style.background="url('Imatges/Optim/idi_deur.gif')"}if(A=="no"){document.getElementById(B).style.background="url('Imatges/Optim/idi_blau.gif')"}}function mostra_pais(B,A){if(document.getElementById("sub_"+A).style.display==""){document.getElementById("sub_"+A).style.display="none"}else{for(i=1;i<B+1;i++){if(i!=A){document.getElementById("sub_"+i).style.display="none"}else{document.getElementById("sub_"+i).style.display=""}}}posicio_fons()}function mostra_any(B,A){if(document.getElementById("sub_"+A).style.display==""){document.getElementById("sub_"+A).style.display="none"}else{for(i=1;i<B+1;i++){if(i!=A){document.getElementById("sub_"+i).style.display="none"}else{document.getElementById("sub_"+i).style.display=""}}}posicio_fons()}function cambiar_color(C,B,A){document.getElementById(C+1+"_"+B).style.backgroundColor=A;document.getElementById(C+2+"_"+B).style.backgroundColor=A;document.getElementById(C+3+"_"+B).style.backgroundColor=A;document.getElementById(C+4+"_"+B).style.backgroundColor=A;document.getElementById(C+5+"_"+B).style.backgroundColor=A;document.getElementById(C+6+"_"+B).style.backgroundColor=A}function color_partit(C,B,A){document.getElementById(C+"1_"+B).style.backgroundColor=A;document.getElementById(C+"2_"+B).style.backgroundColor=A;document.getElementById(C+"3_"+B).style.backgroundColor=A;document.getElementById(C+"4_"+B).style.backgroundColor=A;document.getElementById(C+"5_"+B).style.backgroundColor=A}function negreta(A,B){A.style.fontWeight=B}function subr(B,A){if(A=="si"){B.style.textDecoration="underline"}if(A=="no"){B.style.textDecoration="none"}}function subratllat(A){if(A=="si"){document.getElementById("txt4").style.textDecoration="underline"}if(A=="no"){document.getElementById("txt4").style.textDecoration="none"}}function pop_idi(A){if(A=="si"){document.getElementById("pop_idioma").style.display=""}if(A=="no"){document.getElementById("pop_idioma").style.display="none"}}function pop_sis(A){if(A=="si"){document.getElementById("pop_sistema").style.display=""}if(A=="no"){document.getElementById("pop_sistema").style.display="none"}}function pop_gmt(A){if(A=="si"){document.getElementById("pop_gmt").style.display=""}if(A=="no"){document.getElementById("pop_gmt").style.display="none"}}function sel(A,B){if(A=="si"){document.getElementById("sub_m"+B).style.display="";document.getElementById("boto"+B).style.background="url('Imatges/Optim/boto_superior_sel.gif')"}if(A=="no"){document.getElementById("boto"+B).style.background="url('Imatges/Optim/boto_superior.gif')";document.getElementById("sub_m"+B).style.display="none"}}function des_sel(A){setTimeout("des_sel("+A+")",256)}function popup(B,A,D,C,E){window.open(B,"","height="+A+",width="+D+",toolbar=0,location=0,directories=0,menubar=0,status=0,resizable="+C+",scrollbars="+E+",left="+((screen.width-D)/2)+",top="+((screen.height-A)/2))}function alerta(A){alert(A)}function welcome(B,A){if(A=="si"){B.style.color="#C6B80F"}if(A=="no"){B.style.color="#5D7C90"}if(A=="si"){blinkar("si")}if(A=="no"){blinkar("no")}}function imatgeg(B,A){document.getElementById(B).src=A}function shlayer(A,B){if(document.getElementById){if(B=="#C6B80F"){B="#C6B80F"}if(B=="#E6EBF0"){B="#E6EBF0"}if(B=="#5D7C90"){B="#5D7C90"}document.getElementById(A).style.color=B}else{if(navigator.appName=="Netscape"&&document.layers!=null){document.layers[A].style.color=B}else{if(document.all!=null){if(B=="#C6B80F"){B="#C6B80F"}if(B=="#E6EBF0"){B="#E6EBF0"}if(B=="#5D7C90"){B="#5D7C90"}document.all[A].style.color=B}}}}function blink(){for(n=0;n<textos.length;n++){shlayer(textos[n],aestado[estado])}id=window.setTimeout("blink();",tiempo);estado=(estado)?0:1}function blink_ini(){textos=new Array("welc_txt");aestado=new Array("#5D7C90","#5D7C90");estado=0;tiempo=300;id=window.setTimeout("blink();",tiempo)}function blinkar(A){clearTimeout(id);textos=new Array("welc_txt");if(A=="si"){aestado=new Array("#C6B80F","#E6EBF0")}if(A=="no"){aestado=new Array("#5D7C90","#5D7C90")}estado=0;tiempo=300;id=window.setTimeout("blink();",tiempo)}function mailsortida(A){correo_sor="mailto: "+A.replace("#","@");document.getElementById("ocmail").href=correo_sor}  function condicions(A){document.getElementById("condi").innerHTML=A}function Enviar_histo(A){A.submit()};