var cur_index=1 //默认当前?
var num=4 //该值记录标签的个数

//由id取得html对象
function GetObj(objName){
if(document.getElementById){
  return eval('document.getElementById("' + objName + '")');
}else if(document.layers){
  return eval("document.layers['" + objName +"']");
}else{
  return eval('document.all.' + objName);
}
}
function change_Menu(index){
for(var i=1;i<=num;i++){/* 最多支?个标?*/
  if(GetObj("con"+i)&&GetObj("m"+i)){
   GetObj("con"+i).style.display = 'none';
   GetObj("m"+i).className = "banner2";
  }
}
if(GetObj("con"+index)&&GetObj("m"+index)){
  GetObj("con"+index).style.display = 'block';
  GetObj("m"+index).className = "banner1";
}

cur_index=index
if(cur_index<num){
    cur_index++
   }
else{
     cur_index=1
   }
//settime=setTimeout("change_Menu(cur_index)",2000)//设置延迟时间，目前不需?
  
}

function change_massage(mbig,msmall,index,s_length){
for(var i=0;i<s_length;i++){
  if(GetObj(mbig+i)&&GetObj(msmall+i)){
   GetObj(mbig+i).style.display = 'none';
   GetObj(msmall+i).style.display = '';
  }
}
//alert(mbig+ma_length);
if(GetObj(mbig+index)&&GetObj(msmall+index)){
  GetObj(mbig+index).style.display = '';
 GetObj(msmall+index).style.display = 'none';
}

  
}





function Menu(c_index){
 // clearTimeout(settime)
  change_Menu(c_index)
}  

change_Menu(1);
  