﻿document.write("<div class='QQbox' id='divQQbox' ><div class='Qlist' id='divOnline' onmouseout='hideMsgBox(event);' style='display : none;'><div class='t'></div><div class='con' style=\"width:100%; overflow:hidden;\"><table width=\"92%\" border=\"0\" align=\"center\" cellpadding=\"1\" cellspacing=\"1\">");

document.write("<tr><td width='22%'><img src=' http://wpa.qq.com/pa?p=1:764553758:4'  border='0' alt='QQ' /></td><td width='78%'><a href='http://wpa.qq.com/msgrd?V=1&Uin=764553758&Site=QQ咨询&Menu=yes' title='764553758' target='_blank'>764553758</a></td></tr><tr><td width='22%'><img src=' http://wpa.qq.com/pa?p=1:745365680:4'  border='0' alt='QQ' /></td><td width='78%'><a href='http://wpa.qq.com/msgrd?V=1&Uin=745365680&Site=QQ咨询&Menu=yes' title='745365680' target='_blank'>745365680</a></td></tr><tr><td colspan='2' width='100%'><a href=http://float2006.tq.cn/static.jsp?uin=8661898&amp;ltype=0 target=_blank>TQ洽谈通<img src=http://float2006.tq.cn/staticimg.jsp?uin=8661898&style=1 border='0'></a></td></tr><tr><td colspan='2' width='100%'><a href=http://float2006.tq.cn/static.jsp?uin=8661910&amp;ltype=0 target=_blank>TQ洽谈通<img src=http://float2006.tq.cn/staticimg.jsp?uin=8661910&style=1 border='0'></a></td></tr><tr><td colspan='2' width='100%'><a href=http://float2006.tq.cn/static.jsp?uin=8661908&amp;ltype=0 target=_blank>TQ洽谈通<img src=http://float2006.tq.cn/staticimg.jsp?uin=8661908&style=1 border='0'></a></td></tr><tr><td width='22%'><img src='../images/cmodel2/zx_07.jpg' width='18' height='16' alt='MSN' /></td><td width='78%'><a href='msnim:chat?contact=panasia01@msn.cn' title='panasia01@msn.cn'>panasia01@msn.cn</a></td></tr><tr><td width='22%'><img src='../images/cmodel2/zx_07.jpg' width='18' height='16' alt='MSN' /></td><td width='78%'><a href='msnim:chat?contact=zhangwei.84@163.com' title='zhangwei.84@163.com'>zhangwei.84@163.com</a></td></tr>");


document.write("<\/table></div><div class='b'></div></div><div id='divMenu' onmouseover='OnlineOver();'><img src='../images/qq_1.gif' class='press' alt='Online message'></div></div>");

//<![CDATA[

var tips; var theTop = 145/*这是默认高度,越大越往下*/; 

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 = "170px";

}

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";

}