document.writeln("<div class=\'QQbox\' id=\'divQQbox\' >");
document.writeln("<div class=\'Qlist\' id=\'divOnline\' onclick=\'hideMsgBox(event)\' style=\'display:none;\'>");
document.writeln("<div class=\'con\'><div class=\'main_head\'></div>");
document.writeln("<ul class=\'ContactList\'>");
document.writeln("<li class=\'odd ContactTitle titleTop\'>Toll Free</li>");
document.writeln("<li class=\'ContactTxt\'>400-886-8566</li>");
document.writeln("<li class=\'ContactTitle titleTop\'>Fax</li>");
document.writeln("<li class=\'ContactTxt\'>86-755-29835936</li>");
document.writeln("<li id=\'line\'></li>");
document.writeln("<li class=\'ContactTitle space titleTop\'>国内营销中心</li>");
document.writeln("<li class=\'ContactTitle titleMiddle spacein\'>深圳国内销售部</li>");
document.writeln("<li class=\'ContactTxt ContactTEL\'>王总监：13828843101</li>");
document.writeln("<li class=\'ContactTitle titleMiddle\'>石家庄国内销售部</li>");
document.writeln("<li class=\'ContactTxt ContactTEL\'>胡总监：13603111582</li>");
document.writeln("<li id=\'line\'></li>");
document.writeln("<li class=\'ContactTitle space titleTop\'>Oversea Sales</li>");
document.writeln("<li class=\'ContactTxt ContactMSN\'><a href=\'msnim:add?contact=andycfp2005@hotmail.com\'  title=\'Add Me\'><img src=\'/images/blank.gif\' alt=\'MSN:andycfp2005@hotmail.com\' border=\'0\' /></a><a href=\'msnim:chat?contact=andycfp2005@hotmail.com\' title=\'Have a Chat with Me\'>&nbsp;Andy Chen</a></li>");
document.writeln("</ul>");
document.writeln("<div class=\'b\'></div>");
document.writeln("</div>");
document.writeln("</div>");
document.writeln("<div id=\'divMenu\' onclick=\'OnlineOver();\'><img src=\'http://www.gtek.hk/images/img3-5_1.png\' class=\'press\' alt=\'在线客服\'></div>");
document.writeln("</div>");

//<![CDATA[
var tips; var theTop = 100/*这是默认高度,越大越往下*/; var old = theTop;
function initFloatTips() {
tips = document.getElementById('divQQbox');
moveTips();
};
function moveTips() {
var tt=150;
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";
}

function hideMsgBox(theEvent){ 
if (theEvent){
var browser=navigator.userAgent; 
if (browser.indexOf("Firefox")>0){ 
if (document.getElementById("divOnline").contains(theEvent.relatedTarget)) { 
return; 
} 
} 

if (browser.indexOf("MSIE")>0){
if (document.getElementById("divOnline").contains(event.toElement)) {
return;
}
}
}

document.getElementById("divMenu").style.display = "block";
document.getElementById("divOnline").style.display = "none";
}