 var h;
 var w;
 var l;
 var t;
 var topMar = 3;
 var leftMar = -10;
 var space = 2;
 var isvisible;
 var MENU_SHADOW_COLOR='#E1F3FD';
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
	if (isvisible == true)
{
		vDiv = document.all("menuDiv");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
			vDiv.style.visibility = "hidden";
			isvisible = false;
		}
}
}

function ShowMenu(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=tableborder1 onmouseout='HideMenu()'><tr height=22><td nowrap align=left class=tablebody1>" + vMnuCode + "</td></tr></table>";

	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space-2;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}

	menuDiv.innerHTML = vMnuCode;
	menuDiv.style.top = t;
	menuDiv.style.left = l;
	menuDiv.style.visibility = "visible";
	isvisible = true;
    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
}

function makeRectangularDropShadow(el, color, size)
{
	var i;
	for (i=size; i>0; i--)
	{
		var rect = document.createElement('div');
		var rs = rect.style
		rs.position = 'absolute';
		rs.left = (el.style.posLeft + i) + 'px';
		rs.top = (el.style.posTop + i) + 'px';
		rs.width = el.offsetWidth + 'px';
		rs.height = el.offsetHeight + 'px';
		rs.zIndex = el.style.zIndex - i;
		rs.backgroundColor = color;
		var opacity = 1 - i / (i + 1);
		rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
		el.insertAdjacentElement('afterEnd', rect);
		global.fo_shadows[global.fo_shadows.length] = rect;
	}
}
var About= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118272709/index.html\"><font color="#000000">便 民 提 示</font></a>&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118281332/index.html\"><font color="#000000">法 律 法 规</font></a>&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118291512/index.html\"><font color="#000000">律 师 指 南</font></a>&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118296570/index.html\"><font color="#000000">公 证 指 南</font></a>&nbsp;&nbsp;'
var News= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118321540/index.html\"><font color="#000000">政 法 要 闻</font></a>&nbsp;&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118330469/index.html\"><font color="#000000">图 片 新 闻</font></a>&nbsp;&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118335730/index.html\"><font color="#000000">视 频 播 报</font></a>&nbsp;&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118347106/index.html"><font color="#000000">县 市 动 态</font></a>&nbsp;'
var Product= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118355934/index.html\"><font color="#000000">领 导 言 论</font></a>&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118362175/index.html\"><font color="#000000">决 策 部 署</font></a>&nbsp;'
var Job= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118374881/index.html\"><font color="#000000">英 模 人 物</font></a>&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118403257/index.html\"><font color="#000000">政法文化</font></a>&nbsp;&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118411186/index.html\"><font color="#000000">警民关系</font></a>&nbsp;&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118426967/index.html\"><font color="#000000">队伍建设</font></a>&nbsp;'
var sale= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"Img.htm\"><font color="#000000">项 目 备 用</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"Img.htm\"><font color="#000000">项 目 备 用</font></a>&nbsp;'
var server= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118459131/index.html\"><font color="#000000">书法</font></a>&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118462590/index.html\"><font color="#000000">绘画</font></a>&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118454262/index.html\"><font color="#000000">摄影</font></a>&nbsp;&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118451099/index.html\"><font color="#000000">文苑</font></a>&nbsp;&nbsp;&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/col/1291118569361/index.html\"><font color="#000000">动态</font></a>&nbsp;'
var index= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"Img.htm\"><font color="#000000">项 目 备 用</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"Img.htm\"><font color="#000000"> 目 备 用</font></a>&nbsp;'
var img= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"Img.htm\"><font color="#000000">项 目 备 用</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"Img.htm\"><font color="#000000">项 目 备 用</font></a>&nbsp;'


function init(ids,cons,dis){
	 	document.getElementById(ids).getElementsByTagName('li')[0].className='active';
		document.getElementById(cons).innerHTML=document.getElementById(dis+"l1").innerHTML;
//		document.getElementById(ids).onmouseover=function(){onmousOver(ids,cons,dis);}//鼠标指向激发效果
		document.getElementById(ids).onclick=function(o){onmousOver(o,ids,cons,dis);}//点击激发效果
}
function onmousOver(o,ids,cons,dis){
var o = o || window.event;
var obj=o.target || o.srcElement;
if (obj.tagName=='LI'){
		if (obj.className=='active'||obj.id=='more')return;
		var o=document.getElementById(ids).getElementsByTagName('li');
		for (var i=0;i<=o.length-1;i++){o[i].className='default'}
		
		obj.className='active';
		if (obj.className=='active'){document.getElementById(cons).innerHTML=document.getElementById(dis+obj.id).innerHTML;}
}
}
