//--导航
function whatis(obj,obj2){	
    //alert($id(obj).id);
	$id(obj).style.left=getX($id(obj2))+"px";
	$id(obj).style.top=getY($id(obj2))+40+"px";
	$id(obj).style.display="block";

}
function unwhatis(obj){
	$id(obj).style.display="none";
}

function whatis_sub(obj,obj2,biaoji){	
    $id(obj).style.left=getX($id(obj2))+"px";
	$id(obj).style.top=getY($id(obj2))+27+"px";
	$id(obj).style.display="block";
	$id(obj+'_'+biaoji).className = "nav_div_over";
}

function unwhatis_sub(obj,obj2,biaoji){	
	$id(obj).style.display="none";
	$id(obj+'_'+biaoji).className = "nav_div_out";
}

function addProImg(num) {
	var prenum=num-1;
	var nextnum=num+1;
	var str ="<table width=\"684\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"tab_ProImg_"+num+"\"><tr><td width=\"36\">&nbsp;</td><td width=\"97\" align=\"right\" class=\"media_detail_en\">产品小图</td><td width=\"16\">&nbsp;</td><td width=\"535\" colspan=\"3\" align=\"left\"><table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">  <tr>    <td width=\"323\" scope=\"col\"><input type=\"hidden\" name=\"ProImg_S[]\" id=\"ProImg_S_"+num+"\" value=\"\"><IFRAME MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 SCROLLING=NO width=324 height=24 src=\"adminfile/ProImg.php?num="+num+"&type=S\"></IFRAME></td>        <td width=\"177\" align=\"left\" class=\"media_detail\" scope=\"col\">&nbsp;</td>  </tr>  <tr id=\"show_ProImg_S_"+num+"\" align=left style=\"display:none;\"><td id=\"td_ProImg_S_"+num+"\" colspan=\"2\"></td></tr></table></td></tr><tr><td width=\"36\">&nbsp;</td><td width=\"97\" align=\"right\" class=\"media_detail_en\">大图</td><td width=\"16\">&nbsp;</td><td colspan=\"3\" align=\"left\"><table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">  <tr>    <td width=\"324\" scope=\"col\"><input type=\"hidden\" name=\"ProImg_L[]\" id=\"ProImg_L_"+num+"\" value=\"\"><IFRAME MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 SCROLLING=NO width=324 height=24 src=\"adminfile/ProImg.php?num="+num+"&type=L\"></IFRAME></td>        <td width=\"176\" align=\"left\" class=\"media_detail\" scope=\"col\">&nbsp;</td>  </tr>  <tr id=\"show_ProImg_L_"+num+"\" align=left style=\"display:none;\"><td id=\"td_ProImg_L_"+num+"\" colspan=\"2\"></td></tr></table></td></tr>         <tr><td colspan=\"6\">    <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" id=\"button_ProImg_"+num+"\">        <tr><td width=\"36\"></td><td width=\"98\" align=\"right\"><input type=\"button\" value=\"继续添加\" onclick=\"addProImg("+nextnum+");\"></td><td width=\"538\"></td></tr>    </table></td></tr></table></DIV></td></tr><tr><td><DIV style=\"display:none;\" id=\"Div_ProImg_"+nextnum+"\">";

	$id("button_ProImg_"+prenum).style.display="none";

	
	$id("Div_ProImg_"+num).style.display="";
	$id("Div_ProImg_"+num).innerHTML = str;
	
}