// painel rotativo //
function changeOpac(opacity)
{
//	var obj = $('to-blend').style;
	var obj = document.getElementById('to-blend').style;
	obj.opacity=(opacity/101);
	obj.MozOpacity=(opacity/101);
	obj.KhtmlOpacity=(opacity/101);
}
function blend(imagefile)
{
	var speed=7;
	var timer=0;
	for(i=100; i>0; i-=2)
		setTimeout('changeOpac('+i+')', timer++ * speed);
	setTimeout('changeContent()', timer * speed);
	for(i=0; i<=100; i+=2)
		setTimeout('changeOpac('+i+')', timer++ * speed);
}
function changeImg(id)
{
	clearTimeout(timeoutId);
	atual+=parseInt(id);
	if(atual>Item.length-1)
		atual=0;
	if(atual<0)
		atual=Item.length-1;
	if(imgDsp[atual].complete==false)
	{
		atual--;
		timeoutId = setTimeout('changeImg('+id+')',500);
		return;
	} 
	if(d.all && navigator.userAgent.indexOf('Opera')==-1)
	{
		try 
		{
//			oDiv = $('to-blend');
			oDiv = document.getElementById('to-blend');
			oDiv.style.filter="blendTrans(duration=0.7)";
		   	oDiv.filters.blendTrans.apply();
		    oDiv.filters.blendTrans.play();
			changeContent();
		} 
		catch(e) { changeContent(); }
	}
	else 
	{
		blend(); 
	}
	if(!pausedSlide)
		timeoutId=setTimeout('changeImg(1)',6000);
}
function loadImages()
{
	imgDsp = new Array();
	for(n=0; n<Item.length; n++)
	{
		imgDsp[n]=new Image();
		imgDsp[n].src=Item[n][1];
	}
	okToGo = true;
} 
function changeContent()
{
	d.img1.src=imgDsp[atual].src;
	d.img1.alt=d.img1.title=Item[atual][0];
//	$('txt1').innerHTML=Item[atual][2];
	document.getElementById('txt1').innerHTML=Item[atual][2];
	if(usaCredito!='')
		document.getElementById('credito').innerHTML=Item[atual][2];
//		$('credito').innerHTML=Item[atual][0];
//	$('icon-area').innerHTML=Item[atual][4];
	document.getElementById('icon-area').innerHTML=Item[atual][4];
}

