document.writeln("<style type=\"text\/css\">");
document.writeln(".qqbox{width:120px;height:auto;position:absolute;right:0;top:100px;}");
document.writeln(".qqlv{width:25px;height:256px;overflow:hidden;position:relative;float:right;z-index:50px;}");
document.writeln(".qqkf{width:110px;right:0;top:0;z-index:99px;border:6px solid #42a60d;background:#fff;}");
document.writeln(".qqkfbt{width:108px;height:25px;overflow:hidden;background:#42a60d;line-height:25px;font-weight:bold;color:#fff;position:relative;border:1px solid #9CD052;cursor:pointer;text-align:center;}");

document.writeln(".qqkfhm{width:110px;position:relative;margin-top:8px;}");
document.writeln(".msn{margin-left:13px;}");

document.writeln("#K1{ padding-bottom:10px; }");

document.writeln("<\/style>");

document.writeln("<div class=\"qqbox\" id=\"divQQbox\">");
document.writeln("  <div class=\"qqlv\" id=\"meumid\" onmouseover=\"show()\"><img src=\"\/content/front/images\/qq.gif\"><\/div>");
document.writeln("  <div class=\"qqkf\" style=\"display:none;\" id=\"contentid\" onmouseout=\"hideMsgBox(event)\">");
document.writeln("    <div class=\"qqkfbt\" onmouseout=\"showandhide(\'qq-\',\'qqkfbt\',\'qqkfbt\',\'K\',1,1);\" id=\"qq-1\" onfocus=\"this.blur();\">管 家 游 客 服<\/div>");
document.writeln("    <div id=\"K1\">");
document.writeln("");
document.writeln("      <div class=\"qqkfhm\"><a href=\"http:\/\/sighttp.qq.com\/cgi-bin\/check?sigkey=72d35736d0c176d2bf5cfb9f4c24d5cec58860c243aa887c45e05228c2a5add18e486635b3a8ae3502dc4b9bbe1e044586602d0bf1436bc8\"; target=_blank; onclick=\"var tempSrc=\'http:\/\/sighttp.qq.com\/wpa.js?rantime=\'+Math.random()+\'&sigkey=72d35736d0c176d2bf5cfb9f4c24d5cec58860c243aa887c45e05228c2a5add18e486635b3a8ae3502dc4b9bbe1e044586602d0bf1436bc8\';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:997169529:3\' alt=\"点击这里给我发消息\"><\/a><br\/><\/div>");
document.writeln("");
document.writeln("      <div class=\"qqkfhm\"><a href=\"http:\/\/sighttp.qq.com\/cgi-bin\/check?sigkey=72d35736d0c176d211ee9e14cd458be9e2879cc1bd27455ca98a7eefee90f699c2074a443c4a4859534c2ea5f2623c5a8936f6a0ada9bc19\"; target=_blank; onclick=\"var tempSrc=\'http:\/\/sighttp.qq.com\/wpa.js?rantime=\'+Math.random()+\'&sigkey=72d35736d0c176d211ee9e14cd458be9e2879cc1bd27455ca98a7eefee90f699c2074a443c4a4859534c2ea5f2623c5a8936f6a0ada9bc19\';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:1206858008:3\' alt=\"点击这里给我发消息\"><\/a><\/div>");
document.writeln("	");
document.writeln("      <div class=\"qqkfhm msn\"><script type=\"text\/javascript\" src=\"http:\/\/settings.messenger.live.com\/controls\/1.0\/PresenceButton.js\"><\/script>");
document.writeln("	<div title=\"MSN发送消息\" id=\"Microsoft_Live_Messenger_PresenceButton_64e1ae9cfdcbadf1\"  msgr:width=\"81\" msgr:backColor=\"#d5e3f8\" msgr:altBackColor=\"#FFFFFF\" msgr:foreColor=\"#424542\" msgr:conversationUrl=\"http:\/\/settings.messenger.live.com\/Conversation\/IMMe.aspx?invitee=64e1ae9cfdcbadf1@apps.messenger.live.com&mkt=zh-cn&useTheme=true&themeName=green&foreColor=333333&backColor=DCF2E5&linkColor=333333&borderColor=8ED4AB&buttonForeColor=2C0034&buttonBackColor=CFE9D9&buttonBorderColor=8ED4AB&buttonDisabledColor=CFE9D9&headerForeColor=006629&headerBackColor=92D6AE&menuForeColor=006629&menuBackColor=FFFFFF&chatForeColor=333333&chatBackColor=F4FBF7&chatDisabledColor=F6F6F6&chatErrorColor=760502&chatLabelColor=6E6C6C\"><\/div>");
document.writeln("<script type=\"text\/javascript\" src=\"http:\/\/messenger.services.live.com\/users\/64e1ae9cfdcbadf1@apps.messenger.live.com\/presence?dt=&mkt=zh-cn&cb=Microsoft_Live_Messenger_PresenceButton_onPresence\"><\/script><\/div>");
document.writeln("     ");
document.writeln("    <\/div>");
document.writeln("  <\/div>");
document.writeln("<\/div>")

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(c_id+i).style.display='none';
        document.getElementById(h_id+i).className=hout_class;
    }
    document.getElementById(c_id+activeno).style.display='block';
    document.getElementById(h_id+activeno).className=hon_class;
}
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();
	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";
 	}

