/*
JS Name: 悠然设计 网页右侧QQ在线客服悬浮JS代码
Design URL: http://www.PubCenter.Net.Cn
Demo URL: http://www.woaini.info
QQ：981389008
Version: 0.0.2
*/ 
document.writeln("<div class=\"qqbox\" id=\"divQQbox\">");
document.writeln("  <div class=\"qqlv\" id=\"meumid\" onmouseover=\"show()\"><img src=\"/images\/qq.png\" \/><\/div>");
document.writeln("  <div class=\"qqkf\" style=\"display:none;\" id=\"contentid\" onmouseout=\"hideMsgBox(event)\">");
document.writeln("    <div class=\"qqkfbt\">在 线 客 服<\/div>");
document.writeln("    <div id=\"K1\">");
document.writeln("    <div class=\"ima\"><img src=\"/images/face.jpg\" width=\"100\" height=\"100\" />");
document.writeln("        <\/div>");
document.writeln("      <div class=\"qqkfhm bgdh\"><a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=f44caaa969e8aee74f6fb8982c24a3e20605779b24b87b14ace970a153d173caaa7cb44b83518f4eadcb29b3b7b490e7d077375e6e50b9ba75f8a9d8a9db465b5e0fde4c76c5669e\"; target=_blank; onclick=\"var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&sigkey=f44caaa969e8aee74f6fb8982c24a3e20605779b24b87b14ace970a153d173caaa7cb44b83518f4eadcb29b3b7b490e7d077375e6e50b9ba75f8a9d8a9db465b5e0fde4c76c5669e\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC=\'http://wpa.qq.com/pa?p=1:1185437118:6\' alt=\"QQ在线客服\"></a>");
document.writeln("        <\/div>");
document.writeln("     <div class=\"qqkfhm bgdh\"><a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=0607ba15c8dbd8ad9d313ff97376fd10cd7edc2c4e913e8f852e8353a2f57012ba9c3c3201c5f1cbc1a5009cffcf6dbf491b4003d438db79a0b0dd39b060997a5eebcdac829e8aa1\"; target=_blank; onclick=\"var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&sigkey=0607ba15c8dbd8ad9d313ff97376fd10cd7edc2c4e913e8f852e8353a2f57012ba9c3c3201c5f1cbc1a5009cffcf6dbf491b4003d438db79a0b0dd39b060997a5eebcdac829e8aa1\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC=\'http://wpa.qq.com/pa?p=1:1251478779:6\' alt=\"QQ在线客服\"></a>");
document.writeln("        <\/div>");
document.writeln("       <div class=\"qqkfhm bgdh\"><a target=\"_blank\" href=\"http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=2b18eec89f8941f6@apps.messenger.live.com&mkt=zh-cn\"><img style=\"border-style: none;\" src=\"http://www.sintaytour.com/images/msn.jpg\" width=\"25\" height=\"25\" />MSN客服</a>");
document.writeln("        <\/div>");

document.writeln("       <div class=\"qqkfhm bgdh\"><a target=\"_blank\" href=\"http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=ff155604a5dc4826@apps.messenger.live.com&mkt=zh-cn\"><img style=\"border-style: none;\" src=\"http://www.sintaytour.com/images/msn.jpg\" width=\"25\" height=\"25\" />MSN客服</a>");
document.writeln("        <\/div>");
document.writeln("      <div class=\"mo\">手机13817843298<\/div>");
document.writeln("        <\/div>");
document.writeln("    <\/div>");
document.writeln("  <\/div>");
document.writeln("<\/div>");
document.writeln("<script>");
document.writeln("function showandhide(h_id,hon_class,hout_class,c_id,totalnumber,activeno) {");
document.writeln("    var h_id,hon_id,hout_id,c_id,totalnumber,activeno;");
document.writeln("    for (var i=1;i<=totalnumber;i++) {");
document.writeln("        document.getElementById(c_id+i).style.display=\'none\';");
document.writeln("        document.getElementById(h_id+i).className=hout_class;");
document.writeln("    }");
document.writeln("    document.getElementById(c_id+activeno).style.display=\'block\';");
document.writeln("    document.getElementById(h_id+activeno).className=hon_class;");
document.writeln("}");
document.writeln("");
document.writeln("var tips; ");
document.writeln("var theTop = 40;");
document.writeln("var old = theTop;");
document.writeln("function initFloatTips() ");
document.writeln("{ ");
document.writeln("	tips = document.getElementById(\'divQQbox\');");
document.writeln("	moveTips();");
document.writeln("}");
document.writeln("");
document.writeln("function moveTips()");
document.writeln("{");
document.writeln("	 	  var tt=50; ");
document.writeln("		  if (window.innerHeight) ");
document.writeln("		  {");
document.writeln("			  pos = window.pageYOffset  ");
document.writeln("		  }else if (document.documentElement && document.documentElement.scrollTop) {");
document.writeln("			 pos = document.documentElement.scrollTop  ");
document.writeln("		  }else if (document.body) {");
document.writeln("		    pos = document.body.scrollTop;  ");
document.writeln("		  }");
document.writeln("		  ");
document.writeln("		  pos=pos-tips.offsetTop+theTop; ");
document.writeln("		  pos=tips.offsetTop+pos\/10; ");
document.writeln("		  if (pos < theTop){");
document.writeln("			 pos = theTop;");
document.writeln("		  }");
document.writeln("		  if (pos != old) { ");
document.writeln("			 tips.style.top = pos+\"px\";");
document.writeln("			 tt=10;  \/\/alert(tips.style.top);  ");
document.writeln("		  }");
document.writeln("		  old = pos;");
document.writeln("		  setTimeout(moveTips,tt);");
document.writeln("}");
document.writeln("initFloatTips();");
document.writeln("");
document.writeln("	if(typeof(HTMLElement)!=\"undefined\")    \/\/给firefox定义contains()方法，ie下不起作用");
document.writeln("		{  ");
document.writeln("		  HTMLElement.prototype.contains=function (obj)  ");
document.writeln("		  {  ");
document.writeln("			  while(obj!=null&&typeof(obj.tagName)!=\"undefind\"){ \/\/通过循环对比来判断是不是obj的父元素");
document.writeln("	   　　 　if(obj==this) return true;  ");
document.writeln("	   　　　	　obj=obj.parentNode;");
document.writeln("	   　　	  }  ");
document.writeln("			  return false;  ");
document.writeln("		  }");
document.writeln("	}");
document.writeln("");
document.writeln("function show()");
document.writeln("{");
document.writeln("	document.getElementById(\"meumid\").style.display=\"none\"");
document.writeln("	document.getElementById(\"contentid\").style.display=\"block\"");
document.writeln("}");
document.writeln("	function hideMsgBox(theEvent){");
document.writeln("	  if (theEvent){");
document.writeln("		var browser=navigator.userAgent;");
document.writeln("		if (browser.indexOf(\"Firefox\")>0){  \/\/如果是Firefox");
document.writeln("		    if (document.getElementById(\"contentid\").contains(theEvent.relatedTarget)) {  \/\/如果是子元素");
document.writeln("				return");
document.writeln("			}");
document.writeln("		}");
document.writeln("		if (browser.indexOf(\"MSIE\")>0 || browser.indexOf(\"Presto\")>=0){  \/\/如果是IE");
document.writeln("	        if (document.getElementById(\'contentid\').contains(event.toElement)) {  \/\/如果是子元素");
document.writeln("			    return;  \/\/结束函式");
document.writeln("		    }");
document.writeln("		}");
document.writeln("	  }");
document.writeln("	  document.getElementById(\"meumid\").style.display = \"block\";");
document.writeln("	  document.getElementById(\"contentid\").style.display = \"none\";");
document.writeln(" 	}");
document.writeln("<\/script>")