// funciones javascript para menu var NS4,NS6,IE4,IE5,vis,invis var c_altura,c_cont,c_pos,c_desp,c_velo,funciona_scroll NS4 = (document.layers) ? true : false; IE4 = (document.all && !document.getElementById) ? true : false; IE5 = (document.all && document.getElementById) ? true : false; NS6 = (!document.all && document.getElementById) ? true : false; if(NS4){vis="shown";invis="hide";}else{vis="visible";invis="hidden";} document.onmousedown=click; if (NS6){document.addEventListener("mouseup",alerta,false);} function alerta(e){ if (e.which == 3) {alert("Antena Media Andalucía");return false;} } function click(e) { NS4 = (document.layers) ? true : false; if (NS4) {if (e.which == 3) {alert("Antena Media Andalucía");return false;}} else {if(NS6){}else{if (event.button == 2) {alert("Antena Media Andalucía");return false;}}} } function email(){ alto=screen.height;ancho=screen.width;ancho2=520;alto2=340; izda=(ancho/2)-(ancho2/2);arriba=(alto/2)-(alto2/2); if(document.layers){ miv6=window.open("email.php?", "TP", "toolbar=no,left="+izda+",top="+arriba+",titlebar=no,scrollbars=no,resize=no,copyhistory=0,width="+ancho2+",height="+alto2); }else{ miv6=window.open("email.php?", "TP", "toolbar=no,left="+izda+",top="+arriba+",titlebar=no,scrollbars=0,Resizable=0,copyhistory=0,width="+ancho2+",height="+alto2); } miv6.focus() } function boletin(){ alto=screen.height;ancho=screen.width;ancho2=520;alto2=340; izda=(ancho/2)-(ancho2/2);arriba=(alto/2)-(alto2/2); if(document.layers){ miv6=window.open("boletin.php?", "BO", "toolbar=no,left="+izda+",top="+arriba+",titlebar=no,scrollbars=no,resize=no,copyhistory=0,width="+ancho2+",height="+alto2); }else{ miv6=window.open("boletin.php?", "BO", "toolbar=no,left="+izda+",top="+arriba+",titlebar=no,scrollbars=0,Resizable=0,copyhistory=0,width="+ancho2+",height="+alto2); } miv6.focus() } function scroll(dir){ // dir==0 --> flecha arriba, osea, bajar la capa if(funciona_scroll){ if(IE4){capa=document.all.contenedor;}else{capa=document.getElementById("contenedor");} if((dir&&(c_pos0))){ if(c_velo==1 || (c_velo>1 && ((dir&&(c_pos(c_velo-1)))))){ if(dir){prox=c_pos+c_velo;}else{prox=(c_pos-c_velo);} c_pos=prox; capa.style.clip="rect("+String((c_pos*c_desp))+" 470 "+String(228+(c_pos*c_desp))+" 0)"; capa.style.top=55-(c_pos*c_desp); } } setTimeout("scroll("+dir+")",100); } } function inicia_scroll(){ funciona_scroll=0; if(IE4){capa=document.all.contenedor;capa2=document.all.cargando;}else{capa=document.getElementById("contenedor");capa2=document.getElementById("cargando");} c_desp=20; c_velo=1; c_cont=0; c_altura=capa.offsetHeight; if(c_altura>228){ if(IE4){document.all.elscroll.style.visibility="visible";}else{document.getElementById("elscroll").style.visibility="visible";} c_cont=Math.ceil((c_altura-228)/c_desp); c_pos=0; capa.style.pixelTop=55; } capa2.style.visibility="hidden"; capa.style.visibility="visible"; } function ini_scroll(d){ if(d==-1){funciona_scroll=0;c_velo=1;}else{funciona_scroll=1;scroll(d);} } function velocidad(n){ c_velo=n+1; } function documentacion(){ if(c_cont!=0){ c_pos=c_cont; capa.style.clip="rect("+String((c_pos*c_desp))+" 470 "+String(228+(c_pos*c_desp))+" 0)"; capa.style.top=55-(c_pos*c_desp); } }