<!--
/**
 * 示意图关于地图移动的所有js脚本 by suxiaoyi & zhangn
 */

_x = 0, _y = 0;
var mousemoveid;

function md(){
   container.setAttribute("forDisplay_SL", container.scrollLeft);
   container.setAttribute("forDisplay_ST", container.scrollTop);
	_x = event.clientX;
	_y = event.clientY;
	container.inDragMode = true;
	a.setCapture();
	a.onmousemove=mo;
	a.style.cursor='hand';
}

function mo(){
	if(container.inDragMode == true){
	    container.scrollLeft=container.scrollLeft-(event.clientX-_x);
	    container.scrollTop=container.scrollTop-(event.clientY-_y);
	    _x=event.clientX;
	    _y=event.clientY;
	}
}                                            

function mu(){
	a.onmousemove=null;
	container.inDragMode = false;
	a.releaseCapture();
	a.style.cursor='auto';
}

var v=10;
function mdown(para){
   dhq.style.cursor='hand';
   mousemoveid=window.setInterval("move('"+para+"')",10);
 }
 
function up(){
  dhq.style.cursor='auto';
  window.clearInterval(mousemoveid);
}

function move(para){
    var value=0;
    if(para=="left"){
       if(container.scrollLeft>0){
          value=container.scrollLeft-v;
          container.scrollLeft=value;
       }
    }//if(para=="left"
    if(para=="right"){
      container.scrollLeft=container.scrollLeft+v;
    } //if(para=="right"){
    if(para=="down"){
      container.scrollTop=container.scrollTop+v;
    }
    if(para=="up"){
      if(container.scrollTop>0){
          value=container.scrollTop-v;
          container.scrollTop=value;
      }
    }
}

//示意图导航器
function changeImg(direc){
  if(direc=='left')
    direct.src="images/cxsyt/dhimgleft.gif";
  else if(direc=='right')
    direct.src="images/cxsyt/dhimgright.gif";
  else if(direc=='down')
    direct.src="images/cxsyt/dhimgdown.gif";
  else if(direc=='up')
    direct.src="images/cxsyt/dhimgtop.gif";
  else
    direct.src="images/cxsyt/dhimg.gif";
}

-->
