<!--
//Pop-it menu- By Dynamic Drive - Modified by Wbird
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use
var menuOffX=0	//菜单距连接文字最左端距离
var menuOffY=18	//菜单距连接文字顶端距离

var fo_shadows=new Array()
var linkset=new Array()

////No need to edit beyond here

var menuIE4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ie55up = IsIE55Up();
var menuNS6=document.getElementById&&!document.all
var menuNS4=document.layers
var overIframe = null;
var jsdone = false;	// 未执行其它js前不出菜单

function showmenu(e,index,p,paging){
	if (!jsdone)
		return false;
	//p为当前页数,paging为当前是不是翻页
	if (!document.all&&!document.getElementById&&!document.layers)
		return
	
	which=linkset[index]
	var pSize=8	//每页连接数
	var pNum=Math.floor((which.length-1)/pSize)+1		//页数
	

	//设置菜单内容
	if (pNum==1){
		which=which.join(" | ")
		which=which.replace(/<div/gi,"<span");
		which=which.replace(/<\/div>/gi,"</span>");
	}else{
		which=which.slice( (p-1)*pSize, p*pSize )
		which=which.join(" | ")
		which=which.replace(/<div/gi,"<span");
		which=which.replace(/<\/div>/gi,"</span>");
		which+="<span class=\"menuitems\" >"
		if (p==1)
		{
			which+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font face=宋体>←</font> "
		}else{
			which+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=#><font face=宋体 style=cursor:hand onclick=showmenu(event,"+ index +","+ (p-1) +",true) >←</font></a> "
		}
		if (p==pNum)
		{
			which+="<font face=宋体>→</font>"
		}else{
			which+="<a href=#><font face=宋体 style=cursor:hand onclick=showmenu(event,"+ index +","+ (p+1) +",true) >→</font></a>"
		}
		which+="</span>"
	}
	
	menuobj=menuIE4? document.all.popmenuH : menuNS6? document.getElementById("popmenuH") : menuNS4? document.popmenuH : ""
	menuobj.thestyle=(menuIE4||menuNS6)? menuobj.style : menuobj
	
	if (menuIE4||menuNS6)
		menuobj.innerHTML=which
	else{
		menuobj.document.write("<layer name=\"gui\" bgColor=\"#E6E6E6\" width=\"165\" onmouseover=\"clearhidemenu()\" onmouseout=\"hidemenu()\">"+which+"</layer>")
		menuobj.document.close()
	}
	menuobj.thestyle.visibility="visible"
	return false
}

function contains_menuNS6(a, b) {
	if (b){
		while (b.parentNode)
			if ((b = b.parentNode) == a)
				return true;
	}
	return false;
}

function hidemenu(){
	if (window.menuobj)
		window.menuobj.thestyle.visibility=(menuIE4||menuNS6)? "hidden" : "hide"
}

function dynamichide(e){
	if (menuIE4&&!menuobj.contains(e.toElement))
		hidemenu()
	else if (menuNS6&&e.currentTarget!= e.relatedTarget&& !contains_menuNS6(e.currentTarget, e.relatedTarget))
		hidemenu()
}

function delayhidemenu(){
}

function clearhidemenu(){
	if (window.delayhide)
		clearTimeout(delayhide)
}


// 是否IE5.5以上版本
function IsIE55Up () {
	var agt = navigator.userAgent.toLowerCase();
	var isIE = (agt.indexOf("msie")!=-1);
	if (isIE)
	{
		var stIEVer = agt.substring(agt.indexOf("msie ") + 5);
		var verIEFull = parseFloat(stIEVer);
		return verIEFull >= 5.5;
	}
	return false;
}

-->