﻿var qq1248454040 = "<a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=0c3eee7e49a3ad6b8e1c2c60d93db73498fd172e5a26bc880bce6591816651760314f6510489fea9828c19cde66399a14ea2c1e0c624b336bb20b04f10bf627612231d335be66b176d73fec707614dcf4d106e3918b3cf8ab41aaeed942a33b0\"; target=_blank; onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=0c3eee7e49a3ad6b8e1c2c60d93db73498fd172e5a26bc880bce6591816651760314f6510489fea9828c19cde66399a14ea2c1e0c624b336bb20b04f10bf627612231d335be66b176d73fec707614dcf4d106e3918b3cf8ab41aaeed942a33b0';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC='http://wpa.qq.com/pa?p=1:1248454040:1' alt=\"点击这里给我发消息\"></a>";
var qq282278325 = "<a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=bb9aaf38427f2e2d7fb6b2b0ead786991c33a14f56fc699dca07589915091cbcbce716bba016ecc9244ac00e4c860052a7a84680af61510f4153701d3b884679900a872f9f1ebff5f8d795a1a525c70737c317dcc555839cb999709c6f326ed7\"; target=_blank; onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=bb9aaf38427f2e2d7fb6b2b0ead786991c33a14f56fc699dca07589915091cbcbce716bba016ecc9244ac00e4c860052a7a84680af61510f4153701d3b884679900a872f9f1ebff5f8d795a1a525c70737c317dcc555839cb999709c6f326ed7';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC='http://wpa.qq.com/pa?p=1:282278325:1' alt=\"点击这里给我发消息\"></a>";
var qq1197401614 = "<a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=9719cba4d16898d90c4b22f0b07cde53071610e9331a9bb2bdc87d066fa81fa0674221d718916a7bff9b85c866a70c91e59d044f522e9d26698461ad35d6eacf3d116cb1df0ace52b73f041f2cd3d628b5c6d75fad7c463920f914e39a59b254\"; target=_blank; onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=9719cba4d16898d90c4b22f0b07cde53071610e9331a9bb2bdc87d066fa81fa0674221d718916a7bff9b85c866a70c91e59d044f522e9d26698461ad35d6eacf3d116cb1df0ace52b73f041f2cd3d628b5c6d75fad7c463920f914e39a59b254';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC='http://wpa.qq.com/pa?p=1:1197401614:1' alt=\"点击这里给我发消息\"></a>";
var qq778378079 = "<a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=6b78af7277ec8811885c2c1dad5cb4422f10bf5246a790ac409a5ec25d7960de1bc642a80393a7f1fd230e94c353912ea1850959626c0f7c5cf87b178109c02e766431b95290091e90ae6eb99bc198e3397b726673ad23dca3323de9e5ef5c7a\"; target=_blank; onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=6b78af7277ec8811885c2c1dad5cb4422f10bf5246a790ac409a5ec25d7960de1bc642a80393a7f1fd230e94c353912ea1850959626c0f7c5cf87b178109c02e766431b95290091e90ae6eb99bc198e3397b726673ad23dca3323de9e5ef5c7a';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC='http://wpa.qq.com/pa?p=1:778378079:1' alt=\"点击这里给我发消息\"></a>";
var qq1359883796 = "<a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=47ff22bdb74295b0096265d2fe7832303220181ecc16bf1b3621a95f7d1da0d7\"; target=_blank; onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=47ff22bdb74295b0096265d2fe7832303220181ecc16bf1b3621a95f7d1da0d7';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC='http://wpa.qq.com/pa?p=1:1359883796:47' alt=\"\"></a>";


document.write("<div class='QQbox' id='divQQbox' >");
document.write("<div class='Qlist' id='divOnline' onmouseout='hideMsgBox(event);' style='display : none;'>");
document.write('  <div class="Qtop">');
document.write('  	<div class="QtopTitle">在线客服</div>');
document.write('  </div>');
document.write('  <div cladd="QonLineTime">');
document.write('  	<div class="QonLineTimePa"><div align="center">在线时间<br />9:00-23:00</div></div>');
document.write('  </div>');
document.write('  <div class="Qul">');
document.write('   <div class="Qli">' + qq1248454040 + '</div>');
document.write('   <div class="Qli">' + qq282278325 + '</div>');
document.write('   <div class="Qli">' + qq1197401614 + '</div>');
document.write('   <div class="Qli">' + qq778378079 + '</div>');
document.write('   <div class="Qli">' + qq1359883796 + '</div>');
document.write('  </div>');
document.write('  <div class="Qbottom">');
document.write('  	<div class="QbottomPa">');
document.write('    	<div align="center"><img src="OKQQ/images/qq-tel.gif" />(020)85669331</div>');
document.write('  	</div>');
document.write('  </div>');

document.write("</div>");
document.write("<div id='divMenu' style='float: right;' onmouseover='OnlineOver();'><img src='OKQQ/images/qq_1.gif' class='press' alt='在线咨询'></div>");
document.write("</div>");


//<![CDATA[
var tips;
var theTop = 190/*这是默认高度,越大越往下*/;
var old = theTop;
function initFloatTips() {
	tips = document.getElementById('divQQbox');
	moveTips();
};

function moveTips() {
	var tt = 50;
	if (window.innerHeight) {
		pos = window.pageYOffset
	}
	else if (document.documentElement && document.documentElement.scrollTop) {
		pos = document.documentElement.scrollTop
	}
	else if (document.body) {
		pos = document.body.scrollTop;
	}
	
	pos = pos - tips.offsetTop + theTop;
	pos = tips.offsetTop + pos / 10;
	
	if (pos < theTop) pos = theTop;
	if (pos != old) {
		tips.style.top = pos + "px";
		tt = 10;
		//alert(tips.style.top);
	}
	
	old = pos;
	setTimeout(moveTips,tt);
}

//!]]>

initFloatTips();

function OnlineOver(){
	document.getElementById("divMenu").style.display = "none";
	document.getElementById("divOnline").style.display = "block";
	//document.getElementById("divQQbox").style.width = "145px";
}

function OnlineOut(){
	document.getElementById("divMenu").style.display = "block";
	document.getElementById("divOnline").style.display = "none";
}


if(typeof(HTMLElement) != "undefined")    //给firefox定义contains()方法，ie下不起作用
{   
      HTMLElement.prototype.contains = function(obj)   
      {   
          while (obj != null && typeof(obj.tagName) != "undefind"){ //通过循环对比来判断是不是obj的父元素
   　　　　if(obj == this) return true;   
   　　　　obj = obj.parentNode;
   　　}   
          return false;   
      };   
}  

function hideMsgBox(theEvent){ //theEvent用来传入事件，Firefox的方式
	if (theEvent){
		var browser=navigator.userAgent; //取得浏览器属性
		if (browser.indexOf("Firefox")>0){ //如果是Firefox
			if (document.getElementById('divOnline').contains(theEvent.relatedTarget)) { //如果是子元素
				return; //结束函式
			} 
		} 
		if (browser.indexOf("MSIE")>0){ //如果是IE
			if (document.getElementById('divOnline').contains(event.toElement)) { //如果是子元素
				return; //结束函式
			}
		}
	}
	
	/*要执行的操作*/
	document.getElementById("divMenu").style.display = "block";
	document.getElementById("divOnline").style.display = "none";
}
