function sm(){
	var o=$('navMore');
	Zhishi.navMore = setTimeout(function(){
		var xy = Element.Methods.getXY($('moreA'));
		o.style.left = xy[0]+'px';
		o.style.top = xy[1]+20+'px';
		o.style.display="block";
		document.onmousemove = cp1;
		},500);
}
function cp1(event){
	event = event ? event : window.event;
	var px = event.clientX;
    var py = event.clientY;
	var o=$('navMore');	
	var l=parseInt(o.style.left);
	var t = parseInt(o.style.top)-20;
	var w = parseInt(o.offsetWidth) + l;
	var h = parseInt(o.offsetHeight) + t+20;
	if(px<l || px>w || py<t || py>h){
		window.setTimeout(function(){o.style.display='none';},500);
		document.onmousemove=function(){};
	}
}
function sm2(){
	var o=$('loginMine');
	Zhishi.loginMine = setTimeout(function(){
		var xy = Element.Methods.getXY($('moreB'));
		o.style.left = xy[0]+'px';
		o.style.top = xy[1]+20+'px';
		o.style.display="block";
		document.onmousemove = cp;
		},500);
}
function cp(event){
	var event = event ? event : window.event;
	var px = event.clientX;
    var py = event.clientY;
	var o=$('loginMine');	
	var l=parseInt(o.style.left);
	var t = parseInt(o.style.top)-20;
	var w = parseInt(o.offsetWidth) + l;
	var h = parseInt(o.offsetHeight) + t+20;
	if(px<l || px>w || py<t || py>h){
		window.setTimeout(function(){o.style.display='none';},500);
		document.onmousemove=function(){};
	}
}
function redirectToOthersGBK(objLink) {
	var titleValue = document.forms[0].searchText.value;
	if (titleValue != null) {
		window.location.href = "/JumpPortal.htm?t=1&r=" + encodeURIComponent(objLink.href) + "&w=" + encodeURIComponent(titleValue);
	}
}
function redirectToOthersUTF8(objLink) {
	var titleValue = document.forms[0].searchText.value;
	if (titleValue != null) {
		window.location.href = objLink.href + encodeURIComponent(titleValue);
	}
}

function mark(node, tagValue, tagFlag)
{
    var childs = node.childNodes;
    var childTagValue = null;
    if(!childs || !childs.length) return;

    for(var i=0; i<childs.length;i++)
    {
        childTagValue = null;
        if(childs[i].tagName=='A')
        {
            if(tagValue && childs[i].setAttribute)
            {
				var href = childs[i].href;
                var x = href.indexOf('?')<0 ? '?' : '&';
				var prefix ='';
				if(href.indexOf('#')>-1){
					prefix = href.substring(href.indexOf('#'),href.length);
					href = href.substring(0,href.indexOf('#'));
				}
                var linkText = childs[i].innerHTML;
                if(tagFlag == "pid")
                        childs[i].href = href + x + 'pid=' + tagValue + prefix;
                if(tagFlag == "ch")
                        childs[i].href = href + x + 'ch=' + tagValue + prefix;
				if(tagFlag == "cid")
                        childs[i].href = href + x + 'cid=' + tagValue + prefix;
                childs[i].innerHTML = linkText;
            }
        }
        else
        {
            if(typeof childs[i] != 'null')
            {
                if(document.all && childs[i].ch)
                {
                        childTagValue = childs[i].ch;
                        tagFlag = "ch";
                }
                else if(document.all && childs[i].pid)
                {
                        childTagValue = childs[i].pid;
                        tagFlag = "pid";
                }
				else if(document.all && childs[i].cid)
                {
                        childTagValue = childs[i].cid;
                        tagFlag = "cid";
                }
                else if(navigator.userAgent.toLowerCase().search('msie')<0 && childs[i].getAttribute)
                {
                        if(childs[i].getAttribute('ch'))
                        {
                                childTagValue = childs[i].getAttribute('ch');
                                tagFlag = "ch";
                        }
                        if(childs[i].getAttribute('pid'))
                        {
                                childTagValue = childs[i].getAttribute('pid');
                                tagFlag = "pid";
                        }
						 if(childs[i].getAttribute('cid'))
                        {
                                childTagValue = childs[i].getAttribute('cid');
                                tagFlag = "cid";
                        }
                }

                if(childTagValue)
                     mark(childs[i], childTagValue, tagFlag);
                else
                     mark(childs[i], tagValue, tagFlag);
            }
        }
    }
}