	window.onresize = eznessResizeDiv;
	window.onerror = function(){}
	var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;
	var px = document.doctype?"px":0;
	var scrollwidth = navigator.userAgent.indexOf("Firefox")>0?16:0;
	var iframeheight = navigator.userAgent.indexOf("MSIE")>0?170-2:209-2;
	String.prototype.Trim  = function(){return this.replace(/^\s+|\s+$/g,"");}
	function ezness_collapse(obj){
		ct = document.getElementById('maincontent2');
		if(ct.style.display=="none"){
			ct.style.display="";
			obj.src=obj.src.replace("b.gif","a.gif");
		} else {
			ct.style.display="none";
			obj.src=obj.src.replace("a.gif","b.gif");
		}
		eznessResizeDiv();
	}
	function ezness_close(obj){
		ct = document.getElementById('maincontent3');
		if(ct.style.display=="none"){
			ct.style.display="";
		} else {
			ct.style.display="none";
		}
		eznessResizeDiv();
	}

	

	function eznessMsg()
	{
		try{
			divTop = parseInt(document.getElementById("eMeng").style.top,10);
			divLeft = parseInt(document.getElementById("eMeng").style.left,10);
			divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10);
			divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10);

			var scrollPosTop,scrollPosLeft,docWidth,docHeight;
			if (typeof window.pageYOffset != 'undefined') { 
				scrollPosTop = window.pageYOffset; 
				scrollPosLeft = window.pageXOffset; 
				docWidth = window.innerWidth; 
				docHeight = window.innerHeight; 
			} else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
				scrollPosTop = document.documentElement.scrollTop;
				scrollPosLeft = document.documentElement.scrollLeft;
				docWidth = document.documentElement.clientWidth;
				docHeight = document.documentElement.clientHeight;
			} else if (typeof document.body != 'undefined') { 
				scrollPosTop = document.body.scrollTop;
				scrollPosLeft = document.body.scrollLeft;
				docWidth = document.body.clientWidth;
				docHeight = document.body.clientHeight;
			}

			document.getElementById("eMeng").style.top = parseInt(scrollPosTop,10) + docHeight + 10 + px;// divHeight
			document.getElementById("eMeng").style.left = parseInt(scrollPosLeft,10) + docWidth - divWidth - scrollwidth + px;
			document.getElementById("eMeng").style.visibility="visible";
			objTimer = window.setInterval("ezness_move_div()",10);
		}catch(e){}
	}

	function eznessResizeDiv()
	{
		i+=1;
		try{
			divHeight = parseInt(document.getElementById("eMeng").offsetHeight,10);
			divWidth = parseInt(document.getElementById("eMeng").offsetWidth,10);

			var scrollPosTop,scrollPosLeft,docWidth,docHeight; 
			if (typeof window.pageYOffset != 'undefined') { 
				scrollPosTop = window.pageYOffset; 
				scrollPosLeft = window.pageXOffset; 
				docWidth = window.innerWidth; 
				docHeight = window.innerHeight; 
			} else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
				scrollPosTop = document.documentElement.scrollTop;
				scrollPosLeft = document.documentElement.scrollLeft;
				docWidth = document.documentElement.clientWidth;
				docHeight = document.documentElement.clientHeight;
			} else if (typeof document.body != 'undefined') { 
				scrollPosTop = document.body.scrollTop;
				scrollPosLeft = document.body.scrollLeft;
				docWidth = document.body.clientWidth;
				docHeight = document.body.clientHeight;
			}

			document.getElementById("eMeng").style.top = docHeight - divHeight + parseInt(scrollPosTop,10) + px;
			document.getElementById("eMeng").style.left = docWidth - divWidth + parseInt(scrollPosLeft,10) - scrollwidth + px;
		}catch(e){}
	}

	function ezness_move_div()
	{

		var scrollPosTop,scrollPosLeft,docWidth,docHeight; 
		if (typeof window.pageYOffset != 'undefined') { 
			scrollPosTop = window.pageYOffset; 
			scrollPosLeft = window.pageXOffset; 
			docWidth = window.innerWidth; 
			docHeight = window.innerHeight; 
		} else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
			scrollPosTop = document.documentElement.scrollTop;
			scrollPosLeft = document.documentElement.scrollLeft;
			docWidth = document.documentElement.clientWidth;
			docHeight = document.documentElement.clientHeight;
		} else if (typeof document.body != 'undefined') { 
			scrollPosTop = document.body.scrollTop;
			scrollPosLeft = document.body.scrollLeft;
			docWidth = document.body.clientWidth;
			docHeight = document.body.clientHeight;
		}

		try{
			if(parseInt(document.getElementById("eMeng").style.top,10) <= (docHeight - divHeight + parseInt(scrollPosTop,10)))
			{
				window.clearInterval(objTimer);objTimer = window.setInterval("eznessResizeDiv()",1);
			}
			divTop = parseInt(document.getElementById("eMeng").style.top,10);
			document.getElementById("eMeng").style.top = divTop - 1 + px;
		}catch(e){}
	}
	function eznessMessbox(shape,color){
		var styles='position:absolute;top:0px;left:0px;z-index:99999;visibility:hidden;';
		var copic='<img src="images/c_images/ico_'+color+'a.gif" align="absmiddle" class="ioc'+color+'" style="cursor:pointer;" onClick="ezness_collapse(this)">';
		var offpic=' <img src="images/c_images/bt.gif" align="absmiddle" style="cursor:pointer;" onClick="ezness_close(this)" title="关闭">';
		if(shape>1) window.onload = eznessMsg;
		else {styles='';copic=''}
		var s;
		if(shape==2) {
			s='<div id=eMeng style="Z-INDEX:99999;LEFT:0px;POSITION:absolute;TOP:0px;VISIBILITY:hidden;">'

+ '<div id="maincontent3"><table border="0" width="216" height="21" cellspacing="0" cellpadding="0">'
+ '		<tr><td background="images/c_images/all_01.gif" align="right" style="padding-right:10px;">'
+ '<!--<a href="index.php?do=contact" target="_blank"><img src="images/c_images/ico_1b.gif" align="absmiddle" border="0"></a>-->'
+ copic + offpic
+ '		</td></tr>'
+ '</table>'

+'<table border="0" width="216" cellspacing="0" cellpadding="0">'
+'		<tr><td style="background: url(images/c_images/all_02.gif) repeat-y;">'
+'			<div id="maincontent2" style="margin:5px 10px;">'
+'				<img src="images/c_images/qq.gif" style="margin-bottom:-10px;"> <a href="tencent://message/?uin=794174169&amp;Site=咨询&amp;Menu=yes">客服QQ：794174169</a>'
+'				<br><img src="images/c_images/qq.gif" style="margin-bottom:-10px;margin-top:8px;"> <a href="tencent://message/?uin=894902143&amp;Site=咨询&amp;Menu=yes">客服QQ：894902143</a>'
+'			</div>'
+'		</td></tr>'
+'</table>'
+'<table border="0" width="216" height="2" cellspacing="0" cellpadding="0">'
+'<tr><td background="images/c_images/all_04.gif"></td></tr></table>'
+'</div></div>';
		} 
		document.writeln(s);
	}
	
	eznessMessbox(2,1);