﻿//Chrome Drop Down Menu- Author: Dynamic Drive (http://www.dynamicdrive.com)
//Last updated: June 14th, 06'

var cssdropdown={
disappeardelay: 250, //set delay in miliseconds before menu disappears onmouseout
disablemenuclick: true, //when user clicks on a menu item with a drop down menu, disable menu item's link?
enableswipe: 1, //enable swipe effect? 1 for yes, 0 for no

//No need to edit beyond here////////////////////////
dropmenuobj: null, ie: document.all, firefox: document.getElementById&&!document.all, swipetimer: undefined, bottomclip:0,

getposOffset:function(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
},

swipeeffect:function(){
if (this.bottomclip<parseInt(this.dropmenuobj.offsetHeight)){
this.bottomclip+=10+(this.bottomclip/10) //unclip drop down menu visibility gradually
this.dropmenuobj.style.clip="rect(0 auto "+this.bottomclip+"px 0)"
}
else
return
this.swipetimer=setTimeout("cssdropdown.swipeeffect()", 10)
},

showhide:function(obj, e){
if (this.ie || this.firefox)
this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px"
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover"){
if (this.enableswipe==1){
if (typeof this.swipetimer!="undefined")
clearTimeout(this.swipetimer)
obj.clip="rect(0 auto 0 0)" //hide menu via clipping
this.bottomclip=0
this.swipeeffect()
}
obj.visibility="visible"
}
else if (e.type=="click")
obj.visibility="hidden"
},

iecompattest:function(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
},

clearbrowseredge:function(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=this.ie && !window.opera? this.iecompattest().scrollLeft+this.iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth
if (windowedge-this.dropmenuobj.x < this.dropmenuobj.contentmeasure)  //move menu to the left?
edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=this.ie && !window.opera? this.iecompattest().scrollTop : window.pageYOffset
var windowedge=this.ie && !window.opera? this.iecompattest().scrollTop+this.iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight
if (windowedge-this.dropmenuobj.y < this.dropmenuobj.contentmeasure){ //move up?
edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight
if ((this.dropmenuobj.y-topedge)<this.dropmenuobj.contentmeasure) //up no good either?
edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
},

dropit:function(obj, e, dropmenuID){
if (this.dropmenuobj!=null) //hide previous menu
this.dropmenuobj.style.visibility="hidden" //hide menu
this.clearhidemenu()
if (this.ie||this.firefox){
obj.onmouseout=function(){cssdropdown.delayhidemenu()}
//obj.onclick=function(){return !cssdropdown.disablemenuclick} //disable main menu item link onclick?
this.dropmenuobj=document.getElementById(dropmenuID)
this.dropmenuobj.onmouseover=function(){cssdropdown.clearhidemenu()}
this.dropmenuobj.onmouseout=function(){cssdropdown.dynamichide(e)}
//this.dropmenuobj.onclick=function(){cssdropdown.delayhidemenu()}
this.showhide(this.dropmenuobj.style, e)
this.dropmenuobj.x=this.getposOffset(obj, "left")
this.dropmenuobj.y=this.getposOffset(obj, "top")
this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")+"px"
this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"
}
},

contains_firefox:function(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
},

dynamichide:function(e){
var evtobj=window.event? window.event : e
if (this.ie&&!this.dropmenuobj.contains(evtobj.toElement))
this.delayhidemenu()
else if (this.firefox&&e.currentTarget!= evtobj.relatedTarget&& !this.contains_firefox(evtobj.currentTarget, evtobj.relatedTarget))
this.delayhidemenu()
},

delayhidemenu:function(){
this.delayhide=setTimeout("cssdropdown.dropmenuobj.style.visibility='hidden'",this.disappeardelay) //hide menu
},

clearhidemenu:function(){
if (this.delayhide!="undefined")
clearTimeout(this.delayhide)
},

startchrome:function(){
for (var ids=0; ids<arguments.length; ids++){
var menuitems=document.getElementById(arguments[ids]).getElementsByTagName("a")
for (var i=0; i<menuitems.length; i++){
if (menuitems[i].getAttribute("rel")){
var relvalue=menuitems[i].getAttribute("rel")
menuitems[i].onmouseover=function(e){
var event=typeof e!="undefined"? e : window.event
cssdropdown.dropit(this,event,this.getAttribute("rel"))
}
}
}
}
}

}



document.writeln("<meta http-equiv=\'Content-Type\' content=\'text\/html; charset=gb2312\' \/>");
document.write('<div class="chromestyle" id="chromemenu">');
document.write('<ul>');
document.write('<li><a href="http://www.hzepb.gov.cn" class="white12_b">&nbsp;&nbsp;&nbsp;网站首页&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');
document.write('<li><a href="http://www.hzepb.gov.cn/col/col2375/index.html" rel="dropmenu1" >&nbsp;&nbsp;&nbsp;政务信息&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');
document.write('<li><a href="http://218.108.6.120/ebcm_net/index.aspx" target="_blank">&nbsp;&nbsp;&nbsp;办事大厅&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');
document.write('<li><a href="http://www.hzepb.gov.cn/col/col2404/index.html" rel="dropmenu2">&nbsp;&nbsp;&nbsp;人事体制&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');
document.write('<li><a href="http://www.hzepb.gov.cn/col/col2405/index.html" rel="dropmenu3">&nbsp;&nbsp;&nbsp;政策法规&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');
document.write('<li><a href="http://www.hzepb.gov.cn/col/col2406/index.html" rel="dropmenu4">&nbsp;&nbsp;&nbsp;规划计划&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');	
document.write('<li><a href="http://www.hzepb.gov.cn/col/col2407/index.html" rel="dropmenu5">&nbsp;&nbsp;&nbsp;环境监察&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');	
document.write('<li><a href="http://www.hzepb.gov.cn/col/col2408/index.html" rel="dropmenu6">&nbsp;&nbsp;&nbsp;科技监测&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');
document.write('<li><a href="http://www.hzepb.gov.cn/col/col2409/index.html" rel="dropmenu7">&nbsp;&nbsp;&nbsp;污染控制&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');
document.write('<li><a href="http://www.hzepb.gov.cn/col/col2410/index.html" rel="dropmenu8">&nbsp;&nbsp;&nbsp;自然生态&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');
document.write('<li><a href="http://www.hzepb.gov.cn/col/col2411/index.html" rel="dropmenu9">&nbsp;&nbsp;&nbsp;环境评价&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');
document.write('<li><a href="http://www.hzepb.gov.cn/col/col2412/index.html" rel="dropmenu10">&nbsp;&nbsp;&nbsp;辐射管理&nbsp;&nbsp;&nbsp;&nbsp;</a></li>');
//document.write('<li><a href="http://www.hzepb.gov.cn/col/col2406/index.html" rel="dropmenu11">固废监理</a></li>');
//document.write('<li><a href="http://www.hzepb.gov.cn/col/col2406/index.html" rel="dropmenu12">机动车管理</a></li>');		
document.write('</ul>');
document.write('</div>');

document.write('<!--1st drop down menu -->');                                                   
document.write('<div id="dropmenu1" class="dropmenudiv" style="width: 150px;" >');
document.write('<a href="http://www.hzepb.gov.cn/col/col2384/index.html">主要领导</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2385/index.html">领导讲话</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2386/index.html">政务公开</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2387/index.html">环保发文</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2388/index.html">环保信息</a>');
//document.write('<a href="http://www.hzepb.gov.cn/col/col2389/index.html">工作动态</a>');
//document.write('<a href="http://www.hzepb.gov.cn/col/col2390/index.html">环保大事记</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2644/index.html">年度计划</a>');
document.write('</div>');


document.write('<!--2nd drop down menu -->');                                                
document.write('<div id="dropmenu2" class="dropmenudiv" style="width: 150px;">');
document.write('<a href="http://www.hzepb.gov.cn/col/col2421/index.html">职能介绍</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2422/index.html">内设机构</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2423/index.html">派出机构与直属单位</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2424/index.html">人事信息</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2562/index.html">人事任免</a>');
document.write('</div>');

document.write('<!--3rd drop down menu -->');                                                  
document.write('<div id="dropmenu3" class="dropmenudiv" style="width: 150px;">');
document.write('<a href="http://www.hzepb.gov.cn/col/col2425/index.html">法律法规</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2426/index.html">政策解答</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2641/index.html">依法行政</a>');
document.write('</div>');

document.write('<!--4th drop down menu -->');                                                   
document.write('<div id="dropmenu4" class="dropmenudiv" style="width: 150px;">');
document.write('<a href="http://www.hzepb.gov.cn/col/col2427/index.html">环境规划</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2428/index.html">环境公报</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2429/index.html">环境统计</a>');
document.write('</div>');

document.write('<!--5rd drop down menu -->');                                                   
document.write('<div id="dropmenu5" class="dropmenudiv" style="width: 150px;">');
document.write('<a href="http://www.hzepb.gov.cn/col/col2431/index.html">监察动态</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2642/index.html">环境应急</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2643/index.html">排污收费</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2432/index.html">信息曝光台</a>');
document.write('</div>');

document.write('<!--6rd drop down menu -->');                                                   
document.write('<div id="dropmenu6" class="dropmenudiv" style="width: 150px;">');
document.write('<a href="http://www.hzepb.gov.cn/col/col2433/index.html">科技研究</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2434/index.html">环境质量标准</a>');
document.write('</div>');


document.write('<!--7rd drop down menu -->');                                                   
document.write('<div id="dropmenu7" class="dropmenudiv" style="width: 150px;">');
document.write('<a href="http://www.hzepb.gov.cn/col/col2435/index.html">主要污染物减排</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2436/index.html">大气环境管理</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2437/index.html">水环境管理</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2438/index.html">声环境管理</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2462/index.html">重点污染源管理</a>');
document.write('</div>');


document.write('<!--8rd drop down menu -->');                                                   
document.write('<div id="dropmenu8" class="dropmenudiv" style="width: 150px;">');
document.write('<a href="http://www.hzepb.gov.cn/col/col2439/index.html">自然保护</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2440/index.html">生态建设</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2441/index.html">示范工程</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2442/index.html">项目管理</a>');
document.write('</div>');


document.write('<!--9rd drop down menu -->');                                                   
document.write('<div id="dropmenu9" class="dropmenudiv" style="width: 150px;">');
document.write('<a href="http://www.hzepb.gov.cn/col/col2443/index.html">审批指南</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2444/index.html">公示参与与公告公示</a>');
document.write('<a href="http://218.108.6.121:8080/hzgreen/tsxx/ts_center.jsp">结果查询</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2446/index.html">技术导则</a>');
document.write('</div>');


document.write('<!--10rd drop down menu -->');                                                   
document.write('<div id="dropmenu10" class="dropmenudiv" style="width: 190px;">');
document.write('<a href="http://www.hzepb.gov.cn/col/col2447/index.html">放射性同位素和射线装置管理</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2448/index.html">电磁辐射管理</a>');
document.write('<a href="http://www.hzepb.gov.cn/col/col2449/index.html">辐射安全许可证办理</a>');
document.write('</div>');

//document.write('<!--11rd drop down menu -->');                                                  
//document.write('<div id="dropmenu11" class="dropmenudiv" style="width: 150px;">');
//document.write('<a href="http://www.hzepb.gov.cn/col/col2645/index.html">处置单位</a>');
//document.write('<a href="http://www.hzepb.gov.cn/col/col2646/index.html">最新动态</a>');
//document.write('<a href="http://www.hzepb.gov.cn/col/col2647/index.html">技术规范</a>');
//document.write('<a href="http://www.hzepb.gov.cn/col/col2648/index.html">知识园地</a>');
//document.write('</div>');


//document.write('<!--12rd drop down menu -->');                                                   
//document.write('<div id="dropmenu12" class="dropmenudiv" style="width: 150px;">');
//document.write('<a href="http://www.hzepb.gov.cn/col/col2425/index.html">法律法规</a>');
//document.write('<a href="http://www.hzepb.gov.cn/col/col2526/index.html">政策解答</a>');
//document.write('<a href="http://www.hzepb.gov.cn/col/col2641/index.html">依法行政</a>');
//document.write('</div>');

cssdropdown.startchrome("chromemenu")