var nav4 = window.Event ? true : false; function acceptNum(evt){ // NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57, '.' = 46 var key = nav4 ? evt.which : evt.keyCode; return (key < 13 || (key >= 48 && key <= 57)); } function openMenu(P_id){ closeTabs(P_id); //innerText=$('#td_'+P_id).html(); //console.log($('#li_'+P_id+' .right').get(0).id); if($('#li_'+P_id+' .right').get(0).id=='active'){ $('#li_'+P_id+' .left').get(0).style.background=''; $('#li_'+P_id+' .center').get(0).style.background=''; $('#li_'+P_id+' .right').get(0).style.background=''; $('#li_'+P_id+' .right').get(0).id=''; $("#ruta_nav").slideUp("slow",closeDiv(P_id)); }else{ $('#li_'+P_id+' .right').get(0).id='active'; $('#li_'+P_id+' .left').get(0).style.background='url(\'http://www.anoiabiketour.com/media/esq.png\')'; $('#li_'+P_id+' .center').get(0).style.background='url(\'http://www.anoiabiketour.com/media/centre.png\')'; $('#li_'+P_id+' .right').get(0).style.background='url(\'http://www.anoiabiketour.com/media/dret.png\')'; $('#ul_sons_'+P_id).get(0).style.display=''; $("#ruta_nav").slideDown("slow"); } return false; } function closeDiv(P_id){ $('#ul_sons_'+P_id).get(0).style.display='none'; } function closeTabs(P_aux_id){ count_lis_=$('#ruta_sup li .left').length; for(i=0;i0&&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