/*system_start*/
var Site_Url = "http://www.kangdabaojie.cn";
var Xml_Path = "/xml";
var Html_User = "{#Html_Title#}";
/*system_end*/

/*extension_start*/

  /*pkeys_start*/
  function PageKeyword(){var A=createXMLHttpRequest();if(A){A.onreadystatechange=function(){if(A.readyState==4)if(A.status==200){var H=A.responseXML;if(H){var E=document.getElementById("Html_Main"),D=[];if(E){E=E.childNodes[0].childNodes[0].childNodes;var I=0;for(var C=0;C<E.length;C++)if(E[C].getAttribute("pKey")=="true")for(var G=0;G<E[C].childNodes.length;G++)if(E[C].childNodes[G].getAttribute("type")=="dragDivBody"){D[I]=E[C].childNodes[G];I++}var K=H.lastChild.getElementsByTagName("item"),F,J="";for(var B=0;B<D.length;B++){J=D[B].innerHTML;for(C=0;C<K.length;C++){F=K[C].getAttribute("value");J=J.replace(new RegExp(F,"g"),"<a href=\""+K[C].getAttribute("link")+"\" target=\"_blank\" title=\""+K[C].getAttribute("desc")+"\" style=\"color:#00F\">"+F+"</a>")}D[B].innerHTML=J}}}}};try{A.open("get",Site_Url+"/pagestyle/kd.asp",true);A.send(null)}catch(B){}}}
  /*pkeys_end*/
  

/*extension_end*/
/*adjustHeight_Page_start*/
function clsPageHeight(intAdjustHeight)
{
	this.intAdjustHeight = intAdjustHeight;

	this.objHtml_Main = new html_element(document.getElementById("Html_Main"));	
	this.totalHeight = 0;
	this.arrDragDiv = new Array();
	this.arrAdjustDragDiv = new Array();
	
	this.init = function()
	{
		this.getDragDiv();
				
		for(var i=0;i<this.arrDragDiv.length;i++)
		{
			var intAutoadjust = this.arrDragDiv[i].getAttribute("autoadjust");
			if(intAutoadjust && intAutoadjust == "1")
			{
				this.arrAdjustDragDiv[this.arrAdjustDragDiv.length] = new Array(this.arrDragDiv[i],this.arrDragDiv[i].left,this.arrDragDiv[i].top,this.arrDragDiv[i].width,this.arrDragDiv[i].getAttribute("height"));
			}
		}
		
		this.check();
	}
	
	this.check = function()
	{
	
		var blnHeightChanged = false;
		if(this.arrAdjustDragDiv.length == 0)
		{
			blnHeightChanged = true;
		}
		else
		{
			for(var i=0;i<this.arrAdjustDragDiv.length;i++)
			{
				var objDragDivBody = null;
				var intHeadBottom = 0;
				var objChildNodes = this.arrAdjustDragDiv[i][0].self.childNodes;
				for(var j=0;j<objChildNodes.length;j++)
				{
					if(objChildNodes[j].getAttribute("type") == "dragDivBody")
					{
						objDragDivBody = objChildNodes[j];
					}
					else
					{
						intHeadBottom += objChildNodes[j].offsetHeight;
					}
				}
							
				if(!objDragDivBody) continue;
				var intDragDivBodyHeight = objDragDivBody.offsetHeight;
				if(intDragDivBodyHeight + intHeadBottom == this.arrAdjustDragDiv[i][4]) continue;				
				
				var intHeightDeduce = intDragDivBodyHeight - this.arrAdjustDragDiv[i][4];
				
				objDragDivBody.style.setAttribute("height",intDragDivBodyHeight);			
				this.responseHeightDeduce(this.arrAdjustDragDiv[i][0],intHeightDeduce);
				this.arrAdjustDragDiv[i][4] = this.arrAdjustDragDiv[i][0].getHeight();
				
				blnHeightChanged = true;
			}			
		}
		
		if(blnHeightChanged)
		{
			this.resetPageHeight();			
		}
				
		window.setTimeout("objPageHeight.check();",200);
	}
	
	this.responseHeightDeduce = function(objAdjustDragDiv,intHeightDeduce)
	{
		for(var i=0;i<this.arrDragDiv.length;i++)
		{
			blnIsfollow = this.hasToFollow(this.arrDragDiv[i],objAdjustDragDiv);
			if(blnIsfollow)
			{
				this.arrDragDiv[i].setTop(this.arrDragDiv[i].top + intHeightDeduce);
				
				for(var j=0;j<this.arrAdjustDragDiv.length;j++)
				{
					if(this.arrDragDiv[i].id == this.arrAdjustDragDiv[j][0].id)
					{
						this.arrAdjustDragDiv[j][1] = this.arrAdjustDragDiv[j][0].getTop();
						break;
					}
				}
			}
		}
	}
	
	this.hasToFollow = function(objCurrDragDiv,objAdjustDragDiv)
	{		
		if(objCurrDragDiv.top <= objAdjustDragDiv.top)
		{
			return(false);
		}
		else if (objCurrDragDiv.left + objCurrDragDiv.width < objAdjustDragDiv.left || objCurrDragDiv.left > objAdjustDragDiv.left + objAdjustDragDiv.width)
		{
			return(false);
		}
		else if (objCurrDragDiv.left <= objAdjustDragDiv.left && objCurrDragDiv.left + objCurrDragDiv.width <= objAdjustDragDiv.left + objAdjustDragDiv.width)
		{
			return(true);
		}
		else
		{
			var objTopElement = null;
			for(var i=0;i<this.arrDragDiv.length;i++)
			{
				if(this.arrDragDiv[0].id != objAdjustDragDiv.id)
				{
					if(this.arrDragDiv[i].top > objCurrDragDiv.top)
					{
						if((this.arrDragDiv[i].left >= objCurrDragDiv.left && this.arrDragDiv[i].left <= objCurrDragDiv.left + objCurrDragDiv.width) || (this.arrDragDiv[i].left + this.arrDragDiv[i].width >= objCurrDragDiv.left && this.arrDragDiv[i].left + this.arrDragDiv[i].width <= objCurrDragDiv.left + objCurrDragDiv.width))
						{						
							return(false);
						}
					}					
				}
			}
			return(true);
		}
	}
	
	this.resetPageHeight = function()
	{
		var intNewHeight = 0;
		for(var i=0;i<this.arrDragDiv.length;i++)
		{
			if(intNewHeight < this.arrDragDiv[i].top + this.arrDragDiv[i].height)
			{
				intNewHeight = this.arrDragDiv[i].top + this.arrDragDiv[i].height;
			}
		}
		
		if(intNewHeight + this.intAdjustHeight != this.totalHeight)
		{
			this.totalHeight = intNewHeight + this.intAdjustHeight;
			
			if(this.totalHeight > 0)
			{
				this.objHtml_Main.getFirstChild().style.setAttribute("height",this.totalHeight - this.objHtml_Main.top);				
			}
			else
			{
				this.objHtml_Main.hide();
			}
		}
	}
	
	this.getDragDiv = function()
	{		
		this.totalHeight = this.objHtml_Main.getFirstChild().style.getAttribute("height");
		var arrTemp = this.objHtml_Main.getFirstChild().firstChild.childNodes;
				
		for(var i=0;i<arrTemp.length;i++)
		{
			if(arrTemp[i].nodeType == 1 && arrTemp[i].tagName.toLowerCase() == "div" && arrTemp[i].getAttribute("type") == "dragDiv")
			{
				this.arrDragDiv[this.arrDragDiv.length] = new html_element(arrTemp[i]);
			}
		}
	}
}

//html_element
function html_element(objHtmlElement)
{
	this.element = null;
	this.id = "";
	this.tagName = "";
	this.className = "";
	this.zIndex = "";
	this.display = "";
	this.cursor = "";
	this.position  = "";
	this.overflow = "";
	this.left = "";
	this.top = "";
	this.width = "";
	this.height = "";
	
	if(typeof(objHtmlElement) == "String")
	{
		this.id = objHtmlElement;
		this.element = document.getElementById(objHtmlElement);
		if(this.element && this.element.nodeType == 1)
		{
			this.tagName = this.element.tagName;
			this.className = this.element.className;
			this.zIndex = this.element.style.zIndex;
			this.display = this.element.style.display;
			this.cursor = this.element.style.cursor;
			this.position = this.element.style.position;
			this.overflow = this.element.style.overflow;
			this.left = this.getOffset(this.element,"offsetLeft");
			this.top = this.getOffset(this.element,"offsetTop");
			this.width = this.element.offsetWidth;
			this.height = this.element.offsetHeight;
		}
	}
	else if(objHtmlElement)
	{
		this.id = objHtmlElement.id;
		this.element = objHtmlElement;
		if(this.element && this.element.nodeType == 1)
		{
			this.tagName = this.element.tagName;
			this.className = this.element.className;
			this.zIndex = this.element.style.zIndex;
			this.display = this.element.style.display;
			this.cursor = this.element.style.cursor;
			this.position = this.element.style.position;
			this.overflow = this.element.style.overflow;
			this.left = getOffset(this.element,"offsetLeft");
			this.top = getOffset(this.element,"offsetTop");
			this.width = this.element.offsetWidth;
			this.height = this.element.offsetHeight;
		}
	}
	
	this.self = this.element;
}

html_element.prototype.setClassName = function(strString)
{
	if(this.element && this.className != strString)
	{
		this.className = strString;
		this.element.className = this.className;
	}
}

html_element.prototype.setZIndex = function(intValue)
{
	if(this.element && this.zIndex != intValue)
	{
		this.zIndex = intValue;
		this.element.style.zIndex = this.zIndex;
	}
}

html_element.prototype.show = function()
{
	if(this.element)
	{
		if(this.display == "none")
		{
			this.display = "";
			this.element.style.display = this.display;
		}
	}
}

html_element.prototype.hide = function()
{
	if(this.element)
	{
		if(this.display == "")
		{
			this.display = "none";
			this.element.style.display = this.display;
		}
	}
}

html_element.prototype.setCursor = function(strString)
{
	if(this.element && this.cursor != strString)
	{
		this.cursor = strString;
		this.element.style.cursor = this.cursor;
	}
}

html_element.prototype.setPosition = function(strPostion)
{
	this.position = strPostion;
	this.element.style.setAttribute("position",this.position);
}

html_element.prototype.setOverflow = function(strOverflow)
{
	this.overflow = strOverflow;
	this.element.style.setAttribute("overflow",this.overflow);
}

html_element.prototype.getLeft = function()
{
	if(this.element)
	{
		this.left = this.getOffset(this.element,"offsetLeft");
		return(this.left);
	}
	else
	{
		return(0);
	}
}

html_element.prototype.getTop = function()
{
	if(this.element)
	{
		this.top = this.getOffset(this.element,"offsetTop");
		return(this.top);
	}
	else
	{
		return(0);
	}
}

html_element.prototype.getWidth = function()
{
	if(this.element)
	{
		this.width = this.element.offsetWidth;
		return(this.width);
	}
	else
	{
		return(0);
	}
}

html_element.prototype.getHeight = function()
{
	if(this.element)
	{
		this.height = this.element.offsetHeight;
		return(this.height);
	}
	else
	{
		return(0);
	}
}

html_element.prototype.setLeft = function(intValue)
{
	if(this.element && this.left != intValue)
	{
		this.element.style.left = intValue;
		this.left = this.getOffset(this.element,"offsetLeft");
	}
}

html_element.prototype.setTop = function(intValue)
{
	if(this.element && this.element && this.top != intValue)
	{
		this.element.style.top = intValue;
		this.top = this.getOffset(this.element,"offsetTop");
	}
}

html_element.prototype.setWidth = function(intValue)
{
	if(this.element && this.width != intValue)
	{		
		this.element.style.width = intValue;
		this.width = this.element.offsetWidth;
		this.height = this.element.offsetHeight;
	}
}

html_element.prototype.setHeight = function(intValue)
{
	if(this.element && this.height != intValue)
	{
		this.element.style.height = intValue;
		this.width = this.element.offsetWidth;
		this.height = this.element.offsetHeight;
	}
}

html_element.prototype.moveTo = function(intX,intY)
{
	this.setLeft(intX);
	this.setTop(intY);
}

html_element.prototype.moveBy = function(intAbsoluteX,intAbsoluteY)
{
	this.setLeft(this.left + intAbsoluteX);
	this.setTop(this.top + intAbsoluteY);
}

html_element.prototype.resizeTo = function(intX,intY)
{
	this.setWidth(intX);
	this.setHeight(intY);
}

html_element.prototype.resizeBy = function(intAbsoluteX,intAbsoluteY)
{
	this.setWidth(this.width + intAbsoluteX);
	this.setHeight(this.height + intAbsoluteY);
}

html_element.prototype.isMouseIn = function(intX,intY,intFix)
{
	if(!intFix) intFix = 0;
	if(Math.abs(intX - this.left) <= intFix && Math.abs(intX - this.left - this.width) <= intFix && Math.abs(intY - this.top) <= intFix && Math.abs(intY - this.top - this.height) <= intFix)
	{
		return(true);
	}
	return(false);
}

html_element.prototype.isMouseOver = function(intX,intY)
{
	if(intX >= this.left && intX <= this.left + this.width && intY > this.top && intY <= this.top + this.height)
	{
		return(true);
	}
	return(false);
}

html_element.prototype.isMouseOut = function(intX,intY)
{	
	return(!this.isMouseOver(intX,intY));
}

html_element.prototype.innerHTML = function(strHTMLContent)
{
	if(this.element)
	{
		this.element.innerHTML = strHTMLContent;
		this.width = this.element.offsetWidth;
		this.height = this.element.offsetHeight;
	}
}

html_element.prototype.getAttribute = function(strName)
{
	if(this.element)
	{
		return(this.element.getAttribute(strName));
	}
	else
	{
		return(null);
	}
}

html_element.prototype.setAttribute = function(strName,strValue)
{
	if(this.element && this.element.getAttribute(strName) != strValue)
	{
		this.element.setAttribute(strName,strValue);
	}
}

html_element.prototype.createNode = function(strNodeName,strNodeID)
{
	if(strNodeName && strNodeName.length > 0)
	{
		var objNewNode = document.createElement(strNodeName);
		if(strNodeID && strNodeID.length > 0)
		{
			objNewNode.id = strNodeID;
		}
		return(objNewNode);
	}
	return(null);	
}

html_element.prototype.appendChild = function(objChildNode)
{
	if(this.element)
	{
		this.element.appendChild(objChildNode);
		this.width = this.element.offsetWidth;
		this.height = this.element.offsetHeight;
	}
}

html_element.prototype.childNodes = function()
{
	if(this.element)
	{
		return(this.element.childNodes);
	}
	else
	{
		return(null);
	}
}

html_element.prototype.childNodes = function()
{
	if(this.element)
	{
		return(this.element.childNodes);
	}
	else
	{
		return(null);
	}
}

html_element.prototype.getFirstChild = function()
{
	if(this.element)
	{
		return(this.element.firstChild);
	}
	else
	{
		return(null);
	}
}

html_element.prototype.getLastChild = function()
{
	if(this.element)
	{
		return(this.element.lastChild);
	}
	else
	{
		return(null);
	}
}

html_element.prototype.getOffset = function(field,attr)
{
	var	offset = 0;
	while(field) {
		offset +=	field[attr];
		field	=	field.offsetParent;
	}
	return offset;
}
/*adjustHeight_Page_end*/
/*navigator_start*/
var arrSubNavigatorList = new Array();

function setTopNavigator()
{
	var objMenuDiv = document.getElementById("NavMenu");
	if(objMenuDiv == null || typeof(objMenuDiv) == "undefined")
	{
		return;
	}
	//cleanUP
	while(objMenuDiv.hasChildNodes())
	{
		objMenuDiv.removeChild(objMenuDiv.firstChild);
	}

	var objMenuXml = fetchUrl(Xml_Path+"/menu.xml")
	if(!objMenuXml)
	{
		return;
	}

	var objNav_itemNode = objMenuXml.documentElement.selectSingleNode("nav_item");
	var intDirection = objNav_itemNode.getAttribute("direction");
	var intSubMenu = objNav_itemNode.getAttribute("submenu");
	var intMultiLine = objNav_itemNode.getAttribute("multiline");
	var intLineMax = objNav_itemNode.getAttribute("linemax");
	intDirection = (intDirection == null)?0:parseInt(intDirection);
	intSubMenu = (intSubMenu == null)?1:parseInt(intSubMenu);
	intMultiLine = (intMultiLine == null)?0:parseInt(intMultiLine);
	intLineMax = (intLineMax == null)?0:parseInt(intLineMax);

	var objMeuNodes = objMenuXml.documentElement.selectNodes("nav_item/menu");

	var arrNavNavigatorList = new Array();
	while(arrSubNavigatorList.length >0)
	{
		arrSubNavigatorList.pop();
	}
	for(var i=0;i<objMeuNodes.length;i++)
	{
		var intDisplay = objMeuNodes[i].getAttribute("display");
		if(intDisplay != null && intDisplay == "1")
		{
			var intParentid = objMeuNodes[i].getAttribute("parentid");
			if(typeof(intParentid) == "undefined" || intParentid == null || intParentid == "0")
			{
				arrNavNavigatorList[arrNavNavigatorList.length] = new Array(objMeuNodes[i].getAttribute("id"),"0",objMeuNodes[i].getAttribute("menuname"),objMeuNodes[i].getAttribute("menutitle"),objMeuNodes[i].getAttribute("link"),objMeuNodes[i].getAttribute("target"));
			}
			else if(intSubMenu > 0)
			{
				arrSubNavigatorList[arrSubNavigatorList.length] = new Array(objMeuNodes[i].getAttribute("id"),intParentid.toString(),objMeuNodes[i].getAttribute("menuname"),objMeuNodes[i].getAttribute("menutitle"),objMeuNodes[i].getAttribute("link"),objMeuNodes[i].getAttribute("target"));
			}
		}
	}
	objMenuXml = null;

	var intNavRow = 0;
	var intNavCol = 0;
	if(intMultiLine == 0)
	{
		intNavRow = 1;
		intNavCol = arrNavNavigatorList.length;
	}
	else
	{
		intNavRow = (arrNavNavigatorList.length % intLineMax == 0)?(arrNavNavigatorList.length / intLineMax):parseInt(arrNavNavigatorList.length / intLineMax)+1;
		intNavCol = intLineMax;
	}

	//输出主菜单
	var objTable = document.createElement("TABLE");
	objTable.setAttribute("className", "Nav_Table");
	var objBody = document.createElement("TBODY");
	for(var i=0;i<intNavRow;i++)
	{
		var objTr = document.createElement("TR");
		objTr.setAttribute("className", "Nav_Tr");
		for(var j=0;j<intNavCol;j++)
		{
			if(i*intNavCol + j < arrNavNavigatorList.length)
			{
				var arrCurrMenu = arrNavNavigatorList[i*intNavCol + j];
				var objTd = document.createElement("TD");
				objTd.setAttribute("id", "menu_"+arrCurrMenu[0]);
				objTd.setAttribute("className", "Nav_Td Nav_Out");
				objTd.setAttribute("menuid", arrCurrMenu[0]);
				objTd.setAttribute("innerText", arrCurrMenu[2]);
				objTd.setAttribute("title", arrCurrMenu[3]);
				if(arrCurrMenu[4].length == 0 || /^http:\/\/\S+$/i.test(arrCurrMenu[4]) || /^javascript:\S+$/ig.test(arrCurrMenu[4]) || arrCurrMenu[5].toLowerCase() == "_js")
				{
					objTd.setAttribute("link", arrCurrMenu[4]);
				}
				else
				{
					objTd.setAttribute("link", Site_Url + "/" + arrCurrMenu[4]);
				}
				objTd.setAttribute("target", arrCurrMenu[5]);
				if(intSubMenu > 0)
				{
					objTd.setAttribute("onmouseover", function(){this.setAttribute('inside','1');showSubNavigator(intSubMenu);});
					objTd.setAttribute("onmouseout", function(){this.setAttribute('inside','0');});
				}
				else
				{
					objTd.setAttribute("onmouseover", function(){this.setAttribute("className", "Nav_Td Nav_Over");});
					objTd.setAttribute("onmouseout", function(){this.setAttribute("className", "Nav_Td Nav_Out");});
				}
				objTd.setAttribute("onclick", function(){openLink(this.getAttribute("link"),this.getAttribute("target"));});
				objTr.appendChild(objTd);
			}
			else
			{
				//do Nothing
			}
		}
		objBody.appendChild(objTr);
	}
	objTable.appendChild(objBody);
	objMenuDiv.appendChild(objTable);

	//加入SubMenu
	var objSubMenu = document.getElementById("SubMenu");
	if(!objSubMenu)
	{
		objSubMenu = document.createElement("div");
		objSubMenu.style.setAttribute("display","none");
		objSubMenu.id = "SubMenu";
		objSubMenu.style.setAttribute("zIndex","9999");
		objSubMenu.style.setAttribute("inside","0");
		objSubMenu.setAttribute("inside","0");
		objSubMenu.setAttribute("onmouseover",function() {this.setAttribute('inside','1');});
		objSubMenu.setAttribute("onmouseout",function() {this.setAttribute('inside','0');});

		document.getElementById("html_top").appendChild(objSubMenu);
	}
}

function showSubNavigator(intSubMenu)
{
	if(intSubMenu == 0) return;
	var objSubMenu = document.getElementById("SubMenu");
	if(!objSubMenu) return;

	var objCurrMenu = event.srcElement;
	var intMenuID = objCurrMenu.getAttribute("menuid");
	if(!intMenuID) return;
	intMenuID = parseInt(intMenuID);
	var arrCurrSubNavigator = new Array();
	for(var i=0;i<arrSubNavigatorList.length;i++)
	{
		if(parseInt(arrSubNavigatorList[i][1]) == intMenuID)
		{
			arrCurrSubNavigator[arrCurrSubNavigator.length] = arrSubNavigatorList[i];
		}
	}
	if(arrCurrSubNavigator.length > 0)
	{
		var strSubMenuContent = "";
		strSubMenuContent += '<table class="Sub_Table"><tbody>'+'\r\n';
		strSubMenuContent += '<tr class="Sub_Tr">';
		for(var i=0;i<arrCurrSubNavigator.length;i++)
		{
			var strLink = arrCurrSubNavigator[i][4].toLowerCase();
			if(!(strLink.length == 0 || /^http:\/\/\S+$/i.test(strLink) || /^javascript:\S+$/ig.test(strLink) || arrCurrSubNavigator[i][5].toLowerCase() == "_js"))
			{
				strLink = Site_Url + '/' + strLink;
			}
			strSubMenuContent += '<td class="Sub_Td Sub_Menu_Off" onmouseover="this.className=\'Sub_Td Sub_Over\';" onmouseout="this.className=\'Sub_Td Sub_Out\';" onclick="openLink(\' '+strLink+'\',\''+arrCurrSubNavigator[i][5]+'\');"  title="'+arrCurrSubNavigator[i][3]+'">';
			strSubMenuContent += arrCurrSubNavigator[i][2];
			strSubMenuContent += '</td>';
			if(intSubMenu == 2) strSubMenuContent += '</tr><tr class="Sub_Tr">';
		}
		strSubMenuContent += '</tr>';
		strSubMenuContent += '\r\n'+'</tbody></table>';
		objSubMenu.setAttribute("innerHTML",strSubMenuContent);

		//开始控制位置
		var intCurrLeft = getOffset(objCurrMenu,"offsetLeft");
		var intCurrTop = getOffset(objCurrMenu,"offsetTop");
		var intCurrWidth = objCurrMenu.offsetWidth;
		var intCurrHeight = objCurrMenu.offsetHeight;

		if(objSubMenu.offsetWidth + intCurrLeft > document.body.scrollLeft + document.body.offsetWidth)
		{
			objSubMenu.style.setAttribute("left",(intCurrLeft + intCurrWidth - objSubMenu.offsetWidth)+"px");
		}
		else
		{
			objSubMenu.style.setAttribute("left",intCurrLeft+"px");
		}
		objSubMenu.style.setAttribute("top",(intCurrTop + intCurrHeight)+"px");

		objSubMenu.setAttribute("parentID",intMenuID);
		objSubMenu.style.setAttribute("display","");
		setTimeout("hideSubNavigator()",1000);
	}
}

function hideSubNavigator()
{
	var objSubMenu = document.getElementById("SubMenu");
	if(typeof(objSubMenu) == "undefined") return;
	var objParentMenu = document.getElementById("menu_"+objSubMenu.getAttribute("parentID"));
	if(objSubMenu.style.getAttribute("display") != "none")
	{
		var intInside = objSubMenu.getAttribute("inside");
		if(!intInside || intInside == "0")
		{
			intInside = objParentMenu.getAttribute("inside");
		}
		if(!intInside || intInside == "0")
		{
			objParentMenu.setAttribute("className","Nav_Td Nav_Out");
			objSubMenu.removeAttribute("parentID");
			objSubMenu.style.setAttribute("display","none");
		}
		else
		{
			setTimeout("hideSubNavigator()",1000)
		}
	}
	else
	{
		setTimeout("hideSubNavigator()",1000)
	}
}

function getOffset(field,attr)
{
	var	offset = 0;
	while(field) {
		offset +=	field[attr];
		field	=	field.offsetParent;
	}
	return offset;
}

function openLink(strLink, strTarget)
{
	if(strLink.length == 0) return;
	switch(strTarget.toLowerCase()) {
		case "_parent":
			parent.window.location.href = strLink;
			break;
		case "_top":
			top.window.location.href = strLink;
			break;
		case "_blank":
			window.open(strLink, "", "");
			break;
		case "_self" :
			window.location.href = strLink;
			break;
		case "_js":
			eval(strLink);
			break;
		default :
			if(/^javascript:\S+$/ig.test(strLink))
			{
				eval(strLink.substring("javascript:".length));
			}
			else
			{
				if(strTarget.length == 0) {				
					window.location.href = strLink;
				} else {
					strTarget.window.location.href = strLink;
				}				
			}
	}
}

/*navigator_end*/