﻿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='infobox'>我们营业的时间<br>周一-周五9:00-17:30 <br>周六：9:00-16:00</div>");
document.write("<div class='con'>");

document.write("<ul style='padding:0px; margin-left:10px;'>");

document.write("<li class=odd><div style='text-align:center; line-height:25px;'><b>上海总部:</b>021-63531239</div></li>");

document.write("<li class=odd><div style='float:left;'><a href='http://wpa.qq.com/msgrd?v=3&uin=1758674295&menu=no' target='_blank'><img border='0' src='http://wpa.qq.com/pa?p=2:1758674295:41'></div><div style='flost:left; line-height:25px; text-indent:5px;'>郎小姐</div></a></li>");

document.write("<li class=odd><div style='float:left;'><a href='http://wpa.qq.com/msgrd?v=3&uin=790281671&menu=no' target='_blank'><img border='0'  src='http://wpa.qq.com/pa?p=2:790281671:41'></div><div style='flost:left; line-height:25px; text-indent:5px;'>周小姐</div></a></li>");

document.write("<li class=odd><div style='float:left;'><a href='http://wpa.qq.com/msgrd?v=3&uin=1606379825&menu=no' target='_blank'><img border='0'  src='http://wpa.qq.com/pa?p=2:1606379825:41'></div><div style='flost:left; line-height:25px; text-indent:5px;'>唐小姐</div></a></li>");

document.write("<li class=odd><div style='float:left;'><a href='http://wpa.qq.com/msgrd?v=3&uin=362296716&menu=no' target='_blank'><img border='0'  src='http://wpa.qq.com/pa?p=2:362296716:41'></div><div style='flost:left; line-height:25px; text-indent:5px;'>孙小姐</div></a></li>");

document.write("<li class=odd><div style='text-align:center; line-height:25px;'><b>浦东分部:</b>021-58407023</div></li>");

document.write("<li class=odd><div style='float:left;'><a href='http://wpa.qq.com/msgrd?v=3&uin=1241672160& menu=no' target='_blank'><img border='0' src='http://wpa.qq.com/pa?p=2:1241672160:41'></div><div style='flost:left; line-height:25px; text-indent:5px;'>李小姐</div></a></li>");

document.write("<li class=odd><div style='float:left;'><a href='http://wpa.qq.com/msgrd?v=3&uin=1046475569&menu=no' target='_blank'><img border='0' src='http://wpa.qq.com/pa?p=2:1046475569:41'></div><div style='flost:left; line-height:25px; text-indent:5px;'>喻小姐</div></a></li>");


document.write("<li class=odd><div style='text-align:center; line-height:25px;'><b>闵行分部:</b>021-33500654</div></li>");

document.write("<li class=odd><div style='float:left;'><a href='http://wpa.qq.com/msgrd?v=3&uin=2274134672& menu=no' target='_blank'><img border='0' src='http://wpa.qq.com/pa?p=2:2274134672:41'></div><div style='flost:left; line-height:25px; text-indent:5px;'>李小姐</div></a></li>");

document.write("<li class=odd><div style='float:left;'><a href='http://wpa.qq.com/msgrd?v=3&uin=496644805&menu=no' target='_blank'><img border='0' src='http://wpa.qq.com/pa?p=2:496644805:41'></div><div style='flost:left; line-height:25px; text-indent:5px;'>沈先生</div></a></li>");

document.write("<li class=odd><div style='text-align:center; line-height:25px;'><b>财务部:</b>021-51068155</div></li>");

document.write("<li class=odd><div style='float:left;'><a href='http://wpa.qq.com/msgrd?v=3&uin=1368489608&menu=no' target='_blank'><img border='0' src='http://wpa.qq.com/pa?p=2:1368489608:41'></div><div style='flost:left; line-height:25px; text-indent:5px;'>熊小姐</div></a></li>");

document.write("<li style='color:red;border-top:1px #ccc dashed;margin-top:5px;'>提示</li>");
document.write("<li>点击头像或文字可以和我聊天</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='http://www.u-yh.com.cn/templets/how/images/qq_1.gif' 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";

}









   
