﻿window.onerror = function(){return true};
function ChangeCurSel(o,ib,link)
{
for(i=1;i<12;i++)
{
  oo=document.getElementById("KKS"+i);
  oo.className="KKD2";
}

if(o.id=="KKS1")
{
o.style.borderTop="";
o.style.ClientHeight="36px;";
o.className="KKD1";
}
else
o.className="KKD3";
document.getElementById("KKCon").scrollTop=(ib-1)*395;
document.getElementById("KKMORE").href='/center/'+link+'/CourseList.aspx';
}
function showDiv(obj,num,len)
{
         for(var id = 1;id<=len;id++)
         {
          var ss=obj+id;
          var snav =obj+"nav"+id;
          if(id==num){
	        try{document.getElementById(ss).style.display="block"}catch(e){};
	        try{document.getElementById(snav).className="active"}catch(e){};
          }else{
	        try{document.getElementById(ss).style.display="none"}catch(e){};
	        try{document.getElementById(snav).className=""}catch(e){};
          }
         }  
}

function ShowFlash(pic,link,txt,width,picheight,txtheight)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+width+'" height="'+(picheight+txtheight)+'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="flash/hot.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pic+'&links='+link+'&texts='+txt+'&borderwidth='+width+'&borderheight='+picheight+'&textheight='+txtheight+'">');
document.write('<embed src="flash/hot.swf" wmode="opaque" FlashVars="pics='+pic+'&links='+link+'&texts='+txt+'&borderwidth='+width+'&borderheight='+picheight+'&textheight='+txtheight+'" menu="false" bgcolor="#ffffff" quality="high" width="'+width+'" height="'+(picheight+txtheight)+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');
}

function ShowSearch()
{
   //站内搜索JS代码
    a=1;
if(document.getElementById("chk5").checked) a=2;
 if(document.getElementById("chk4").checked) a=1;
 if(document.getElementById("chk3").checked) a=5;
 if(document.getElementById("chk2").checked) a=4;
 if(document.getElementById("chk1").checked) a=3;
  window.open("Search/Search"+a+".aspx?key="+escape(document.getElementById("keyworD").value));
}

//   var openedzx=false;
//   function zixun()
//   {
//        document.getElementById("zmask").style.display=(openedzx?"none":"");
//        document.getElementById("zmask").style.width=document.body.clientWidth+"px";
//        document.getElementById("zmask").style.height=document.body.clientHeight+"px";        
//         document.getElementById("butimg").src=(openedzx?"images/zxs.gif":"images/close.gif");
//        if(document.getElementById("showzixun")==null)
//        {
//          document.getElementById("sonline").innerHTML='<div id="showzixun"><iframe id="zixunw" src="online.aspx?id=1" style="width:350px;height:383px;border:0px;background:#fff;" scrolling ="no" frameborder="no"></iframe></div>';
//        }        
//        document.getElementById("sonline").style.display=(openedzx?"none":"");
//       
//        if(openedzx)
//        {
//           
//        }
//        openedzx=!openedzx;
//        
//   }
//   
//   function movezx()
//   {
//   document.getElementById("sonline1").style.top=(document.documentElement.scrollTop)+"px";
//   }
//   function ShowOnLine()
//   {    
//     document.write('<div id="zmask" style="display:none;z-index:99;position:absolute;right:0px;top:0px;width:600px;height:500px;background:#000;filter:alpha(opacity=50);opacity:0.5;"></div><div id="sonline1" style="z-index:100;position:absolute;left:0;top:220;text-align:right;background:#336" onclick="zixun1();"><img id="butimg" src="images/zxs.gif" style="cursor:hand;background:url(images/close.gif);"/><div id="sonline"></div></div>');
//  
//     setInterval("movezx()",200);
//   }
//   ShowOnLine();

//   function zixun1()
//   {
//        window.open ('Online.htm', 'newwindow', 'height=440, width=350, top=100, left=300, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no') 
//   }

document.write('<script language="javascript" src="/zixunjs/ShowOnLine.js"></script>')