function ProcessSwitch(){}
ProcessSwitch.prototype.dock=puza;
ProcessSwitch.prototype.LOADING=puzb;
ProcessSwitch.prototype.complete=puzc;
ProcessSwitch.prototype.PlayInclick=puzd;
ProcessSwitch.prototype.complete2=puze;
ProcessSwitch.prototype.LoadNews=puzf;
window.MFC = new ProcessSwitch();
function puzf(CC){
  //给所有的对像赋值
  var one=$("one");
  var two=$("two");
  var three=$("three");
  var four=$("four");
  var five=$("five");
  var six=$("six");
  var seven = $("seven");
  var eight=$("eight");
  if(one) one.innerHTML = CC.one;
  if(two) two.innerHTML = CC.two;
  if(three) three.innerHTML = CC.three;
  if(four) four.innerHTML = CC.four;
  if(five) five.innerHTML = CC.five;
  if(six) six.innerHTML = CC.six;
  if(seven) seven.innerHTML = CC.seven;
  if(eight) eight.innerHTML = CC.eight;
}
function puze(html){
  if(MFC["meCurrent"]){
    MFC["meCurrent"].innerHTML =html;
  }
}
function puzd(){
  var tg = EV.getTarget();
   if(tg.className == "menu_2"){
     return;
   }
   if(!MFC["mesid"]){
    MFC["mesid"] = $("nwe_pro_bg");
  }
  var len = MFC["mesid"].childNodes;
  for(var i=0; i<len.length; i++){
    if(len[i].className == "menu_2"){
      len[i].className = "menu_3";
      //把当前的对像列表也一起隐藏起来
      var listid = len[i].firstChild.firstChild.firstChild.id+"_list";
      $(listid).style.display='none';
      break;
    }
  }
  tg.parentNode.parentNode.parentNode.className = "menu_2";
  tg.blur();
  var current = $(tg.id+"_list");
  MFC["meCurrent"] = current;
  if(current.innerHTML == ''){
    current.innerHTML = MFC.LOADING();
    //执行方法//接下来读取数据到客户端
    current.style.display='';
    MFC["iframe"].src="process/products.jsp?id="+tg.id;//读数据
  }else{
    current.style.display='';
  }
}
function puzc(html){
  if(MFC["currentId"]){
    MFC["currentId"].innerHTML =html;
  }else{
    $("sy_list").innerHTML = html;
  }
}
function puzb(){
  return '<table border="0" cellspacing="0" style="" cellpadding="0" width="100%" height="100%">'
        +'<tr><td align="center"><img src="pic/blue-loading.gif" /></td></tr>'
        +'</table>';
}
function puza(){
  //处理方法
   var tg = EV.getTarget();
   if(tg.className == "menu_4"){
     return;
   }
  if(!MFC["switchId"]){
    MFC["switchId"] = $("subsupply");
  }
  var len = MFC["switchId"].childNodes;
  for(var i=0; i<len.length; i++){
    if(len[i].className == "menu_4"){
      len[i].className = "menu_5";
      //把当前的对像列表也一起隐藏起来
      var listid = len[i].firstChild.firstChild.firstChild.id+"_list";
      $(listid).style.display='none';
      break;
    }
  }
 
  tg.parentNode.parentNode.parentNode.className = "menu_4";
  tg.blur();
  var current = $(tg.id+"_list");
  MFC["currentId"] = current;
  if(current.innerHTML == ''){
    current.innerHTML = MFC.LOADING();
    //执行方法//接下来读取数据到客户端
    current.style.display='';
    MFC["iframe"].src="process/process.jsp?id="+tg.id;//读数据
  }else{
    current.style.display='';
  }
}
TT.init();
window.onload=function(){
  MFC["iframe"] = $("readyFrame");
  MFC["iframe"].src="process/process_news.jsp";
  MFC["iframe2"] = $("miniFrame");
  MFC["iframe2"].src="process/process.jsp?id=sy";
  EV.observe($("sy"),"click",MFC.dock);
  //EV.observe($("ps"),"click",MFC.dock);
  // EV.observe($("ce"),"click",MFC.dock);
  EV.observe($("npt"),"click",MFC.PlayInclick);
  EV.observe($("fpt"),"click",MFC.PlayInclick);
  EV.observe($("mtl"),"click",MFC.PlayInclick);
  EV.observe($("acy"),"click",MFC.PlayInclick);
  if($("hate")){
    $("hate").src = "process/process_zhidao.jsp";
  }
};
function zhidaoProcess(html){
   if($("tpc2")){
     $("tpc2").innerHTML = html;
   }
}
function searchQuest(){
  var qu = $("ques").value;
  if(qu .length == 0){
    alert("请输入要查询的英文单词");
    return ;
  }
  document.form3.submit();
}