function baomingpage2(){
document.getElementById('dd2').style.display='none'
}
var index2 = Math.floor(Math.random() * 900);
var img_src2 = 'pageimg/jxjy_wjdc.gif';
var gaodu2 = Math.floor(Math.random() * 600+60);  
var img_w2 = '320';
var img_h2 = '209';
//var img_alt2 = 'µã»÷²é¿´';
var tz_img='<div id="dd2" style="Z-INDEX:2001; WIDTH: '+img_w2+'px; POSITION: absolute; HEIGHT: '+img_h2+'px">'
+'<img usemap="#Map2" src="'+img_src2+'" width="'+img_w2+'" height="'+img_h2+'" border="0" onMouseOver="pause_resume2();" onMouseOut="pause_resume2();" >'
+'</div>'
document.write(tz_img);
var dd2=document.getElementById("dd2");
var xPos2 = index2;
var yPos2 = gaodu2;
var step2 = 1; 
var delay2 = 30; 
var height2 = 0; 
var Hoffset2 = 0; 
var Woffset2 = 0; 
var yon2 = 0; 
var xon2 = 0; 
var pause2 = true; 
var interval2; 
dd2.style.top = yPos2+"px"; 

function changePos2() { 
width2 = document.body.clientWidth;
height2 = document.body.clientHeight; 
Hoffset2 = dd2.offsetHeight; 
Woffset2 = dd2.offsetWidth; 
dd2.style.left =(xPos2 + document.body.scrollLeft)+"px"; 
dd2.style.top =(yPos2 + document.body.scrollTop)+"px"; 
if (yon2) { 
yPos2 = yPos2 + step2; 
} 
else { 
yPos2 = yPos2 - step2; 
} 
if (yPos2 < 0) { 
yon2 = 1; 
yPos2 = 0; 
} 
if (yPos2 >= (height2 - Hoffset2)) { 
yon2 = 0; 
yPos2 = (height2 - Hoffset2); 
} 
if (xon2) { 
xPos2 = xPos2 + step2; 
} 
else { 
xPos2 = xPos2 - step2; 
} 
if (xPos2 < 0) { 
xon2 = 1; 
xPos2 = 0; 
} 
if (xPos2 >= (width2 - Woffset2)) { 
xon2 = 0; 
xPos2 = (width2 - Woffset2); 
} 
} 

function start_pp2() { 
dd2.visibility = "visible"; 
interval2 = setInterval('changePos2()', delay2); 
} 
function pause_resume2() { 
if(pause2) {clearInterval(interval2);pause2 = false;} 
else {interval2 = setInterval('changePos2()',delay2);pause2 = true;} 
} 
start_pp2(); 
var area='<map name="Map2" id="Map2">'
+'<area shape="rect" coords="303,2,319,18" onclick="baomingpage2()" href="#" alt="close">'
+'<area shape="poly" coords="1,1,301,1,301,19,318,19,318,207,1,207" href="http://www.ahfda.com/info/wjdc.aspx" target="_blank">'
+'</map>';
document.write(area);
