var getID = function(i){return document.getElementById(i);}
var image=new Array();
var alink=new Array();
var title=new Array();
var show_i=0;

image[0]="http://images.91.com/eo91e/img/pic_show/painting1.jpg";
alink[0]="http://contest.eo.91.com/club/show.php?do=show&id=180";
title[0]="The first";

image[1]="http://images.91.com/eo91e/img/pic_show/painting2.jpg";
alink[1]="http://contest.eo.91.com/club/show.php?do=show&id=151";
title[1]="The second";

image[2]="http://images.91.com/eo91e/img/pic_show/painting3.jpg";
alink[2]="http://contest.eo.91.com/club/show.php?do=show&id=139";
title[2]="The third";

image[3]="http://images.91.com/eo91e/img/pic_show/painting4.jpg";
alink[3]="http://contest.eo.91.com/club/show.php?do=show&id=707";
title[3]="The Fourth";

getID("show_link").href=alink[show_i];
getID("show_img").src=image[show_i];
getID("show_img").title=title[show_i];
var imgnum=image.length-1;
//启动轮转
function turn(){
	t =setInterval(turnon,3000);
}
function turnon(){
	if(show_i==imgnum) show_i=0;
else show_i++;
	getID("show_link").href=alink[show_i];
getID("show_img").src=image[show_i];
getID("show_img").title=title[show_i];
}
//清除轮转
function stop1() 
{ 
    clearInterval(t) ;
}
//继续轮转
function rturn(){
turn();
}







