function checkpwse(){
if (fcse.word.value == "")	{alert("关键字不可为空");fcse.word.focus();return ;}

fcse.submit();
}

var mwidth=226;
var mheight=213;
var layeri=0;
var stopshow=0;
var timeout=0;
var myspeed=5000;	//每1秒换

var imgUrl=new Array(); 
var imgLink=new Array();
var imgtext=new Array();


function wrt(){
document.write('<div style="BORDER: #eeeeee 1px solid;width:1px;height:1px;"><div style="BORDER: #ffffff 4px solid;Z-INDEX: 777777;background-color:#efefef;MARGIN: 0px;left:0px; OVERFLOW: hidden; WIDTH: '+mwidth+'px; POSITION: relative; height:'+mheight+'px">');
document.write('<div id=lfloatbg style="left:0px;background:#000000;filter:alpha(opacity=49);-moz-opacity:0.49;opacity:0.49; WIDTH: '+mwidth+'px;height:55px;Z-INDEX: 888888;POSITION: absolute; TOP: ' + (mheight-50) +'px;"></div>');
document.write('<div id=lfloattxt class=imagesnewstxt style="left:0px;WIDTH: '+mwidth+'px;Z-INDEX: 888889;POSITION: absolute; TOP: ' + (mheight-50) +'px;"></div>');
for (i=1;i<imgUrl.length;i++) {
document.write('<div id=l'+i+'  style="LEFT: 0px; POSITION: absolute; TOP: 0px"><a href="'+imgLink[i]+'" target=_blank><img   height='+mheight+' src="'+imgUrl[i]+'" width='+mwidth+' border=0 /></a></div>');
}
document.write('<div id=lfloat style="Z-INDEX: 999999;left:5px; POSITION: absolute; TOP: ' + (mheight-30) +'px;">');
for (i=1;i<imgUrl.length;i++) {
document.write('<span  id=pnl'+i+' onmouseover=javascript:picsw("l'+i+'") onmouseout=javascript:startauto(); class=imagesnews>'+i+'</span><span style=width:1px></span>');
}
document.write('</div></div></div>');
}

function moveformat(id){
if(stopshow==0){
picswin(id);
var browser=navigator.appName;
if(browser!="Microsoft Internet Explorer"){
layeri++;
document.getElementById(id).style.zIndex = layeri;
document.getElementById(id).style.left=(0+"px");
var linkid="link"+id;
}
else{
document.getElementById(id).style.posLeft = mwidth;
layeri++;
document.getElementById(id).style.zIndex = layeri;
movestart(id);
}
}
}



function movestart(id){
if(document.getElementById(id).style.posLeft!=0){
var mnum=document.getElementById(id).style.posLeft*0.2;
var x=document.getElementById(id).style.posLeft-mnum;
document.getElementById(id).style.posLeft=x;
moveid=id;
setTimeout("movestart(moveid);",30);
}
else{
var linkid="link"+id;
}
}


var i=1;

function showindexad(){
if (i<imgUrl.length-1 && stopshow==0){
  i++;
  var picid="l";
  picid=picid+i;
  setTimeout("moveformat('"+picid+"');showindexad();",myspeed);
  }
else if(stopshow==0){
  i=1;
  var picid="l";
  picid=picid+i;
  setTimeout("moveformat('"+picid+"');showindexad();",myspeed);
  }
else{
timeout=1;
}
}


showindexad();
function picsw(id) {
if(document.getElementById("pn"+id+"").className!="imagesnewson"){
picswin(id);
showindexad2(id);
}
}

function picswin(id){
	for (picsi=1;picsi<imgUrl.length;picsi++) {
	document.getElementById("pnl"+picsi).className="imagesnews";
	}
	tempid=id.replace('l',"");
	//document.getElementById("lfloattxt").innerHTML=imgtext[tempid];
	//document.getElementById("pn"+id+"").className="imagesnewson";
}



function showindexad2(id){
  stopshow=1;
  var browser=navigator.appName;
  if(browser!="Microsoft Internet Explorer"){
  layeri++;
  document.getElementById(id).style.zIndex = layeri;
  document.getElementById(id).style.left=(0+"px");
  var linkid="link"+id;

  }
else{
  document.getElementById(id).style.posLeft = mwidth;
  layeri++;
  document.getElementById(id).style.zIndex = layeri;
  movestart(id);
  }
}
function startauto(){
  stopshow=0;
  if(timeout==1){
  showindexad();
  timeout=0;
  }
}



