var temp_str ="";
var linkurl ="newfocus";
//导航处计时器
function initArrayx(){this.length=initArrayx.arguments.length;for(var I=0;I<this.length;I++){this[I+1]=initArrayx.arguments[I]}}
function AddTimex(){today=new Date();
var dx=new initArrayx("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
var tmpYearx = today.getFullYear().toString();
var tmpminx=today.getMinutes();
var tmpx="";

if(tmpminx<10){tmpx="0"+tmpminx;}else{tmpx=tmpminx;}
tmpx+=":";
tmpminx=today.getSeconds();
if(tmpminx<10){tmpx+="0"+tmpminx;}else{tmpx+=tmpminx;}
document.getElementById("Clocks").innerHTML=tmpYearx.substring(0,tmpYearx.length)+" / "+(today.getMonth()+1)+" / "+today.getDate()+"　 "+dx[today.getDay()+1]+"　 "+(today.getHours().toString())+":"+(tmpx);
setTimeout("AddTimex()",1000);}
var AddTime=AddTimex;






//导航显示隐藏
function navs(num){for(var i=1;i<6;i++){if(num!=i){document.getElementById("mbd"+i).style.display='none';}else{document.getElementById("mbd"+i).style.display='';}}}
function navnone(){for(var i=1;i<6;i++){document.getElementById("mbd"+i).style.display='none';}}
//处理老期刊数据下拉菜单
function timego(str,str1)
{  temp_str =str1;
	if(str1=='sumissue'){
			document.write("<select onchange=document.location.href='/newcn/ele/index'+this.value+'.shtml' class='inp_1'><option>按年选择</option>");
	for(var i=0;i<str.length;i++){document.write("<option value='"+str[i]+"'>"+str[i]+"年</option>");}document.write("</select>");

		}else {if(str1=='magazine'){
	document.write("<select onchange=document.location.href='/newcn/home/investor/' class='inp_1'><option>按年选择</option>");
	//for(var i=0;i<str.length;i++){document.write("<option value='"+str[i]+"'>"+str[i]+"年</option>");}document.write("</select>");
	document.write("<option value=''>2007年</option></select>");
		}else{
			if(str1=='seeing'){
								document.write("<select onchange=document.location.href='/newcn/seeing/index'+this.value+'.shtml' class='inp_1'><option>按年选择</option>");
//	for(var i=0;i<str.length;i++){document.write("<option value='"+str[i]+"'>"+str[i]+"年</option>");}document.write("</select>");

				}else{
				document.write("<select onchange=document.location.href='/newcn/newfocus/index'+this.value+'.shtml' class='inp_1'><option>按年选择</option>");
	//for(var i=0;i<str.length;i++){document.write("<option value='"+str[i]+"'>"+str[i]+"年</option>");}document.write("</select>");

			}}
		}
}

function datago(str)
{
	var temp=temp_str;

	if(temp=='sumissue'){
		linkurl = "ele";
			document.write("<select onchange=document.location.href='/newcn/'+linkurl+'/'+this.value+'.shtml' class='inp_1'><option>按期选择</option>");
	for(var i=0;i<str.length;i++){document.write("<option value='"+str[i]+"'>第"+str[i]+"期</option>");}document.write("</select>");

		}
		if(temp=='magazine'){
		linkurl = "investor";
			document.write("<select onchange=document.location.href='/newcn/'+linkurl+'/index_'+this.value+'.shtml' class='inp_1'><option>按期选择</option>");
	for(var i=0;i<str.length;i++){document.write("<option value='"+str[i]+"'>第"+str[i]+"期</option>");}document.write("</select>");

		}
	if(temp=='seeing'){
		linkurl = "seeing";
			document.write("<select onchange=document.location.href='/newcn/'+linkurl+'/index_'+this.value+'.shtml' class='inp_1'><option>按期选择</option>");
	for(var i=0;i<str.length;i++){document.write("<option value='"+str[i]+"'>第"+str[i]+"期</option>");}document.write("</select>");

		}


}
//处理层切换
function tshow(i){document.getElementById("hottop1").style.display='none';document.getElementById("hottop2").style.display='none';
document.getElementById("hottop3").style.display='none';document.getElementById("hottop"+i).style.display='';}