/*var imgheight;
var imgleft;
var pageYOffset;
var isNS = (document.layers) ? true : false;
window.screen.width > 800 ? imgheight=100 : imgheight=100;
window.screen.width > 800 ? imgleft=15 : imgleft=120;

 //左上漂浮位置
 /*
function myLeftload()
{
	if(isNS) {
		document.getElementById("myleft").pageY = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myleft").pageX = imgleft;
		leftmove();
	}
	else {  IE6
		document.getElementById("myleft").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight - 150;
		document.getElementById("myleft").style.left=imgleft;
		leftmove();
	}
}
function leftmove()
{
	if(isNS) {
		document.getElementById("myleft").top = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myleft").left = imgleft;
		setTimeout("leftmove();", 80);
	}
	else {  IE6
		document.getElementById("myleft").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight - 150;
		document.getElementById("myleft").style.left = imgleft;
		setTimeout("leftmove();", 80);
	}
}

if(isNS) {
	document.write("<layer id='myleft' top='300' width='80' height='80'>");
	document.write("<a href='http:hi.www.net.cn/hi/csdn/csdn_floating_index.htm'><img src='http://www.csdn.net/adv/homepage/80-80.gif' border='0' /></a>");
	document.write("</layer>");
	myLeftload();
}
else {
	document.write("<div id='myleft' style='position: absolute; width: 80px; top: 300px; left: 5px; visibility: visible; z-index: 1;'>");
	document.write("<a href='http:hi.www.net.cn/hi/csdn/csdn_floating_index.htm'><img src='http://www.csdn.net/adv/homepage/80-80.gif' border='0' /></a>");
	document.write("</div>");
	myLeftload();
}*/
//-------------------------------------------------------------------------
// 左下漂浮位置
/*function myLeftload2()
{
	if(isNS) {
		document.getElementById("myleft2").pageY = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myleft2").pageX = imgleft;
		leftmove2();
	}
	else {
		document.getElementById("myleft2").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight;
		document.getElementById("myleft2").style.left = imgleft;
		leftmove2();
	}
}
function leftmove2()
{
	if(isNS) {
		document.getElementById("myleft2").top = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myleft2").left = imgleft;
		setTimeout("leftmove2();", 80);
	}
	else {
		document.getElementById("myleft2").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight; 
		document.getElementById("myleft2").style.left = imgleft;
		document.getElementById("myleft3").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight - 90; 
		document.getElementById("myleft3").style.left = imgleft;
		setTimeout("leftmove2();", 80);
	}
}

if(isNS) {
//左边第二个浮标
	document.write("<layer id='myleft2' top='100' width='80' height='80'>");
	document.write("<a href='http://www.365heart.com/news/2931.html' target='_blank'><img src='http://www.365heart.com/windowad/zhaopin.jpg' alt='' border='0' /></a>");
	document.write("</layer>");
//左边第一个浮标
	document.write("<layer id='myleft3' style='position: absolute; width: 80px; top: 300px; left: 5px; visibility: visible; z-index: 1;'>");
	document.write("急性冠脉综合征的介入治疗暨急性心肌梗死治疗进展学习班正在报名");
	document.write("</layer>");
	myLeftload2();
}
else {
//左边第二个浮标
	document.write("<div id='myleft2' style='position: absolute; width: 80px; top: 300px; left: 5px; visibility: visible; z-index: 1;'>");
	document.write("<a href='http://www.365heart.com/news/2931.html' target='_blank'><img src='http://www.365heart.com/windowad/zhaopin.jpg' alt='' border='0' /></a>");
	document.write("</div>");
//左边第一个浮标
    document.write("<div id='myleft3' style='position: absolute; width: 80px; top: 300px; left: 20px; visibility: visible; z-index: 1;border=#990000 1px solid;'>");
	document.write("<a href='http://www.365heart.com/tabloid/2005/11/temp_10480.html' target='_blank'>急性冠脉综合征的介入治疗暨急性心肌梗死治疗进展学习班正在报名</a>");
	document.write("</div>");
	myLeftload2();
}
*/
//----------------------------------------------------------------------------
var imgheight;
var imgright;
document.ns = navigator.appName == "Netscape";
window.screen.width > 800 ? imgheight=300 : imgheight=300;//调节imgheight来控制与下边的高度
window.screen.width > 800 ? imgright=window.screen.width-5-120 : imgright=window.screen.width-120-120;
//                                                    调节这个数字，来控制与左侧距离

 //右上漂浮位置
 /*
function myRightload()
{
	if(navigator.appName == "Netscape") {
		document.getElementById("myright").pageY = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myright").pageX = imgright;
		rightmove();
	}
	else {
		document.getElementById("myright").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight - 150;
		document.getElementById("myright").style.left = imgright;
		rightmove();
	}
}
function rightmove()
{
	if(document.ns) {
		document.getElementById("myright").top = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myright").left = imgright;
		setTimeout("rightmove();", 80);
	}
	else {
		document.getElementById("myright").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight - 150;
		document.getElementById("myright").style.left = imgright;
		setTimeout("rightmove();", 80);
	}
}

if(navigator.appName == "Netscape") {
	document.write("<layer id='myright' style='position: absolute; width: 80px; top: 300px; left:5px; visibility: visible; z-index: 1;'>");
	document.write("<a href='http://www.csdn.net/job/ufsoft/yanfa.htm' target='_blank'><img src='http://www.csdn.net/adv/homepage/ufsoft.GIF' alt='' border='0' /></a>");
	document.write("</layer>");
	myRightload();
}
else {
	document.write("<div id='myright' style='position: absolute; width: 80px; top: 300px; left:5px; visibility: visible; z-index: 1;'>");
	document.write("<a href='http://www.csdn.net/job/ufsoft/yanfa.htm' target='_blank'><img src='http://www.csdn.net/adv/homepage/ufsoft.GIF' alt='' border='0' /></a>");
	document.write("</div>");
	myRightload();
}*/

 //右下漂浮位置
 
 
function myRightload2()
{
	if(navigator.appName == "Netscape") {
		document.getElementById("myright2").pageY = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myright2").pageX = imgright;
		rightmove2();
	}
	else {
		document.getElementById("myright2").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight;
		document.getElementById("myright2").style.left = imgright;
		rightmove2();
	}
}
function rightmove2()
{
	if(document.ns) {
		document.getElementById("myright2").top = pageYOffset + window.innerHeight - imgheight;
		document.getElementById("myright2").left = imgright;
		setTimeout("rightmove2();", 80);
	}
	else {
		document.getElementById("myright2").style.top = document.documentElement.scrollTop + document.documentElement.offsetHeight - imgheight - 90;
		document.getElementById("myright2").style.left = imgright;
		setTimeout("rightmove2();", 80);
	}
}

if(navigator.appName == "Netscape") {
    document.write("<layer id='myright2' top='100' width='80' height='80'>");
	document.write("<a href='http://www.365heart.com/shownews.asp?id=10178' target='_blank'><img src='http://www.365heart.com/windowad/xxb_action.gif' alt='第二届先心病医学沙龙' border='0' /></a>");
	document.write("</layer>");
	myRightload2();
}
else {
	document.write("<div id='myright2' style='position: absolute; width: 100px; top: 100px; left: 5px; visibility: visible; z-index: 1;'>");
	document.write("<font color='#ff0000'>");
	document.write("<strong>通告</strong>:本站于11月17日发现IP地址为202.112.176.58以及用户名为fengli_1至fengli_14的用户非法参加有奖问答恶意换取积分,本站已锁定相关用户,请广大用户遵守本站规则,配合网站的工作,有什么疑问请致电本站客服010-51955830-1005 ");
	document.write("</font>");
	document.write("</div>");
	
	//document.write("<div id='myright2' style='position: absolute; width: 80px; top: 300px; left: 5px; visibility: visible; z-index: 1;'>");
	//document.write("<a href='http://www.365heart.com/zt/xxb_salon/index.shtml' target='_blank'><img src='http://www.365heart.com/windowad/xxb_action.gif' alt='第二届先心病医学沙龙' border='0' /></a>");
	//document.write("</div>");
	myRightload2();
}
