//改变图片大小
function resizepic(thispic)
{
if(thispic.width>700) 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()
{
  //if(typeof(timer)!="undefined")
  if(timer>0)
  {
  clearInterval(timer);
  timer=0
  }
  else
  timer=setInterval ("scrollwindow ()",30);
}
//function sc()
//{
//  if(typeof(timer)!="undefined"){
//  clearInterval(timer);}
	
//}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos !=document.body.scrollTop)
//sc();
  {
  clearInterval(timer);
  timer=0
  }



}




var dragapproved=false
var z,x,y
function move(){
if (event.button==1&&dragapproved){
z.style.pixelLeft=temp1+event.clientX-x
z.style.pixelTop=temp2+event.clientY-y
return false
}
}
 
 
//document.onmousedown=sc
document.ondblclick=initialize




var dragapproved=false
var z,x,y
function move(){
if (event.button==1&&dragapproved){
z.style.pixelLeft=temp1+event.clientX-x
z.style.pixelTop=temp2+event.clientY-y
return false
}
}
 
 
function drags(){
if (!document.all)
return
if (event.srcElement.className=="drag"){
dragapproved=true
z=event.srcElement
temp1=z.style.pixelLeft
temp2=z.style.pixelTop
x=event.clientX
y=event.clientY
document.onmousemove=move
}
}
document.onmousedown=drags
//document.onmousedown=sc
document.onmouseup=new Function("dragapproved=false")