var isoutzoom=false;var img_zoom=new Image();var isie=(navigator.appName=="Microsoft Internet Explorer");var runx_zoom;function pagemapzoom(e,c,b,d){var a=$("#newdiv_imgzoom");if(a.html()==null){$.ajax({type:"POST",url:webd+"jqueryfile/getimgsize.aspx",dataType:"text",data:{picfile:""+e+""},success:function(l){if(l!=""){var k;var g;var f=l.split(",");if(f.length==2){k=parseInt(f[0]);g=parseInt(f[1])}var j=(k-mapwidth)/2;var h=(getLeft($("#bkimg")[0])-j);var m=-(g-b+60);if(d=="bkimg"){m=getTop($("#bkimg")[0])-(g-(g*(mapwidth/k)))/2}var i=document.createElement("div");i.setAttribute("id","newdiv_imgzoom");i.setAttribute("align","center");i.style.cssText="position:absolute;filter:alpha(opacity=95);opacity:0.95;display:none;z-index:1008;left:"+h+"px;top:"+m+"px;width:"+k+"px;height:"+g+"px;";document.body.appendChild(i);img_zoom.setAttribute("src",e);img_zoom.setAttribute("width",k);img_zoom.setAttribute("height",g);i.appendChild(img_zoom);if(!isie){$("#newdiv_imgzoom").load(function(){$("#newdiv_imgzoom").addClass("imgzoom_nobg")})}else{runx_zoom=setInterval("checkimg_zoom()",150)}zoommove(k,g,c,b,d)}},error:function(f){alert("\u6ca1\u6709\u6743\u9650\u0021")}})}else{$("#newdiv_imgzoom").show()}}function checkimg_zoom(){if(img_zoom.readyState=="complete"){$("#newdiv_imgzoom").addClass("imgzoom_nobg");clearInterval(runx_zoom)}}function zoommove(d,a,c,b,e){$("#newdiv_imgzoom").show();var f=$("#newdiv_imgzoom");f.hover(function(){isoutzoom=false},function(){isoutzoom=true});$("body").mousemove(function(l){var o=l.pageX;var n=l.pageY;var g=(d-mapwidth)/2;var h=(getLeft($("#bkimg")[0])-g);var j=-(a-b+60);if(e=="bkimg"){j=getTop($("#bkimg")[0])-(a-(a*(mapwidth/d)))/2}var m=(d/mapwidth);var k=m*(o-c);var i=m*(n-b);f[0].style.left=h-k+"px";f[0].style.top=j-i+"px"});$(document).click(function(g){if(isoutzoom){$("#newdiv_imgzoom").animate({opacity:"hide"},410)}})}$(function(){$("#map_zoom,#bkimg a").click(function(f){f.preventDefault();isoutzoom=false;var d=$(this).attr("href");var c=$(this).parent().attr("id");if(c==undefined){c=""}var b=f.pageX;var a=f.pageY;pagemapzoom(d,b,a,c)});$("#map_zoom_small").click(function(a){a.preventDefault();$("#newdiv_imgzoom").animate({opacity:"hide"},410)})});