$.fn.haomap=function(){$("#bkimg area").each(function(i){eval("var altstr_"+i+'="'+this.alt+'";');this.alt="";$("#bkimg area").eq(i).hover(function(e){var w=$(this).width();var h=$(this).height();var x1=getLeft($(this)[0]);var y1=getTop($(this)[0]);if(w==0||/firefox/.test(navigator.userAgent.toLowerCase())==true){var coords=$(this)[0].getAttribute("coords");var arr=coords.split(",");if(arr.length==4){w=parseInt(arr[2])-parseInt(arr[0]);h=parseInt(arr[3])-parseInt(arr[1]);x1=parseInt(arr[0]);y1=parseInt(arr[1])}}var href=this.href;if(e.pageX){var posx=e.pageX;var posy=e.pageY;var px=getLeft($("#bkimg")[0]);var py=getTop($("#bkimg")[0]);posx=posx-px;posy=posy-py;Showdiv(true,eval("altstr_"+i),(posx+14),(posy+13));Listhrefshow(href)}$(this).mousemove(function(e){var adddiv=$("#newdiv_alt");if(adddiv[0]!=null){var posx=e.pageX;var posy=e.pageY;var px=getLeft($("#bkimg")[0]);var py=getTop($("#bkimg")[0]);posx=posx-px+14;posy=posy-py+13;adddiv[0].style.left=posx+"px";adddiv[0].style.top=posy+"px"}})},function(e){if(e.pageX){Showdivhide(false);Listhrefhide()}})});$("#pagenews div a").hover(function(){var p=$(this)[0].id.split("_");var newid=0;if(p.length>2){newid=p[2];var areaid="area_list_"+newid;Showadd(areaid)}},function(){var p=$(this)[0].id.split("_");var newid=0;if(p.length>2){newid=p[2];var areaid="area_list_"+newid;Showaddhide(areaid)}})};function Showdiv(a,g,h,f){var b=$("#newdiv_alt");var i=$("#newdiv_alt_bg");var j=$("#newdiv_alt_txt");if(b.html()==null&&a==true){var d=document.createElement("div");d.setAttribute("id","newdiv_alt");d.setAttribute("align","center");d.style.cssText="position:absolute;display:none;z-index:888;";document.getElementById("bkimg").appendChild(d);var e=document.createElement("div");e.setAttribute("id","newdiv_alt_bg");e.style.cssText="background-color: #eeeeee;border:4px solid #ff0000;width:360px;filter:alpha(opacity=75);opacity:0.75;position:absolute;top:0px;left:0px;z-index:889;";d.appendChild(e);var c=document.createElement("div");c.setAttribute("id","newdiv_alt_txt");c.style.cssText="color:#000;padding:10px 15px;width:330px;padding:12px;font-family:'\u9ed1\u4f53','\u4eff\u5b8b',Verdana,Geneva, sans-serif;font-size:20px;vertical-align:middle;line-height:26px;min-height:26px;height:auto!important;height:26px;position:absolute;top:0px;left:0px;z-index:890;";d.appendChild(c)}b=$("#newdiv_alt");i=$("#newdiv_alt_bg");j=$("#newdiv_alt_txt");i.html("");j.html("");if(typeof(g)=="string"){g=g.replace("&lt;br /&gt;","<br />");g=g.replace("&lt;br/&gt;","<br />");g=g.replace("&lt;br&gt;","<br />");j.html(g);if(typeof(h)=="number"){b.css("left",h)}if(typeof(f)=="number"){b.css("top",f)}}if(a){b.css("display","block");var k=$("#newdiv_alt_txt").height();i.height(k+15)}}function Showdivhide(b){var a=$("#newdiv_alt");if(!b&&a[0]!=null){a.css("display","none")}}function Listhrefshow(d){if(d!=null){if(document.getElementById("pagenews")!=null){var b=d.split("content");if(b.length>1){var f=b[1].split("/");var a=f.length;var c;var e="";if(a>3){c=f[3];c=c.substring(0,c.length-5);c=parseInt(c,10);e="news_list_"+c;if(!$("#"+e).hasClass("hover")){$(".pagenews div a").each(function(g){if($(this).hasClass("hover")){$(this).removeClass("hover")}});$("#"+e).addClass("hover")}}}}}}function Listhrefhide(){$(".pagenews div a").each(function(a){if($(this).hasClass("hover")){$(this).removeClass("hover")}})}function Showadd(a){$("#"+a).mouseover()}function Showaddhide(a){$("#"+a).mouseout()}function getLeft(a){var b=0;while(a){b+=a.offsetLeft;a=a.offsetParent}return b}function getTop(b){var a=0;while(b){a+=b.offsetTop;b=b.offsetParent}return a}function isParent(b,a){while(b&&b.tagName.toUpperCase()!="BODY"){if(b==a){return true}b=b.parentNode}return false};