var myimages=new Array();
function init(){}

function showMenu(objName){
	var obj=document.getElementById(objName);
	
	obj.style.display="block";
}
function hideMenu(objName){
	var obj=document.getElementById(objName);
	obj.style.display="none";
}

/////////////////////////////////////////菜单///////////////////////////////////////////////////////
var w3c=(document.getElementById)? true:false;
var agt=navigator.userAgent.toLowerCase();
var ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1) && (agt.indexOf("omniweb") == -1));
var ie5=(w3c && ie)? true : false;
var ns6=(w3c && (navigator.appName=="Netscape"))? true: false;
var op8=(navigator.userAgent.toLowerCase().indexOf("opera")==-1)? false:true;
var currentX,currentY;
function GetXYWH(o){
var nLt=0;
var nTp=0;
 var offsetParent = o;
 while (offsetParent!=null && offsetParent!=document.body) {
 //alert(offsetParent.offsetTop);
 nLt+=offsetParent.offsetLeft;
 nTp+=offsetParent.offsetTop;
 if(!ns6){
 parseInt(offsetParent.currentStyle.borderLeftWidth)>0?nLt+=parseInt(offsetParent.currentStyle.borderLeftWidth):"";
 parseInt(offsetParent.currentStyle.borderTopWidth)>0?nTp+=parseInt(offsetParent.currentStyle.borderTopWidth):"";
 }
 offsetParent=offsetParent.offsetParent;
 //alert(offsetParent.tagName);
 }
//alert("ID:"+o.id+"\n\nL:"+nLt+" T:"+nTp+"\nW:"+o.offsetWidth+" H:"+o.offsetHeight);
currentX=nLt+3;
currentY=nTp-4;
}
var currentTDObj
function changeStyleMenu(obj,level,sStyle,oStyle){
	var pObj=obj.parentNode.parentNode;
	for(var j=0;j<pObj.childNodes.length;j++){
    for(var k=0;k<pObj.childNodes[j].childNodes.length;k++){
        var currentObj=pObj.childNodes[j].childNodes[k];
        currentObj.className=oStyle;
    }
  }
	obj.className=sStyle; 
}


function getCurrentLocation(){
    var t=document.getElementById("menubar");
    //currentX=t.offsetLeft;
    //currentY=t.offsetTop;
	//alert(currentX+","+currentY);
	GetXYWH(t)
}

function showMenu_m(divTag,xzb,yzb){
    if(xzb){
        divTag.style.left=xzb + "px";
        divTag.style.top=yzb + "px";
    }
	//alert(xzb+","+yzb);
    divTag.style.visibility="visible";
	//currentTDObj.background="images/00201111.jpg";
}
function hideMenu_m(divTag){
    divTag.style.visibility="hidden";
	//currentTDObj.background='';
}
function showMenuByName(name,index){
    getCurrentLocation();
	var offset=92;
	switch(index){
		case 1: offset=96;break;
		case 2: offset=96;break;
		case 3: offset=96 ;break;
		case 4: offset=96 ;break;
		case 5: offset=96 ;break;
		case 6: offset=96 ;break;
		case 7: offset=96 ;break;
		case 8: offset=96 ;break;
		case 9: offset=96 ;break;
		case 10: offset=96 ;break;
		case 11: offset=96 ;break;
	}
	var tag=document.getElementById(name);
	var tempX=currentX+(offset*index);  
    var tempY=currentY+27;
    showMenu_m(tag,tempX,tempY);
}
function hideMenuByName(name){
    var tag=document.getElementById(name);
    hideMenu_m(tag);
}
function setTDObj(obj){
	currentTDObj=obj;
}
function cleanTDStyle(){
	currentTDObj.background="";
}

document.write("<DIV class=menuDiv id=menuabout onmouseover=showMenu_m(this) style=\"Z-INDEX: 1; LEFT: 105px; TOP: 185px\" onmouseout=hideMenu_m(this)>");
document.write("<table ><tr><td height=4></td></tr></table>");
document.write("<TABLE cellSpacing=0 cellPadding=0 width=100 border=0 bgColor=#EBF4FF style=\"border:1px solid #3DA1F6;\">");
document.write("<TBODY>");
document.write("  <TR>");
document.write("    <TD>");
document.write("      <TABLE width=100% border=0>");
document.write("        <TBODY>");
document.write("        <TR>");
document.write("          <td height=25 class=menu_td valign=bottom><a href=\"/html/about/201112/21/2.html\">本馆简介</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("          <td height=25 class=menu_td valign=bottom><a href=\"/html/about/201112/23/3.html\">主要职责</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("          <td height=25 class=menu_td valign=bottom><a href=\"/html/about/201112/23/4.html\">联系我们</a></td>");
document.write("         </TR>");
document.write("       </TBODY>");
document.write("	 </TABLE>");
document.write("	</TD></TR>");
document.write("  </TBODY>");
document.write("</TABLE>");
document.write("<table ><tr><td height=4></td></tr></table>");
document.write("</DIV>");
document.write("<DIV class=menuDiv id=menuservices onmouseover=showMenu_m(this) style=\"Z-INDEX: 2; LEFT: 145px; TOP: 185px\" onmouseout=hideMenu_m(this)>");
document.write("<table ><tr><td height=4></td></tr></table>");
document.write("<TABLE cellSpacing=0 cellPadding=0 width=110 border=0 bgColor=#EBF4FF style=\"border:1px solid #3DA1F6;\">");
document.write("  <TBODY>");
document.write("  <TR>");
document.write("    <TD>");
document.write("      <TABLE width=100% border=0>");
document.write("        <TBODY>");
document.write("         <TR>");
document.write("          <td height=25 class=menu_td valign=bottom><a href=\"/html/services/dzzlfw.html\">地质资料服务</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("          <td height=25 class=menu_td valign=bottom><a href=\"/html/services/clpsfw.html\">储量评审服务</a></td>");
document.write("         </TR>");
document.write("       </TBODY>");
document.write("	 </TABLE>");
document.write("	</TD></TR>");
document.write("  </TBODY>");
document.write("</TABLE>");
document.write("</DIV>");
document.write("<DIV class=menuDiv id=menuarchives onmouseover=showMenu_m(this) style=\"Z-INDEX: 1; LEFT: 105px; TOP: 185px\" onmouseout=hideMenu_m(this)>");
document.write("<table ><tr><td height=4></td></tr></table>");
document.write("<TABLE cellSpacing=0 cellPadding=0 width=100 border=0 bgColor=#EBF4FF style=\"border:1px solid #3DA1F6;\">");
document.write("  <TBODY>");
document.write("  <TR>");
document.write("    <TD>");
document.write("      <TABLE width=100% border=0>");
document.write("        <TBODY>");
document.write("        <TR>");
document.write("          <td height=25 class=menu_td  valign=bottom><a href=\"/html/material/lmjs.html\">类目介绍</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("		  <td height=25 class=menu_td  valign=bottom><a href=\"/html/material/jdzl.html\">经典资料</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("          <td height=25 class=menu_td  valign=bottom><a href=\"/html/material/zxzl.html\">最新资料</a></td>");
document.write("         </TR>");
document.write("       </TBODY>");
document.write("	 </TABLE>");
document.write("	</TD></TR>");
document.write("  </TBODY>");
document.write("</TABLE>");
document.write("</DIV>");


document.write("<DIV class=menuDiv id=menunews onmouseover=showMenu_m(this) style=\"Z-INDEX: 1; LEFT: 105px; TOP: 185px\" onmouseout=hideMenu_m(this)>");
document.write("<table ><tr><td height=4></td></tr></table>");
document.write("<TABLE cellSpacing=0 cellPadding=0 width=100 border=0 bgColor=#EBF4FF style=\"border:1px solid #3DA1F6;\">");
document.write("  <TBODY>");
document.write("  <TR>");
document.write("    <TD>");
document.write("      <TABLE width=100% border=0>");
document.write("        <TBODY>");
document.write("        <TR>");
document.write("          <td height=25 class=menu_td  valign=bottom><a href=\"/html/news/gzdt.html\">工作动态</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("		  <td height=25 class=menu_td  valign=bottom><a href=\"/html/news/tzgg.html\">通知公告</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("          <td height=25 class=menu_td  valign=bottom><a href=\"/html/news/hyzx.html\">行业资讯</a></td>");
document.write("         </TR>");
document.write("       </TBODY>");
document.write("	 </TABLE>");
document.write("	</TD></TR>");
document.write("  </TBODY>");
document.write("</TABLE>");
document.write("</DIV>");


document.write("<DIV class=menuDiv id=menupolicy onmouseover=showMenu_m(this) style=\"Z-INDEX: 1; LEFT: 105px; TOP: 185px\" onmouseout=hideMenu_m(this)>");
document.write("<table ><tr><td height=4></td></tr></table>");
document.write("<TABLE cellSpacing=0 cellPadding=0 width=100 border=0 bgColor=#EBF4FF style=\"border:1px solid #3DA1F6;\">");
document.write("  <TBODY>");
document.write("  <TR>");
document.write("    <TD>");
document.write("      <TABLE width=100% border=0>");
document.write("        <TBODY>");
document.write("        <TR>");
document.write("          <td height=25 class=menu_td  valign=bottom><a href=\"/html/policy/flfg.html\">法律法规</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("		  <td height=25 class=menu_td  valign=bottom><a href=\"/html/policy/zcwj.html\">政策文件</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("          <td height=25 class=menu_td  valign=bottom><a href=\"/html/policy/bzgf.html\">标准规范</a></td>");
document.write("         </TR>");
document.write("       </TBODY>");
document.write("	 </TABLE>");
document.write("	</TD></TR>");
document.write("  </TBODY>");
document.write("</TABLE>");
document.write("</DIV>");


document.write("<DIV class=menuDiv id=menupublic onmouseover=showMenu_m(this) style=\"Z-INDEX: 1; LEFT: 105px; TOP: 185px\" onmouseout=hideMenu_m(this)>");
document.write("<table ><tr><td height=4></td></tr></table>");
document.write("<TABLE cellSpacing=0 cellPadding=0 width=100 border=0 bgColor=#EBF4FF style=\"border:1px solid #3DA1F6;\">");
document.write("  <TBODY>");
document.write("  <TR>");
document.write("    <TD>");
document.write("      <TABLE width=100% border=0>");
document.write("        <TBODY>");
document.write("        <TR>");
document.write("          <td height=25 class=menu_td  valign=bottom><a href=\"/html/public/tjdz.html\">天津地质</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("		  <td height=25 class=menu_td  valign=bottom><a href=\"/html/public/dxzs.html\">地学知识</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("          <td height=25 class=menu_td  valign=bottom><a href=\"/html/public/gyzlml.html\">公益资料目录</a></td>");
document.write("         </TR>");
document.write("		 <TR>");
document.write("          <td height=25 class=menu_td  valign=bottom><a href=\"/html/down/download.html\">下载中心</a></td>");
document.write("         </TR>");
document.write("       </TBODY>");
document.write("	 </TABLE>");
document.write("	</TD></TR>");
document.write("  </TBODY>");
document.write("</TABLE>");
document.write("</DIV>");

document.write("<table width=960 height=30 cellpadding=0 cellspacing=0 border=0 class=nav_tbl  id=menubar>");
document.write("	<tr>");
document.write("		<td width=86 align=center ><a href=\"/\"  target=_top >首 页</a></td>");
document.write("		<td width=10 align=center ><img src=\"/images/navh.gif\" /></td>");
document.write("		<td width=86 align=center  onmouseover=\"showMenuByName('menuabout',1);\" onmouseout=\"hideMenuByName('menuabout');\"><a href=\"/html/about/201112/21/2.html\">本馆概况</a></td>");
document.write("		<td width=10 align=center ><img src=\"/images/navh.gif\" /></td>");
document.write("		<td width=86 align=center onmouseover=\"showMenuByName('menuservices',2);\" onmouseout=\"hideMenuByName('menuservices');\"><a href=\"/html/services/\">服务指南</a></td>");
document.write("		<td width=10 align=center ><img src=\"/images/navh.gif\" /></td>");
document.write("		<td width=86 align=center onmouseover=\"showMenuByName('menuarchives',3);\" onmouseout=\"hideMenuByName('menuarchives');\"><a href=\"/html/material/\">馆藏介绍</a></td>");
document.write("		<td width=10 align=center ><img src=\"/images/navh.gif\" /></td>");
document.write("		<td width=86 align=center onmouseover=\"showMenuByName('menunews',4);\" onmouseout=\"hideMenuByName('menunews');\"><a href=\"/html/news/\">业务动态</a></td>");
document.write("		<td width=10 align=center ><img src=\"/images/navh.gif\" /></td>");
document.write("		<td width=86 align=center onmouseover=\"showMenuByName('menupolicy',5);\" onmouseout=\"hideMenuByName('menupolicy');\"><a href=\"/html/policy/\">政策法规</a></td>");
document.write("		<td width=10 align=center ><img src=\"/images/navh.gif\" /></td>");
document.write("		<td width=86 align=center onmouseover=\"showMenuByName('menupublic',6);\" onmouseout=\"hideMenuByName('menupublic');\"><a href=\"/html/public/\">公益资料</a></td>");
document.write("		<td width=10 align=center ><img src=\"/images/navh.gif\" /></td>");
document.write("		<td width=86 align=center><a href=\"/cgml/search.htm\" target=\"_blank\">目录查询</a></td>");
document.write("		<td width=10 align=center ><img src=\"/images/navh.gif\" /></td>");
document.write("		<td width=86 align=center><a href=\"/html/about/201112/27/123.html\">信息交换</a></td>");
document.write("		<td width=10 align=center ><img src=\"/images/navh.gif\" /></td>");
document.write("		<td width=96 align=center><a href=\"/html/about/201112/23/4.html\">联系我们</a></td>");
document.write("	</tr>");
document.write("</table>");
