function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

var i=1;
var timer;
var images=Array();
for(i=1;i<51;i++)
{

images[i]='/home/middle/action_img/' + i + '.jpg';
}
function play(){
    timer=setInterval(f,4000);
}
function f(){
    //img1.filters[0].Apply();
    //img1.src=images[(i=(i==49?0:i+1))];
    //img1.filters[0].Play();
		y=getrandom(1,50);
	
	if('\v'=='v')
	{
	document.getElementById('img1').filters[0].Apply();
	document.getElementById('img1').src=images[y];
  document.getElementById('img1').filters[0].Play();
	}
	else
	{
	document.getElementById('img1').src=images[y];
	}
}
function getrandom(min_random, max_random) {
    var range = max_random - min_random + 1;
    return Math.floor(Math.random()*range) + min_random;
}