function showandhide(h_id, hon_class, hout_class, c_id, totalnumber, activeno) {
var h_id, hon_id, hout_id, c_id, totalnumber, activeno;
for (var i = 1; i <= totalnumber; i++) {
document.getElementById(h_id + i).className = hout_class;
}
document.getElementById(h_id + activeno).className = hon_class;
}
var tips;
var theTop = 300;
var old = theTop;
function initFloatTips() {
writeUI();
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;
}
//http:
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();
if (typeof (HTMLElement) != "undefined")//给firefox定义contains()方法,ie下不起作用
{
HTMLElement.prototype.contains = function (obj) {
while (obj != null && typeof (obj.tagName) != "undefind") {//
if (obj == this) return true;
obj = obj.parentNode;
}
return false;
}
}
function show() {
document.getElementById("meumid").style.display = "none"
document.getElementById("contentid").style.display = "block"
}
function hideMsgBox(theEvent) {
if (theEvent) {
var browser = navigator.userAgent;
if (browser.indexOf("Firefox") > 0) {//Firefox
if (document.getElementById("contentid").contains(theEvent.relatedTarget)) {
return
}
}
if (browser.indexOf("MSIE") > 0 || browser.indexOf("Presto") >= 0) {
if (document.getElementById('contentid').contains(event.toElement)) {
return; //结束函式
}
}
}
document.getElementById("meumid").style.display = "block";
document.getElementById("contentid").style.display = "none";
}
function writeUI() {
document.write("<style type=\"text/css\">");
document.write(".qqbox a:link {");
document.write("	color: #000;");
document.write("	text-decoration: none;");
document.write("}");
document.write(".qqbox a:visited {");
document.write("	color: #000;");
document.write("	text-decoration: none;");
document.write("}");
document.write(".qqbox a:hover {");
document.write("	color: #f80000;");
document.write("	text-decoration: underline;");
document.write("}");
document.write(".qqbox a:active {");
document.write("	color: #f80000;");
document.write("	text-decoration: underline;");
document.write("}");
document.write(".qqbox{");
document.write("	width:132px;");
document.write("	height:auto;");
document.write("	position:absolute;");
document.write("	left:50%;");
document.write("	margin-left:384px;");
document.write("	top:300px;");
document.write("	color:#000000;");
document.write("	font-size:12px;");
document.write("	letter-spacing:0px;");
document.write("}");
document.write(".qqlv{");
document.write("	width:25px;");
document.write("	height:256px;");
document.write("	overflow:hidden;");
document.write("	position:relative;");
document.write("	float:right;");
document.write("	z-index:50px;");
document.write("}");
document.write(".qqkf{");
document.write("	width:120px;");
document.write("	height:auto;");
document.write("	overflow:hidden;");
document.write("	margin-left:110px;");
document.write("	top:0;");
document.write("	z-index:99px;");
document.write("	border:6px solid #138907;");
document.write("	background:#fff;");
document.write("}");
document.write(".qqkfbt{");
document.write("	width:118px;");
document.write("	height:20px;");
document.write("	overflow:hidden;");
document.write("	background:#138907;");
document.write("	line-height:20px;");
document.write("	font-weight:bold;");
document.write("	color:#fff;");
document.write("	position:relative;");
document.write("	border:1px solid #9CD052;");
document.write("	cursor:pointer;");
document.write("	text-align:center;");
document.write("}");
document.write(".qqkfhm{");
document.write("	width:112px;");
document.write("	height:22px;");
document.write("	overflow:hidden;");
document.write("	line-height:22px;");
document.write("	padding-right:8px;");
document.write("	position:relative;");
document.write("	margin:3px 0;");
document.write("}");
document.write(".bgdh{");
document.write("	width:102px;");
document.write("	padding-left:10px;");
document.write("}");
document.write("</style>");
document.write("<div class=\"qqbox\" id=\"divQQbox\">");
document.write("<div class=\"qqkf\" style=\"display:block;\" id=\"contentid\">");
document.write("<div class=\"qqkfbt\" onclick=\"showandhide('qq-','qqkfbt','qqkfbt','K',2,1);\" id=\"qq-1\" onfocus=\"this.blur();\">service center</div>");
document.write("<div id=\"K1\">");
document.write("<div class=\"qqkfhm bgdh\"> <a href=\"tencent://message/?uin=554232671\"><img src=\"http://wpa.qq.com/pa?p=1:554232671:4\" border=\"0\"> Beryl Cen</a><br/></div>");
document.write("<div class=\"qqkfhm bgdh\"> <a href=\"tencent://message/?uin=1756343475\"><img src=\"http://wpa.qq.com/pa?p=1:1756343475:4\" border=\"0\"> COCO</a><br/></div>");
document.write("<div class=\"qqkfhm bgdh\"><a href=\"http://web.im.alisoft.com/msg.aw?v=2&amp;uid=wei821520&amp;site=cnalichn&amp;s=1\" target=\"_blank\"><img alt=\"Beryl Cen\" src=\"/images/library/aliww.gif\" border=\"0\" />Beryl Cen</a> <br/></div>");
document.write("<div class=\"qqkfhm bgdh\"><a href=\"http://web.im.alisoft.com/msg.aw?v=2&amp;uid=coco5234&amp;site=cnalichn&amp;s=1\" target=\"_blank\"><img alt=\"COCO\" src=\"/images/library/aliww.gif\" border=\"0\" />COCO</a> <br/></div>");
document.write("</div>");
document.write("<div class=\"qqkfbt\" onclick=\"showandhide('qq-','qqkfbt','qqkfbt','K',2,2);\" id=\"qq-2\" onfocus=\"this.blur();\">Sales Manager</div>");
document.write("<div id=\"K2\">");
document.write("<div class=\"qqkfhm bgdh\"><a href=\"msnim:chat?contact=gilmantong@hotmail.com\"><img src=\"/images/library/msn.gif\" align=\"absmiddle\" border=\"0\" alt=\"MSN\">MSN</a><br/></div>");
document.write("</div>");
document.write("</div>");
document.write("</div>");
}