
<!--

function $( id ){return document.getElementById( id );}
var gBodyHeight = null;
window.onresize = function(){
	gBodyHeight = document.documentElement.offsetHeight;
	var MainDiv = $("MainDiv");
	var h = gBodyHeight - 72 - 39;
	
	if(h < 310) h = 310;  //特效高度超过顶部区域，可适当增加此高度，默认为310
	if(h > 640 - 92) h = 640 - 92;
	MainDiv.style.height = h + "px";
	gBodyHeight = document.documentElement.offsetHeight;
	var UN = $("UN");
	if(gBodyHeight > 425){
		if(gBodyHeight < 660){
			if(document.all){
				UN.style.top = gBodyHeight - 4 + "px";
			}else{
				UN.style.top = gBodyHeight - 4 + 3 + "px";
			}
		}else{
			UN.style.top = 660 + "px";
		}
	}else{
		UN.style.top = 425 + "px";
	}
	// $("error_div").innerHTML = document.documentElement.offsetHeight;
};

//var visitordata = new Cookie( document, "nts_mail_user", "126.com");
//visitordata.load();
/**
 * 对象坐标
 */
function fPosition(oElement) {
	if(!oElement){
		var oElement = this;
	}
    var valueT = 0, valueL = 0;
    do {
      valueT += oElement.offsetTop  || 0;
      valueL += oElement.offsetLeft || 0;
      oElement = oElement.offsetParent;
    } while (oElement);
    return [valueL, valueT];
};
function isChildNode(e, id){
	var e = e || event;
	var target = e.target || e.srcElement;
	if(target.id == "jonylink") return true; //注意要和网页上的ID对应
	while(target){
		if(target.id == id){
			return true;
		}
		if(target.parentNode){
			target = target.parentNode;
		}else{
			return false;
		}
	}
	return false;
}
function hideTips(){
	if(!window.t){
		t = window.setTimeout('$("guan").style.display = "none";t=null;', 500);
	}
}
document.onmouseover = function(e){
	if(isChildNode(e, "guan")){
		window.clearTimeout(t);
		t = null;
	}else{
		hideTips();
	}
}

	function fEvent(sType,oInput){
		switch (sType){
			case "focus" :
				oInput.isfocus = true;
				oInput.style.backgroundColor='#FFFFD8';
			case "mouseover" :
				oInput.style.borderColor = '#99E300';
				break;
			case "blur" :
				oInput.isfocus = false;
				oInput.style.backgroundColor="";
			case "mouseout" :
				if(!oInput.isfocus){
					oInput.style.borderColor='#A1BCA3';
				}
				break;
		}
	}


//-->

