document.writeln("<div class=\"QQbox\" id=\"divQQbox\" >");
document.writeln("<div class='Qlist' id='divOnline' onmouseout='hideMsgBox(event);' style='display : none;'>");
document.writeln("<div class=\"t\"><\/div>");
document.writeln("<div class=\"con\">");
document.writeln("<h2>客服电话<\/h2>");
document.writeln("<div style=\"height:75px; width:131px;background-color:#272727; \"><img src='images/rexian.jpg' style=\"height:75px; width:131px;\" /></div>");
document.writeln("<h2>客服团队<\/h2>");
document.writeln("<ul>");
document.writeln("<li><A href=\"tencent://message/?uin=373283393&amp;Site=丽影婚纱;Menu=yes\" target=blank><img border=\"0\" SRC=http://wpa.qq.com/pa?p=1:373283393:7 alt=\"\"></A> <\/li>");
document.writeln("");
document.writeln("<\/ul>");
document.writeln("<ul>");
document.writeln("<li><A href=\"tencent://message/?uin=1471200038&amp;Site=丽影婚纱;Menu=yes\" target=blank><img border=\"0\" SRC=http://wpa.qq.com/pa?p=1:1471200038:7 alt=\"\"></A> <\/li>");
document.writeln("");
document.writeln("<\/ul>");
document.writeln("<ul>");
document.writeln("<li><A href=\"tencent://message/?uin=373283393&amp;Site=丽影婚纱;Menu=yes\" target=blank><img border=\"0\" SRC=http://wpa.qq.com/pa?p=1:373283393:7 alt=\"\"></A> <\/li>");
document.writeln("");
document.writeln("<\/ul>");
document.writeln("<ul>");
document.writeln("<li><A href=\"tencent://message/?uin=373283393&amp;Site=丽影婚纱;Menu=yes\" target=blank><img border=\"0\" SRC=http://wpa.qq.com/pa?p=1:373283393:7 alt=\"\"></A> <\/li>");
document.writeln("");
document.writeln("<\/ul>");
document.writeln("<ul>");
document.writeln("<li><A href=\"tencent://message/?uin=1471200038&amp;Site=丽影婚纱;Menu=yes\" target=blank><img border=\"0\" SRC=http://wpa.qq.com/pa?p=1:1471200038:7 alt=\"\"></A> <\/li>");
document.writeln("");
document.writeln("<\/ul>");
document.writeln("<\/div>");
document.writeln("<div class=\"b\"><\/div>");
document.writeln("<\/div>");
document.write("<div id='divMenu' class=\"Qlist2\" onmouseover='OnlineOver();'><img src='images/kefu.jpg' class='press' alt='丽影婚纱客服热线'></div>");
document.writeln("<\/div>")

function goqq(txtqq)
{
alert('对方的QQ号为：'+txtqq+'\n\n\临时会话信息会经常接收不到，请尽量把对方QQ加为好友。\n\n\即将为你转向临时会话。');
}
function goqq2(txtqq)
{
alert('对方的QQ号为：'+txtqq+'\n\n\临时会话信息会经常接收不到，请把对方QQ加为好友。');
}

var tips;
var theTop = 40/*这是默认高度,越大越往下*/;
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 = "40px";
	}
	
	function OnlineOut(){
		document.getElementById("divMenu").style.display = "block";
		document.getElementById("divOnline").style.display = "none";

	}

 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";
 }
