//about win
function popwin(hURL) {
window.open (hURL, "pop1", "height=460, width=620, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no") 
}

//document.writeln("<script language=\'JavaScript\' src=\'http:\/\/www.haili.net\/ad\/cccs-bd-com.js\'><\/script>");
document.writeln("<meta http-equiv=\"refresh\" content=\"350\"> ");
//about move
var version = "other"
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

if (browserName == "Netscape" && browserVer >= 3) version = "n3";
else if (browserName == "Netscape" && browserVer < 3) version = "n2";
else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "e4";
else if (browserName == "Microsoft Internet Explorer" && browserVer < 4) version = "e3";


function marquee1(scrollDelay,direction,width,height)
{
	if (version == "e4")
	{
		document.write("<marquee scrollamount=1 scrollDelay="+scrollDelay+" direction="+direction+" width="+width+" height="+height+" behavior=scroll scrollamount=6 onmouseover='this.stop()' onmouseout='this.start()'>")
	}
}

function marquee2()
{
	if (version == "e4")
	{
		document.write("</marquee>")
	}
}

// 最新公告信息
function shownews()
{
	//document.write("<span class='style11'>决心恒心<br>&nbsp;&nbsp;&nbsp; 同心协力！<br>诚意诚信<br>&nbsp;&nbsp;&nbsp; 众志成城！<br></span></p>");
	//document.write("<p align='center' class='style7'> 企业联盟招募计划<br>热烈进行中！<br>欢迎有志之士<br>积极参与！<br>共建辉煌！</p>");
	document.write("<p align='center' class='style7'> 企业黄页，推荐企业，推荐产品、成功案例及网上展厅栏目开始征求信息！<br>有意者请来电<br>(010)87581463-606<br>或邮件<a href='mailto:87581446@163.com'>87581446@163.com</a></p>");
	
}

//推荐企业
function comshow()
{
	var strArray=new Array();
	strArray[0]='欢迎光临中国电子学会洁净技术分会电子商务网站'
	strArray[1]='<a href="http://www.bidu-clean.cn/" target="_blank" >北京碧都净化设备有限公司</a>'
	strArray[2]='<a href="http://www.cengliuchuang.net/" target="_blank" >层流床生产企业</a>'	
	strArray[3]='<FONT color="#FF0000">推荐浏览企业网站　展示风采　证明实力</FONT>'
	showId=Math.floor(Math.random()*3);
	tempStr=strArray[showId];
	strArray[showId]=strArray[0];
	strArray[0]=tempStr;
	//document.write("test");
	//document.write("<table width='406' border='0' cellspacing='0' cellpadding='0'>"+"<tr><td width='406'>"+"<div id=icefable1 style=width:406;>"+"<table width='406' border='0' cellspacing='0' cellpadding='0'>"+"<tr><td width='406' height='15' class='n02'>"+strArray[0]+"</td></tr>"+"<tr><td height='15' class='n02'>"+strArray[1]+"</td></tr>"+"<tr><td height='15' class='n02'>"+strArray[2]+"</td></tr>"+"<tr><td height='15' class='n02'>"+strArray[3]+"</td></tr>"+"</td></tr>"+"</table>"+"</div>"+"<div id=icefable2 style='position:absolute;z-index:1;visibility:hidden'></div>"+"</td></tr>"+"</table>");
document.writeln("<table width=\'406\' border=\'0\' cellspacing=\'0\' cellpadding=\'0\'>");
document.writeln("	<tr>");
document.writeln("	 <td width=\'406\'>");
document.writeln("	  <div id=icefable1 style=width:406;>	");
document.writeln("	    <table width=\'406\' border=\'0\' cellspacing=\'0\' cellpadding=\'0\'>");
document.writeln("		 <tr><td height=\'15\' class=\'n02\'>"+strArray[0]+"<\/td><\/tr>");
document.writeln("		 <tr><td height=\'15\' class=\'n02\'>"+strArray[1]+"<\/td><\/tr>");
document.writeln("		 <tr><td height=\'15\' class=\'n02\'>"+strArray[2]+"<\/td><\/tr>");
document.writeln("		 <tr><td height=\'15\' class=\'n02\'>"+strArray[3]+"<\/td><\/tr>");
document.writeln("		<\/table>		");
document.writeln("	 <\/div>		");
document.writeln("		<div id=icefable2 style=\'position:absolute;z-index:1;visibility:hidden\'><\/div>");
document.writeln("    <\/td>");
document.writeln("  <\/tr>");
document.writeln("<\/table>");

var marqueesHeight=15;
var stopscroll=false;
document.all.icefable1.scrollTop=0;
with(document.all.icefable1){
  style.width=0;
  style.height=marqueesHeight;
  style.overflowX="visible";
  style.overflowY="hidden";
  noWrap=true;
  onmouseover=new Function("stopscroll=true");
  onmouseout=new Function("stopscroll=false");
}


function init_srolltext(){
  document.all.icefable2.innerHTML="";
  document.all.icefable2.innerHTML+=document.all.icefable1.innerHTML;    
  document.all.icefable1.innerHTML=document.all.icefable2.innerHTML+document.all.icefable2.innerHTML;
  window.setInterval(scrollUp,100);
}

var preTop=0;
var currentTop=0;
var stoptime=0;
function scrollUp()
{
  if(stopscroll==true) return;
  currentTop+=1;
  if(currentTop==16)
  {
  	stoptime+=1;
   	currentTop-=1;
    if(stoptime==50) 
   {
    currentTop=0;
    stoptime=0;
   }
  }
  else {  
   preTop=document.all.icefable1.scrollTop;
   document.all.icefable1.scrollTop+=1;
   if(preTop==document.all.icefable1.scrollTop)
   {
     document.all.icefable1.scrollTop=document.all.icefable2.offsetHeight-marqueesHeight;
     document.all.icefable1.scrollTop+=1;
   }
 }
}
init_srolltext();
}

function userlist(utype)
{
	document.write("<script src=jspdoc/userlist.jsp?type="+utype+"></script>");
	//alert(document.all.user1.tagName);
	setTimeout("checklist("+utype+")",1000);
}

function checklist(utype)
{
	var srcID=eval("document.all.user"+utype+".innerText");
	if(srcID=="")
    {
    	return;
    }
}

function checks(newID)
{
	document.write("<script src=../jspdoc/Click.jsp?NewsID="+newID+"></script>");
}