function news(s){ for(n=1;n<5;n++){ newstit=document.getElementById('newstit'+n); newscon=document.getElementById('newscon'+n); newsmore=document.getElementById('newsmore'+n); if(s==n){ newscon.style.display='block'; newsmore.style.display='block'; newstit.style.width='96px'; newstit.style.height='35px'; newstit.style.margin='0px'; newstit.style.color='#fff'; newstit.style.fontSize='14px'; newstit.style.lineHeight='35px'; newstit.style.background='#173F69'; }else{ newscon.style.display='none'; newsmore.style.display='none'; newstit.style.width='68px'; newstit.style.height='27px'; newstit.style.marginTop='8px'; newstit.style.marginRight='1px'; newstit.style.color='#7aa7cd'; newstit.style.fontSize='12px'; newstit.style.lineHeight='27px'; newstit.style.background='#0060b0'; } } } //导航 var oDiv=document.getElementById('headernav'); var oBtn=document.getElementById('navclose'); function nav(){ var stNav=setInterval(function(){ oDiv.style.height = oDiv.offsetHeight + 5 + 'px'; if(oDiv.offsetHeight>270){ clearInterval(stNav); oDiv.style.height=271+'px'; } },10); } function navc(){ var clNav=setInterval(function(){ oDiv.style.height = oDiv.offsetHeight - 5 + 'px'; if(oDiv.offsetHeight<81){ clearInterval(clNav); oDiv.style.height=81+'px'; } },10); } //常用链接 function cylj(lj){ if(lj==1){ document.getElementById('cyljtit').style.background='none'; document.getElementById('cylj').style.display='block'; }else{ document.getElementById('cyljtit').style.background='url(img/subnavicon.jpg) no-repeat right center'; document.getElementById('cylj').style.display='none'; } } function sqrd(rd){ if(rd==1){ document.getElementById('sqrdtit').style.background='none'; document.getElementById('sqrd').style.display='block'; }else{ document.getElementById('sqrdtit').style.background='url(img/subnavicon.jpg) no-repeat right center'; document.getElementById('sqrd').style.display='none'; } } window.onload=function(){}