﻿document.write("<div class='QQbox' id='divQQbox' >");

document.write("<div class='Qlist' id='divOnline' onmouseout='hideMsgBox(event);' style='display : none;'>");

document.write("<div class='t'></div>");

document.write("<div class='con'>");

document.write("<h2>在线客服</h2>");

document.write("<ul>");

document.write("<li class=odd><a href=' http://sighttp.qq.com/cgi-bin/check?sigkey=fd81ae24e9f93c3abec3c45a2252024ad38e0fa384177a2105f26822ba6f5d20' target='_blank'><img src=' http://wpa.qq.com/pa?p=1:1508018142:45'  border='0' alt='QQ' />出境咨询丹丹</a></li>");

document.write("<li><a href=' http://sighttp.qq.com/cgi-bin/check?sigkey=c7c47c3331fd6e114961fc435763659add46e32d85d3ffe52caa2541e88ebea4' target='_blank'><img src=' http://wpa.qq.com/pa?p=1:1459732722:45'  border='0' alt='QQ' />出境咨询小袁</a></li>");


document.write("<li><a href=' http://sighttp.qq.com/cgi-bin/check?sigkey=604f9c62dae061ed946c8285f6301c57723c7610619e81e2c8663324783a4bfa' target='_blank'><img src=' http://wpa.qq.com/pa?p=1:274367629:45'  border='0' alt='QQ' />青旅客服冬冬</a></li>");

document.write("<li><a href=' http://sighttp.qq.com/cgi-bin/check?sigkey=ad97a34b1704846ee04fd1350bbd71d8412819a47153f09910e44572f2eec97e' target='_blank'><img src=' http://wpa.qq.com/pa?p=1:1056870960:45'  border='0' alt='QQ' />青旅客服陈志</a></li>");


document.write("<li><a href=' http://sighttp.qq.com/cgi-bin/check?sigkey=a2f942d2465ed2651d7c84fd77492b146510f04b768b4b92f107c27549b09bc9' target='_blank'><img src=' http://wpa.qq.com/pa?p=1:572724531:45'  border='0' alt='QQ' />青旅客服小杨</a></li>");

document.write("<li><a href=' http://sighttp.qq.com/cgi-bin/check?sigkey=a478f4c91847904fce7f5444d745a4e47891befe06635963d91e2bbb32b670a7' target='_blank'><img src=' http://wpa.qq.com/pa?p=1:285683764:45'  border='0' alt='QQ' />青旅客服陈陈</a></li>");

document.write("<li><a href=' http://sighttp.qq.com/authd?IDKEY=04788c7842f77d90b6a246080c70c4a42125a93aedecb290' target='_blank'><img src=' http://wpa.qq.com/pa?p=1:1847548943:45'  border='0' alt='QQ' />青旅客服丁丁</a></li>");

document.write("<li><a href=' http://sighttp.qq.com/authd?IDKEY=1f06f783f473d1e40c020055075433e3a8296ec68b8ee370' target='_blank'><img src=' http://wpa.qq.com/pa?p=1:1575979038:45'  border='0' alt='QQ' />青旅客服平平</a></li>");

document.write("<li><a href=' http://wpa.qq.com/msgrd?v=3&uin=2586830474&site=qq&menu=yes' target='_blank'><img src=' http://wpa.qq.com/pa?p=2:2586830474:45'  border='0' alt='QQ' />青旅值班客服</a></li>");

document.write("<li><a href=' http://wpa.qq.com/msgrd?v=3&uin=2320565325&site=qq&menu=yes' target='_blank'><img src=' http://wpa.qq.com/pa?p=2:2320565325:45'  border='0' alt='QQ' />青旅值班客服</a></li>");


document.write("<li class=odd><a href=' http://www.53kf.com/company.php?arg=cqyts&style=1'><b>点此直接在线咨询</b></a> </li>");

document.write('<li style="color:red;font-size:12px;">电话:400-660-7023</li>');

document.write("</ul>");document.write("</div>");

document.write("<div class='b'></div>");

document.write("</div>");

document.write("<div id='divMenu' onmouseover='OnlineOver();'><img src='/QQkefu/images/qq_1.png' class='press' alt='重庆中青旅客服热线'></div>");

document.write("</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 = "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";

}
