﻿var LR_next_invite_seconds=60;
var LiveAutoInvite0='<p style="text-align:left"> 您好，来自%IP%的朋友---西安都市医院欢迎您！</p>';
var LiveAutoInvite1='来自首页的对话';
var LiveAutoInvite2='<img src="http://www.xadsyy.com/images/swttop.jpg" style="margin-left:10px; margin-top:-10px; margin-bottom:5px"><br><a href="http://tel.kuaishang.cn/call.php?sid=97&did=92&fromurl=http://www.xadsyy.com/" target="_blank"><img src="http://www.xadsyy.com/images/swtbot.jpg" style=" margin-left:10px;"></a>';






<!--此处为两侧广告代码-->
function opentel(){
		window.open("http://tel.kuaishang.cn/call.php?sid=97&did=92&fromurl=http://xadsyy.com/","_blank");
}
function openqq(){
		window.open("tencent://message/?uin=800001223&amp;Site=都市在线咨询&amp;Menu=yes","_blank");
}
function openswt(){
		window.open( "http://kft.zoosnet.net/LR/Chatpre.aspx?id=KFT30088892&p=http%3A//www.xadsyy.com/&r=http%3A//" + window.location.toString().replace("http://",'') ,"_blank");
}
function openwin(u){
		window.open(u,"_blank");
}
window.onload = initpanel;
function initpanel() { 

var tmpele99 = document.createElement("div");
	tmpele99.setAttribute('id','jzright');
	tmpele99.setAttribute('class','clearfix');
	tmpele99.style.position = 'absolute';
	tmpele99.style.top = '135px';
	tmpele99.style.right = '10px';
	tmpele99.style.width = '119px';
	tmpele99.style.height = '425px';
	tmpele99.style.width = '146px';
	tmpele99.style.zIndex = '999';
	tmpele99.style.background = 'url(http://www.xadsyy.com/images/sonline2011.gif) no-repeat 0 0';
	tmpele99.innerHTML = "<a href=\"javascript:;\" onclick=\"javascript:this.parentNode.style.display = \'none\';\" style=\"display:block;height:30px;overflow:hidden\"></a><a href=\"#\" onclick=\"javascript:openswt();\" style=\"display:block;margin:230px 0 0 0;height:30px;width:100px;overflow:hidden\"></a><a href=\"#\" onclick=\"javascript:opentel();\" style=\"display:block;margin:5px 0 0 0;height:30px;width:100px;overflow:hidden\"></a>";
	
	document.body.appendChild(tmpele99);

}



window.onscroll=adfollow;
window.onresize=adfollow;
function adfollow(){ if( document.getElementById('jzright') ) document.getElementById('jzright').style.top = document.documentElement.scrollTop + 50 +'px';}



/*底部漂浮广告代码*/
document.write('<link rel="stylesheet" href="http://www.xadsyy.com/images/201106/bottom.css" type="text/css" />'); 
document.write('<div class="As_cqsz_bottom_bg"><div class="As_cqsz_bottom_bg2"><div class="As_cqsz_bottom_div1"></div><div class="As_cqsz_bottom_div2"><a href="http://kft.zoosnet.net/LR/Chatpre.aspx?id=KFT30088892" target="_blank";>目前已有<span id="swtcount"></span>位患者正在与医生沟通</a></div><div class="As_cqsz_bottom_div3"><a href="http://wpa.qq.com/msgrd?v=3&uin=800001223&site=qq&menu=yes" target="_blank";> </a></div></div></div>'); 
function getOnlineNum()
{
var tmph = (new Date()).getHours(); 
var tmpnum = 0; 
	if(tmph >= 8 && tmph<10)
	{
	tmpnum = Math.floor(Math.random() * 5) + 15; 
	}
	else if(tmph >= 10 && tmph < 12)
	{ 
	tmpnum = Math.floor(Math.random() * 5) + 23;
	}
	else if(tmph >= 12 && tmph < 15)
	{ 
	tmpnum = Math.floor(Math.random() * 5) + 29;
	}
	else if(tmph >= 15 && tmph < 24)
	{ 
	tmpnum = Math.floor(Math.random() * 5) + 35; 
	}
	else
	{
	tmpnum = Math.floor(Math.random() * 3); 
	}
	return tmpnum;
}
function swtnum(){document.getElementById('swtcount').innerHTML = getOnlineNum();}
setInterval("swtnum()",5000);

/*document.writeln("<style>");
document.writeln("#fdc{z-index:100;background:#fff;width:980px;background-image: url(http://www.xadsyy.com/images/201106/pfnav_bg.gif);background-repeat:repeat-x;margin:0 auto;text-align:center;position:fixed;height:60px;left:0;bottom:0;border-top:0px solid #ececec;}");
document.writeln("#fdc .fdcnr {background:url(http://www.xadsyy.com/images/pfnav.gif) no-repeat;margin:0 auto;width:980px;height:60px;position:relative;overflow:hidden;text-indent:-99999em;}");
document.writeln("#fdc .fdcnr dt a {display:block;width:600px;height:50px;float:left;margin-top:5px;}");
document.writeln("#fdc .fdcnr dd a {display:block;width:280px;height:50px;float:right;margin-right:10px;margin-top:5px;}");
document.writeln("img{border:0;}");
document.writeln("<\/style>");
document.writeln("<!--[if lte IE 6]>");
document.writeln("<script type=\"text\/javascript\">");
document.writeln("if(typeof document.compatMode!=\'undefined\'&&document.compatMode!=\'BackCompat\'){");
document.writeln("    cot_t1_DOCtp=\"_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}\";");
document.writeln("}else{");
document.writeln("    cot_t1_DOCtp=\"_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}\";");
document.writeln("}");
document.writeln("var fdc_bodyCSS=\'* html {background:url(\/images\/common\/blank.gif) fixed;}\';");
document.writeln("var fdcCSS=\'#fdc {position:fixed;\';");
document.writeln("var fdcCSS=fdcCSS+\'_position:absolute;\';");
document.writeln("var fdcCSS=fdcCSS+\'width:100%;\';");
document.writeln("var fdcCSS=fdcCSS+\'bottom:0px;\';");
document.writeln("var fdcCSS=fdcCSS+\'right:0px;\';");
document.writeln("var fdcCSS=fdcCSS+\'clip:rect(0 100% 100% 0);\';");
document.writeln("var fdcCSS=fdcCSS+cot_t1_DOCtp;");
document.writeln("document.write(\'<style type=\"text\/css\">\'+fdc_bodyCSS+fdcCSS+\'<\/style>\');");
document.writeln("<\/script>");
document.writeln("<![endif]-->");

document.writeln("<!--[if lte IE 7]>");
document.writeln("<script type=\"text\/javascript\">");
document.writeln("if(typeof document.compatMode!=\'undefined\'&&document.compatMode!=\'BackCompat\'){");
document.writeln("    cot_t1_DOCtp=\"_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}\";");
document.writeln("}else{");
document.writeln("    cot_t1_DOCtp=\"_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}\";");
document.writeln("}");
document.writeln("var fdc_bodyCSS=\'* html {background:url(\/images\/common\/blank.gif) fixed;}\';");
document.writeln("var fdcCSS=\'#fdc {position:fixed;\';");
document.writeln("var fdcCSS=fdcCSS+\'_position:absolute;\';");
document.writeln("var fdcCSS=fdcCSS+\'width:100%;\';");
document.writeln("var fdcCSS=fdcCSS+\'bottom:0px;\';");
document.writeln("var fdcCSS=fdcCSS+\'right:0px;\';");
document.writeln("var fdcCSS=fdcCSS+\'clip:rect(0 100% 100% 0);\';");
document.writeln("var fdcCSS=fdcCSS+cot_t1_DOCtp;");
document.writeln("document.write(\'<style type=\"text\/css\">\'+fdc_bodyCSS+fdcCSS+\'<\/style>\');");
document.writeln("<\/script>");
document.writeln("<![endif]-->");

document.writeln("<!--[if lte IE 8]>");
document.writeln("<script type=\"text\/javascript\">");
document.writeln("if(typeof document.compatMode!=\'undefined\'&&document.compatMode!=\'BackCompat\'){");
document.writeln("    cot_t1_DOCtp=\"_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}\";");
document.writeln("}else{");
document.writeln("    cot_t1_DOCtp=\"_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}\";");
document.writeln("}");
document.writeln("var fdc_bodyCSS=\'* html {background:url(\/images\/common\/blank.gif) fixed;}\';");
document.writeln("var fdcCSS=\'#fdc {position:fixed;\';");
document.writeln("var fdcCSS=fdcCSS+\'_position:absolute;\';");
document.writeln("var fdcCSS=fdcCSS+\'width:100%;\';");
document.writeln("var fdcCSS=fdcCSS+\'bottom:0px;\';");
document.writeln("var fdcCSS=fdcCSS+\'right:0px;\';");
document.writeln("var fdcCSS=fdcCSS+\'clip:rect(0 100% 100% 0);\';");
document.writeln("var fdcCSS=fdcCSS+cot_t1_DOCtp;");
document.writeln("document.write(\'<style type=\"text\/css\">\'+fdc_bodyCSS+fdcCSS+\'<\/style>\');");
document.writeln("<\/script>");
document.writeln("<![endif]-->");

document.writeln("<div id=\"fdc\">");
document.writeln(" <dl class=\"fdcnr\">");
document.writeln("  <dt><a href=\"http:\/\/kft.zoosnet.net\/LR\/Chatpre.aspx?id=KFT30088892\" target=\"_blank\"><\/a><dt><dd><a href=\"http:\/\/wpa.qq.com\/msgrd?v=3&uin=800001223&site=qq&menu=yes\" target=\"_blank\"><\/a><\/dd>");

document.writeln(" <\/dl>");
document.writeln("<\/div>");*/





<!--这里是为了 底部浮动广告-->
/*var isie6 = window.XMLHttpRequest?false:true;
window.onload = function(){
    var a = document.getElementById('qhpa');
    var d = document.getElementById('qhpd');
   if(isie6){
         a.style.position = 'absolute';
         
         window.onscroll = function(){
              d.innerHTML = '';
          }
   }else{
      a.style.position = 'fixed';
   }
      a.style.left = '0';
      a.style.bottom = '0';
}

function aaa()
{
   document.getElementById("d").style.display = NONE;
}
tttt=setTimeout('aaa()',5000);//此得是1秒后关闭,你可以自己改时间的

clearTimeout(tttt);

<div><EMBED style="LEFT: 0px; WIDTH: 140px; POSITION: absolute; TOP: 440px; HEIGHT: 300px" align=right src="C:/Documents and Settings/Administrator/桌面/都市医院6.27/leftqq.swf"  type=application/octet-stream wmode="transparent" quality="high"></EMBED></div>
*/


/*document.writeln("<div><EMBED style=\"LEFT: 0px; WIDTH: 140px; POSITION: absolute; TOP: 440px; HEIGHT: 300px\" align=right src=\"C:\/Documents and Settings\/Administrator\/桌面\/都市医院6.27\/leftqq.swf\"  type=application\/octet-stream wmode=\"transparent\" quality=\"high\"><\/EMBED><\/div>")*/


/*左侧企鹅调用代码*/
var leftqq = document.createElement("div");
	leftqq.setAttribute('id','leftqq');
	leftqq.style.position = 'fixed';
	leftqq.style.bottom = '35px';
	leftqq.style.left = '0px';
	leftqq.style.width = '145px';
	leftqq.style.height = '210px';
	leftqq.style.overflow = 'hidden';
	leftqq.style.zIndex = '9999';
	leftqq.innerHTML = '<object data="http://www.xadsyy.com/images/201106/leftqq.swf" type="application/x-shockwave-flash" width="145" height="210"><param name="movie" value="http://www.xadsyy.com/images/201106/leftqq.swf" /><param name="wmode" value="transparent" /></object>';	
	document.body.appendChild(leftqq);document.body.appendChild( document.createElement("div") );
	
		if( navigator.userAgent.indexOf("MSIE 6") != -1 ){
		if( document.getElementById('bar') ) document.getElementById('bar').style.position  = 'absolute';
		if( document.getElementById('leftbar') ) document.getElementById('leftbar').style.position  = 'absolute';
		if( document.getElementById('leftqq') ) document.getElementById('leftqq').style.position  = 'absolute';
		if( document.getElementById('leftpanel') ) document.getElementById('leftpanel').style.position  = 'absolute';
		addEvent('scroll',afollow);
		addEvent('resize',afollow);
	}

// 浮动跟随
function afollow(){	if( document.getElementById('bar') ) {document.getElementById('bar').style.top = document.documentElement.scrollTop + document.documentElement.clientHeight - 32 + 'px';	} if( document.getElementById('leftbar') ) {document.getElementById('leftbar').style.top = document.documentElement.scrollTop + 135 +'px';	} if( document.getElementById('leftqq') ) {document.getElementById('leftqq').style.top = document.documentElement.scrollTop + document.documentElement.clientHeight - (35 + 210) + 'px';	} if( document.getElementById('leftpanel') ) {document.getElementById('leftpanel').style.top = document.documentElement.scrollTop + document.documentElement.clientHeight - (35 + 210 + 260) + 'px';	}}









