﻿// JavaScript Document
var LrinviteTimeout=0;
var LR_next_invite_seconds = 50;
var LiveAutoInvite0='您好，来自%IP%的朋友';
var LiveAutoInvite1='来自首页的对话';
var LiveAutoInvite2='欢迎您！ <BR>这里是山西民生医院网上会诊中心,如果您有健康方面的问题，请点击“<STRONG>接受</STRONG>”此邀请，我们将在线为您解答!';

var lastScrollY=0; 
function heartBeat(){
var diffY; 
if (document.documentElement && document.documentElement.scrollTop) 
    diffY = document.documentElement.scrollTop; 
else if (document.body) 
    diffY = document.body.scrollTop 
else 
    {/*Netscape stuff*/} 
     
percent=.1*(diffY-lastScrollY);  
if(percent>0)percent=Math.ceil(percent);  
else percent=Math.floor(percent);  
document.getElementById("adleft").style.top=parseInt(document.getElementById("adleft").style.top)+percent+"px"; 
document.getElementById("adright").style.top=parseInt(document.getElementById("adright").style.top)+percent+"px"; 
lastScrollY=lastScrollY+percent;  
} 

function goUrl()
{
	document.location="/qq/";
}

function adhide(names){document.getElementById(names).style.display='none';}
function screencl(names){if(screen.width<=800){adhide(names);}}
ycode="<div id='adleft' style='display:none;left:2px;position: absolute;z-index:1;top:100px;'><div style='width:100px;height:300px;background:#ccc;border:#999 solid 1px;'>左联</div><div align='right' style='background:#fff;font-size:0px;'>　<img src='javascript/close.gif' title='关闭' onclick=adhide('adleft') style='cursor:pointer'></div></div>";

zcode="<div id='adright' style='left:0px;position: absolute;z-index:1;top:150px;'><div ><a href=\"http://wpa.qq.com/msgrd?V=1&Uin=834475283&Site=山西民生医院&Menu=yes\" target=\"_blank\"><img src=\'http:\/\/www.sxms.com.cn\/qq\/qq.gif\' border=\"0\" \/><\/a></div><div align='left' style='background:#fff;font-size:0px;'></div></div>";
document.write(zcode);
document.write(ycode);
screencl('adleft');
screencl('adright');
window.setInterval("heartBeat()",1); 



