/*  
----------------------------------------
Copyright (c) 2008 poe-net.com developer 
----------------------------------------
*/

var ALPHA = 100;
var IPP = 0;
var IMM = 1;

function setopacity(opacity, elmt)
{
  	if (elmt.filters){elmt.filters.item(0).opacity = Math.round(opacity * 100);}
  	else{elmt.style.opacity = opacity;}  
}


function alpha()
{
	if (IPP++ <= ALPHA) 
	{		
		setopacity(IPP/ALPHA, B1);		
	} 
	else 
	{
		IPP = 0;
		
		setopacity(1, B0);
		B0.style.background = B1.style.background;	
		setopacity(0, B1);
		B1.style.background = "url('"+imgsrc[++IMM % imgsrc.length].src+"') no-repeat";
	}
}