var QQ=new Array;
var Email=new Array;
var MSN=new Array;
var Tel=new Array;
var Tel1=new Array;
var i,n;
var Tel2=new Array;//值班电话
var Tel0="010-62976043";
var QQ0="78701063";

i=-1;


//林新法
i=i+1;
QQ[i]="78701063";
Tel[i]="010-82780054";
Tel1[i]="010-62985845";
MSN[i]="qz2000@qq.com";
Email[i]="qz2000@qq.com";
Tel2[i]="13810825343(售前)";

//智长海
i=i+1;
QQ[i]="294681390";
Tel[i]="010-62985845";
Tel1[i]="010-62976544";
MSN[i]="esweb@163.com";
Email[i]="esweb@163.com";
//Tel2[i]="010-62985845";
Tel2[i]="13581619812(售前)";

//刘颖峰
i=i+1;
QQ[i]="328293069";
Tel[i]="010-62976544";
Tel1[i]="010-62967041";
MSN[i]="es200@163.com";
Email[i]="es200@163.com";
//Tel2[i]="010-62976544";
Tel2[i]="13681029144(售前)";



//王永亮
i=i+1;
QQ[i]="285664880";
Tel[i]="010-62972943";
Tel1[i]="010-62979404";
MSN[i]="qz.wangyl@163.com";
Email[i]="qz.wangyl@163.com";
//Tel2[i]="010-62972943";
Tel2[i]="13164243783(售前)";





//崔民刚
i=i+1;
QQ[i]="729412241";
Tel[i]="010-62975410";
Tel1[i]="010-62975419";
MSN[i]="qz.cuimg@hotmail.com";
Email[i]="qz.cuimg@hotmail.com";
Tel2[i]="13701152642(售前)";


//guoxiaopeng

//i=i+1;
QQ[i]="1024279733";
Tel[i]="010-82773149";
Tel1[i]="010-62979519";
MSN[i]="qz.service4@163.com";
Email[i]="qz.service4@163.com";
Tel2[i]="15801228380(售前)";

//柴国飞

//i=i+1;
QQ[i]="358407519";
Tel[i]="010-82773281";
Tel1[i]="010-8278005";
MSN[i]="qinzhe_cgf@hotmail.com";
Email[i]="qinzhe_cgf@hotmail.com";
Tel2[i]="15801673349(售前)";

n=i;

var s;
var p,j;
p=2;

//确定要显示第几个(p>=0 p<=n)
var now=new Date();
p=now.getSeconds()%(n+1);
var mm=now.getMonth()+1;
var dd=now.getDate();
var ww=now.getDay();
var hh=now.getHours();
var mi=now.getMinutes();
//alert(mm);
//alert(dd);
var sQQ;
var sTel;
var isHoliday;
if (mm==12 && dd==29){
	isHoliday=0;
}
else if(mm==5 && (dd>=1 && dd<=3)){
	isHoliday=1;
}
else if(mm==1 && dd==1){
	isHoliday=1;
}
else if  ((ww==6 || ww==0 ) || ((mm==5||mm==10) && (dd>=1 && dd<=5))){
	isHoliday=0;
}
else if((hh<8 || hh==8 && mi<20) || (hh>17 || hh==17 && mi>50)){
	isHoliday=1;
}
else{
	isHoliday=0;
}
//isHoliday=0;
if (isHoliday==1){
	sTel=Tel2[p];
	sQQ=QQ[p];
}
else{
	sTel=Tel[p]+'&nbsp;&nbsp;&nbsp;&nbsp'+Tel1[p];
	sQQ=QQ[p];
}

function showTop(s){
	document.write('<table border="0" width="98%" cellspacing="0">');
	document.write('<tr><td height=3px>');
	document.write('</td></tr>');

	document.write('<tr><td valign="top" align="right" height="35">');
	document.write('<form name="langs" method=get>');
	document.write('<font color="#1A2C4A"><small>');
	/////////
	document.write('客服:&nbsp;<img border="0" src="/zh-cn/images/tel.gif" width="19" height="19">');
	document.write(sTel);
	//QQ
	document.write('&nbsp;&nbsp;');
	document.write('<b>QQ:&nbsp;</b><b>'+sQQ+'</b>&nbsp;&nbsp;');
	document.write('<a target=blank href=tencent://message/?uin='+sQQ+'&Site=www.qinzhe.com&Menu=yes>');
	document.write('<img border="0" SRC=http://wpa.qq.com/pa?p=1:'+sQQ+':10 alt="咨询">');
	document.write('</a>');

/*	document.write('<img border="0" src="/zh-cn/images/QQonline.jpg" width="25" height="25">');
	document.write('<a target=_blank href="http://wpa.qq.com/msgrd?V=1&Uin='+sQQ+'&Site=qinzhe.com&Menu=no" title="即时交谈">');
	document.write(sQQ+'</a>&nbsp;&nbsp;&nbsp;');
*/
	//////////
	document.write('|&nbsp;<a href="/chinese/index.asp">返回主页</a>&nbsp;');
	document.write('|&nbsp;<a href="http://www1.qinzhe.com/download/excelserver2008all.exe"><font color="red" bold=true>Excel服务器下载</font></a>&nbsp;');
	
	document.write('|&nbsp;<a href="http://www1.qinzhe.com">网通</a>&nbsp;');
	document.write('|&nbsp;<a href="http://www.qinzhe.com">电信</a>&nbsp;');
	document.write('|&nbsp;<a href="http://www2.qinzhe.com">电信</a>&nbsp;');
	document.write('|&nbsp;<a href="http://www.qinzhe.com/bbs/index.aspx"><font color="red" bold=true>论坛</font></a>&nbsp;');
	document.write('&nbsp;</small></font>');
	document.write('<select size=1 onchange="change(document.langs.lang)" name=lang>');
	document.write('<option value="/zh-cn/index.htm" selected>选择语言...</option>');
	document.write('<option value="/Tchinese/index.htm">繁体中文</option>');
	document.write('<option value="/english/index.htm">English</option>');
	document.write('</select>'); 	
	document.write('</form>');
	document.write('</td></tr>');

	document.write('<tr><td height="10"><hr size="1" color="#993300"></td></tr>');
	document.write('</table>');
	document.write('<table border="0" width="98%" cellspacing="0">');
	document.write('<tr valign="top"><td><small>');
	document.write('您的位置：'+s);
	document.write('</small></td>');
	document.write('<td><p align="right">');
	//document.write('<input type ="text" size="20">');
	//document.write('<input type="button" value="站内搜索">');
	document.write('</td></tr></table>');
}

function showFoot(){
	document.write('<DIV align="center">');
	document.write('<HR width="98%" color=#b0c4de SIZE=1>');
	//Tel
	document.write('<small>');
	document.write('<img border="0" src="/zh-cn/images/tel.gif" width="19" height="19">');
	document.write(sTel);
	//QQ
	document.write('&nbsp;&nbsp;');
	document.write('<b>QQ:</b><b>'+sQQ+'</b>&nbsp;&nbsp;');
	document.write('<a target=blank href=tencent://message/?uin='+sQQ+'&Site=www.qinzhe.com&Menu=yes>');
	document.write('<img border="0" SRC=http://wpa.qq.com/pa?p=1:'+sQQ+':10 alt="咨询请点此处">');
	document.write('</a>');
	//Email
	document.write('&nbsp;&nbsp;');
	document.write('&nbsp;&nbsp;<a href="http://www2.qinzhe.com/download/excelserver2008all.exe"><font color="red" bold=true>Excel服务器下载</font></a>&nbsp;&nbsp;');
	document.write('&nbsp;&nbsp;');
	document.write('&nbsp;&nbsp;<a href="http://www.qinzhe.com/bbs/index.aspx"><font color="red" bold=true>论坛</font></a>&nbsp;&nbsp;');
	document.write('<img border="0" src="/zh-cn/images/email.gif" width="16" height="12">');
	document.write('电子邮件:&nbsp;<a href="mailto:'+Email[p]+'">'+Email[p]+'</a>');
	//MSN
	document.write('&nbsp;&nbsp;&nbsp;&nbsp;');
	//document.write('<img border="0" src="/zh-cn/images/msn.jpg" width="25" height="25">');
	document.write('MSN交谈:&nbsp;<a href="msnim:chat?contact='+MSN[p]+'" target="_blank">'+MSN[p]+'</a>');
		document.write('</small>');
	document.write('<br>');
	document.write('<small>北京勤哲软件技术有限责任公司版权所有  北京海淀区上地嘉华大厦F座801室');
	document.write('<a target="_blank" href="http://www.miibeian.gov.cn">(京ICP备05005246号)</a>'); 
	document.write('</small></DIV>');
}
