function click(e) { 
if (document.all) { 
if (event.button==1||event.button==2||event.button==3) { 
oncontextmenu='return false'; 
} 
} 
if (document.layers) { 
if (e.which == 3) { 
oncontextmenu='return false'; 
} 
} 
} 
if (document.layers) { 
document.captureEvents(Event.MOUSEDOWN); 
} 
document.onmousedown=click; 
document.oncontextmenu = new Function("return false;") 
var travel=true 
var hotkey=17 /* hotkey即为热键的键值,是ASII码,这里99代表c键 */ 
if (document.layers) 
document.captureEvents(Event.KEYDOWN) 
function gogo(e) 
{ if (document.layers) { 
if (e.which==hotkey&&travel){ 
alert("操作错误.或许是您按错了按键!"); } } 
else if (document.all){ 
if (event.keyCode==hotkey&&travel){ alert("操作错误.或许是您按错了按键!"); }} 
} 
document.onkeydown=gogo;

//改变图片大小
function resizepic(thispic)
{
if(thispic.width>700){thispic.height=thispic.height*700/thispic.width;thispic.width=700;} 
}
//无级缩放图片大小
function bbimg(o)
{
  var zoom=parseInt(o.style.zoom, 10)||100;
  zoom+=event.wheelDelta/12;
  if (zoom>0) o.style.zoom=zoom+'%';
  return false;
}
//双击鼠标滚动屏幕的代码
var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",30);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos !=document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize

//更改字体大小
var status0='';
var curfontsize=10;
var curlineheight=18;
function fontZoomA(){
  if(curfontsize>8){
    document.getElementById('fontzoom').style.fontSize=(--curfontsize)+'pt';
	document.getElementById('fontzoom').style.lineHeight=(--curlineheight)+'pt';
  }
}
function fontZoomB(){
  if(curfontsize<64){
    document.getElementById('fontzoom').style.fontSize=(++curfontsize)+'pt';
	document.getElementById('fontzoom').style.lineHeight=(++curlineheight)+'pt';
  }
}







function showmenu(TID){
TID.className="leftnavb";
var ja;
for(var i=0;i<=1;i++){
id ="nava"+i;
ea = document.getElementById("arta"+i);
ja = document.getElementById(id);
if(id != TID.id)
{
ja.className="leftnava";
ea.className = "leftnavbodyn";
}
else
{
ea.className = "leftnavbodyb";
}
}
}


