


function showimage()
{
	if(document.all)
	{
	
		if (i_strngth <=95)
		{
			main_image.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
			i_strngth=i_strngth+3;
			var timer=setTimeout("showimage()",10);
		}
		else
		{
			clearTimeout(timer);
			var timer=setTimeout("hideimage()",6000);
		}
	}
	else if ( !document.all && document.getElementById)
	{
		
		if (i_strngth <=95)
		{
			ti_strngth = i_strngth/100;
			document.getElementById('main_image').innerHTML="<img style='-moz-opacity:"+ti_strngth+";opacity:"+ti_strngth+")' src="+imageurl[i_image]+" border=0>";
			i_strngth=i_strngth+3;
			var timer=setTimeout("showimage()",10);
		}
		else
		{
			clearTimeout(timer);
			var timer=setTimeout("hideimage()",6000);
		}		
		
		
	}
	else if(document.layers)
	{
		clearTimeout(timer);
		document.main_image.document.write("<img src="+imageurl[i_image]+" border=0>");
		document.close();
		i_image = Math.floor(Math.random()*i_num);
		var timer=setTimeout("showimage()",5000);

	}
}


function hideimage()
{
	if (i_strngth >=-3)
	{
		if(document.all)
		{
			main_image.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
			i_strngth=i_strngth-4;
			var timer=setTimeout("hideimage()",10);
		}
		else if(!document.all && document.getElementById)
		{
			ti_strngth = i_strngth/100;
			document.getElementById('main_image').innerHTML="<img style='-moz-opacity:"+ti_strngth+";opacity:"+ti_strngth+")' src="+imageurl[i_image]+" border=0>";
			i_strngth=i_strngth-4;
			var timer=setTimeout("hideimage()",10);		
		}
	}
	else
	{
		clearTimeout(timer);
		i_image = Math.floor(Math.random()*i_num);
		i_strngth=1;
		var timer=setTimeout("showimage()",1);
	}
}

