


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>";
			//base_image.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+baseurl[i_image]+" border=0>";
			i_strngth=i_strngth+3;
			var timer=setTimeout("showimage()",20);
		}
		else
		{
			clearTimeout(timer);
			var timer=setTimeout("hideimage()",6000);
		}
	}
	else if ( !document.all && document.getElementById)
	{
		//alert('1');
		
		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>";
			//document.getElementById('base_image').innerHTML="<img style='-moz-opacity:"+ti_strngth+";opacity:"+ti_strngth+")' src="+baseurl[i_image]+" border=0>";
			i_strngth=i_strngth+3;
			var timer=setTimeout("showimage()",20);
		}
		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.base_image.document.write("<img src="+baseurl[i_image]+" border=0>");
			document.close();
			i_image++;
			if (i_image >= imageurl.length)
			{
				i_image=0;
			}
			var timer=setTimeout("showimage()",6000);

	}
}


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>";
			//base_image.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+baseurl[i_image]+" border=0>";
			i_strngth=i_strngth-4;
			var timer=setTimeout("hideimage()",20);
		}
		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>";
			//document.getElementById('base_image').innerHTML="<img style='-moz-opacity:"+ti_strngth+";opacity:"+ti_strngth+")' src="+baseurl[i_image]+" border=0>";
			i_strngth=i_strngth-4;
			var timer=setTimeout("hideimage()",20);		
		}
	}
	else
	{
		
		
		
		clearTimeout(timer);
		i_image++;
		if (i_image >= imageurl.length)
		{
			i_image=0;
		}
		i_strngth=1;
		
		//document.getElementById('main_image').innerHTML="<img style='-moz-opacity:0;opacity:0)' src="+imageurl[i_image]+" border=0>";
		//document.getElementById('base_image').innerHTML="<img style='-moz-opacity:0;opacity:0)' src="+baseurl[i_image]+" border=0>";			
		
		var timer=setTimeout("showimage()",20);
	}
}

