// JavaScript Document
//
function set(name,cursel,n){
	  for(i=1;i<=n;i++){
	  var menu=document.getElementById(name+i);
	  var con=document.getElementById(name+"_"+i);
	  menu.className=i==cursel?"hover":"";
	  con.style.display=i==cursel?"block":"none";
	} 
  }
	function setab(name,cursel,n,link){
	  for(i=1;i<=n;i++){
	  var menu=document.getElementById(name+i);
	  var con=document.getElementById(name+"_"+i);
	  menu.className=i==cursel?"hover":"";
	  con.style.display=i==cursel?"block":"none";
	}
		if(link!=null && link!="")document.getElementById("TabLink"+name).href=link;
  }
  //显示与隐藏列表 显示更多
function showList(id,num){
	if(num == 1){
		document.getElementById(id).style.display = "block";
	}
	else{
		document.getElementById(id).style.display = "none";
	}
}

//禁止copy
window.onload=function(){

 var bodys=document.getElementsByTagName("body");

for(var i=0;i<bodys.length;i++){

bodys[i].setAttribute("oncontextmenu","return false");

 bodys[i].setAttribute("oncopy","return false");

}
  
}


//document.writeln("<script type=\"text\/javascript\">");
//document.writeln("var LiveAutoInvite0='您好，来自%IP%的朋友';");
//document.writeln("var LiveAutoInvite1='来自首页的对话';");
//document.writeln("var LiveAutoInvite2='<P><B>这里是上海江城男子医院专家咨询中心，请点击咨询！</B></P>';");
//document.writeln("<\/script>");
//document.writeln("<script language=\"javascript\" src=\"http://kht.zoosnet.net\/JS\/LsJS.aspx?siteid=KHT68764653&float=1\"><\/script>");



Date.prototype.format = function(format){
    var o = {
         "M+" : this.getMonth()+1, //month
         "d+" : this.getDate(),    //day
         "H+" : this.getHours(),   //hour
         "m+" : this.getMinutes(), //minute
         "s+" : this.getSeconds(), //second
         "q+" : Math.floor((this.getMonth()+3)/3), //quarter
         "S" : this.getMilliseconds() //millisecond
      }
      if(/(y+)/.test(format))
        format=format.replace(RegExp.$1,(this.getFullYear()+"").substr(4 - RegExp.$1.length));
      for(var k in o)
        if(new RegExp("("+ k +")").test(format))
        format = format.replace(RegExp.$1, RegExp.$1.length==1 ? o[k] : ("00"+ o[k]).substr((""+ o[k]).length));
      return format;
   }
stime = new Date().format("HH");
ftime = new Date().format("mm");
ftime = ftime.substr(0, 1);
n_z = 12;
if(stime>7){ n_z = 16; }
if(stime>9){ n_z = 32; }
if(stime>11){ n_z = 44; }
if(stime>13){ n_z = 52; }
if(stime>20){ n_z = 48; }
n_r = stime*n_z+ftime*1;


//var LiveAutoInvite0='<font color=\"#666666\">您好，今日已有 <font color=\"#FF0000\">'+n_r+'</font> 人与在线坐诊专家进行了交流</font>';
//var LiveAutoInvite0='上海市男科疾病指定专业咨询平台';
//var LiveAutoInvite1='来自首页的对话';
//var LiveAutoInvite2='<P><B>这里是上海江城男子医院专家咨询中心，请点击咨询！</B></P>';
//var LrinviteTimeout=6;
//var LR_next_invite_seconds =30;
//document.write('<script language="javascript" src="http://kht.zoosnet.net/JS/LsJS.aspx?siteid=KHT68764653&float=1"></script>');

//kf_link = "http://kht.zoosnet.net/LR/Chatpre.aspx?id=KHT68764653";
//kf_title = "上海江城男子医院";
//kf_center_bg = "/online/dialog_bg.jpg";
//right_img = "/online/right.jpg";

//first_invote_time = 2;
//next_invote_time = 3;

//document.write('<script src="/online/talk.js"></script>');


function clickkf(){
	var dom = document.createElement('a');
	dom.setAttribute('href','http://kht.zoosnet.net/LR/Chatpre.aspx?id=KHT68764653&float=1');
	dom.setAttribute('target','_blank');
	document.body.appendChild(dom);
	dom.click();
	document.body.removeChild(dom);
}


