// JavaScript Document
function showTime()
{
    var now=new Date();
    var weekArray=new Array();    
	 weekArray[0] = "星期日";
    weekArray[1] = "星期一";
    weekArray[2] = "星期二";
    weekArray[3] = "星期三";
    weekArray[4] = "星期四";
   weekArray[5] = "星期五";
   weekArray[6] = "星期六";
    document.getElementById("localYear").innerText=now.getYear();
    document.getElementById("localMonth").innerText=now.getMonth()+1;
    document.getElementById("localDay").innerText=now.getDate();
    document.getElementById("localWeek").innerText=weekArray[now.getDay()];
    document.getElementById("localTime").innerText=now.getHours()+":"+now.getMinutes()+":"+now.getSeconds();
    
    if(now.getHours()+2 >= 23)
    {
        document.getElementById("localXiLi").innerText=(now.getMonth()+1)+"/"+(now.getDate()+1)+"  "+(now.getHours()+2-24)+":"+now.getMinutes()+":"+now.getSeconds();   
    }
    else
    {
        document.getElementById("localXiLi").innerText=(now.getMonth()+1)+"/"+now.getDate()+"  "+(now.getHours()+2)+":"+now.getMinutes()+":"+now.getSeconds();
    }
    
     if(now.getHours()+1 >= 23)
    {
        document.getElementById("localDongJin").innerText=(now.getMonth()+1)+"/"+(now.getDate()+1)+"  "+(now.getHours()+1-24)+":"+now.getMinutes()+":"+now.getSeconds();   
    }
    else
    {
        document.getElementById("localDongJin").innerText=(now.getMonth()+1)+"/"+now.getDate()+"  "+(now.getHours()+1)+":"+now.getMinutes()+":"+now.getSeconds();
    }
    
   
        document.getElementById("localXiangGang").innerText=(now.getMonth()+1)+"/"+now.getDate()+"  "+now.getHours()+":"+now.getMinutes()+":"+now.getSeconds();
   
    if(now.getHours()-7<=0)
    {
        document.getElementById("localFaLanKe").innerText=(now.getMonth()+1)+"/"+(now.getDate()-1)+"  "+(24-7-now.getHours())+":"+now.getMinutes()+":"+now.getSeconds();   
    }
    else
    {
        document.getElementById("localFaLanKe").innerText=(now.getMonth()+1)+"/"+now.getDate()+"  "+(now.getHours()-7)+":"+now.getMinutes()+":"+now.getSeconds();
    }
    
     if(now.getHours()-8<=0)
    {
        document.getElementById("localLunDun").innerText=(now.getMonth()+1)+"/"+(now.getDate()-1)+"  "+(24-8-now.getHours())+":"+now.getMinutes()+":"+now.getSeconds();   
    }
    else
    {
        document.getElementById("localLunDun").innerText=(now.getMonth()+1)+"/"+now.getDate()+"  "+(now.getHours()-8)+":"+now.getMinutes()+":"+now.getSeconds();
    }
    
      if(now.getHours()+11>=23)
    {
        document.getElementById("localLiuYou").innerText=(now.getMonth()+1)+"/"+(now.getDate()+1)+"  "+(now.getHours()+11-24)+":"+now.getMinutes()+":"+now.getSeconds();   
    }
    else
    {
        document.getElementById("localLiuYou").innerText=(now.getMonth()+1)+"/"+now.getDate()+"  "+(now.getHours()+11)+":"+now.getMinutes()+":"+now.getSeconds();
    }
    
      setTimeout("showTime()",1000);
   
}
