var online=new Array();var line=new Array();var qqNumber=new Array('328090460','925897217','332055591'); xmlHttp=false;try {  xmlHttp=new ActiveXObject("MSxml2.XMLHTTP");}catch (e){try{  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e2){  xmlHttp=false;}} if(!xmlHttp && typeof XMLHttpRequest!='undefined'){ xmlHttp=new XMLHttpRequest();}function callServer(){var url="http://webpresence.qq.com/getonline?Type=1&"; for(var i=0;i<qqNumber.length;i++){url+=qqNumber[i]+":";}xmlHttp.open("GET",url,true); xmlHttp.onreadystatechange=updatePage1;xmlHttp.setRequestHeader('If-Modified-Since', 'Sat,1 Jan 2000 00:00:00 GMT');xmlHttp.send(null);} function updatePage1(){if(xmlHttp.readyState==4 && xmlHttp.Status==200){ line=xmlHttp.responseText.split(';');for(var i=0;i<line.length-1;i++){ online[i]=line[i].split('=')[1];}for(var i=0;i<qqNumber.length;i++){if(online[i]=='1'){document.getElementById(qqNumber[i]).style.backgroundImage="url('http://skin.ie100.net/line/qq_online.gif')";}else{ document.getElementById(qqNumber[i]).style.backgroundImage="url('http://skin.ie100.net/line/qq_offline.gif')";}}}}window.onload=callServer;

document.write("<div style='Z-INDEX: 99;left: 2px;WIDTH: 170px;POSITION: absolute;TOP: 80px;display:block;' id='divQQbox' >");
document.write("<div id='divOnline' style='display :block;'>");
document.write("<div style='BACKGROUND: url(http://skin.ie100.net/skin07/skin07/siderIM_title.gif); HEIGHT: 30px;'><span style='float:right;display:block;line-height:30px;padding:0 7px 0 0'><a href='#' style='font-size:12px;text-decoration:none;color:#F0F0F0;display:block;' onmousedown='Onlineclose();'>关闭</a></span><p style='display:block;font-size:12px;color:#F0F0F0;font-weight:normal;margin-left:8px;height:30px;line-height:30px;text-align:left'>【在线心灵急诊室】</p></div>");
document.write("<div style='BACKGROUND: url(http://skin.ie100.net/skin07/skin07/siderIM_bg.gif) repeat-y;'>");

document.write("<div style='width:160px;height:120px;margin:0 auto'>");document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase=' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='160' height='120'>");document.write("<param name='movie' value=' http://cs.ie100.net/AE7BD8532BF8001E26EA273A4DBB651B1AB1A23D08574520100722011350/lookme.swf' />");document.write("<param name='quality' value='high' />");document.write("<embed src=' http://cs.ie100.net/AE7BD8532BF8001E26EA273A4DBB651B1AB1A23D08574520100722011350/lookme.swf' quality='high' pluginspage=' http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='160' height='120'></embed>");document.write("</object>");document.write("</div>");document.write("<p style='width:70px;margin:3px auto;height:22px;'><input type='button' onclick=\"javascript:window.open('http://cs.ie100.net/AE7BD8532BF8001E26EA273A4DBB651B1AB1A23D08574520100722011350/loading_client.html','_black')\" value='立即咨询'/></p>");
document.write("<ul style='margin:0px;padding:2px 10px 0px 10px;list-style-type:none;font-size:12px';>");

document.write("<li style='height:24px;text-align:left;padding:0;line-height:24px;'><span  id='328090460' style='float:right;width:77px;height:19px;background:url(http://skin.ie100.net/line/qq_online.gif) no-repeat;margin-top:0px'></span><a   style='text-decoration:none;color:#F0F0F0'   target=blank href='tencent://message/?Menu=yes&uin=328090460&Site=itbulu&Service=300&sigT=45a1e5847943b64c6ff3990f8a9e644d2b31356cb0b4ac6b24663a3c8dd0f8aa12a595b1714f9d45'>同工-方舟</a></li>");document.write("<li style='height:24px;text-align:left;padding:0;line-height:24px;'><span  id='925897217' style='float:right;width:77px;height:19px;background:url(http://skin.ie100.net/line/qq_online.gif) no-repeat;margin-top:0px'></span><a   style='text-decoration:none;color:#F0F0F0'   target=blank href='tencent://message/?Menu=yes&uin=925897217&Site=itbulu&Service=300&sigT=45a1e5847943b64c6ff3990f8a9e644d2b31356cb0b4ac6b24663a3c8dd0f8aa12a595b1714f9d45'>同工-Bob</a></li>");document.write("<li style='height:24px;text-align:left;padding:0;line-height:24px;'><span  id='332055591' style='float:right;width:77px;height:19px;background:url(http://skin.ie100.net/line/qq_online.gif) no-repeat;margin-top:0px'></span><a   style='text-decoration:none;color:#F0F0F0'   target=blank href='tencent://message/?Menu=yes&uin=332055591&Site=itbulu&Service=300&sigT=45a1e5847943b64c6ff3990f8a9e644d2b31356cb0b4ac6b24663a3c8dd0f8aa12a595b1714f9d45'>同工-艾米</a></li>");
document.write("</ul>");
document.write("</div>");
document.write("<div style='BACKGROUND: url(http://skin.ie100.net/skin07/skin07/siderIM_bottom.gif); OVERFLOW: hidden; HEIGHT: 24px;cursor:pointer' onclick='javascript:window.open(\" http://www.ie100.net\",\"_blank\")'></div>");
document.write("</div>");
document.write("<div id='divMenu' onmousedown='OnlineOver();'style='display:none;width:28px;POSITION: absolute;CURSOR: pointer; HEIGHT: 170px;background:url(http://skin.ie100.net/skin07/skin07/kf-one.gif);left: 0px;'></div>");
document.write("</div>");

document.write("<div id='floatwin' style='width:344px;height:180px;background:url(http://skin.ie100.net/line/float_win_bg.jpg);POSITION: absolute;top:200px;left:50%;margin-left:-172px;z-index:999;display:none' >");document.write("<div style='position:relative'>");document.write("<input type='button' style='padding:0;margin:0;border:0;width:9px;height:9px;background:url(http://skin.ie100.net/line/float_win_close.jpg);POSITION: absolute;right:10px;top:7px' onclick='floatclose()'>");document.write("<p style='padding:0;margin:0;font-size:12px;font-weight:normal; text-align:left; line-height:20px;color:#09F;POSITION: absolute;left:10px;top:3px'>initiativetitle</p>");document.write("<p style='padding:0;margin:0;font-size:12px;font-weight:normal; text-align:left; line-height:20px;width:190px;color:#09F;POSITION: absolute;left:150px;top:40px'>initiativetext</p>");document.write("<input type='button' onclick=\"javascript:window.open('http://ss.ie100.net/jsMouldedition/client.html?title','')\" style='border:0;width:76px;height:23px;background:url(http://skin.ie100.net/line/lj_buts.jpg);POSITION: absolute;left:160px;top:140px'>");document.write("<input type='button' onclick='floatclose();'style='border:0;width:76px;height:23px;background:url(http://skin.ie100.net/line/sh_buts.jpg);POSITION: absolute;left:250px;top:140px'>");document.write("</div>");document.write("</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 = 80;
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"){ //通过循环对比来判断是不是obj的父元素
	   　　 　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){  //如果是IE
	        if (document.getElementById('contentid').contains(event.toElement)) {  //如果是子元素
			    return;  //结束函式
		    }
		}
	  }
	  document.getElementById("meumid").style.display = "block";
	  document.getElementById("contentid").style.display = "none";
 	}



window.setInterval("heartBeat()",1);

function OnlineOver(){
document.getElementById("divMenu").style.display = "none";
document.getElementById("divOnline").style.display = "block";
document.getElementById("divQQbox").style.width = "170px";
}
function Onlineclose(){
document.getElementById("divMenu").style.display = "block";
document.getElementById("divOnline").style.display = "none";
document.getElementById("divQQbox").style.width = "170px";
}

//主动咨询
var lastScrollY=0;function floatwindow(){diffY=document.documentElement.scrollTop;percent=0.1*(diffY-lastScrollY);if(percent>0)percent=Math.ceil(percent);else percent=Math.floor(percent);document.getElementById("floatwin").style.top=parseInt(document.getElementById("floatwin").style.top)+percent+"px";lastScrollY=lastScrollY+percent; }window.setInterval("floatwindow()",20);function floatclose(){var fw = document.getElementById("floatwin");fw.style.display="none";}function winshow(){var ws = document.getElementById("floatwin");ws.style.display="block"}window.setTimeout("winshow()",initime);
//主动咨询结束


