var timer;
var MAX_COMPAT_HEIGHT = 600;
var MIN_COMPAT_HEIGHT = 1;	
function expandSize()
{
	var vCurrHeight = parseInt(document.getElementById('arbi').style.height);
	vCurrHeight += 20;	
	if ( vCurrHeight < MAX_COMPAT_HEIGHT )
	{
		document.getElementById('arbi').style.overflow = 'auto';
		document.getElementById('arbi').style.height = vCurrHeight + 'px';
		timer = setTimeout("expandSize()",20);
	}
	else
	{
		if ( document.getElementById('buttonSize') )
		{		
			document.getElementById('buttonSize').onclick=function(){ reduceSize(); }
			document.getElementById('buttonSize').value="Reduire liste";
		}
		else if ( document.getElementById('linkCompat') )
		{
			document.getElementById('linkCompat').onclick=function(){ reduceSize(); }
document.getElementById('linkCompat').href= "#";
			document.getElementById('linkCompat').innerHTML="<span class=\"testo1bold\">Cacher Mobiles Compatibles</span>";
		}
		clearTimeout(timer);
	}
}

function reduceSize()
{
	var vCurrHeight = parseInt(document.getElementById('arbi').style.height);
	vCurrHeight -= 20;
	if ( vCurrHeight >= MIN_COMPAT_HEIGHT )
	{
		document.getElementById('arbi').style.overflow = 'auto';
		document.getElementById('arbi').style.height = vCurrHeight + 'px';
		timer = setTimeout("reduceSize()",20);
	}
	else
	{
		if ( document.getElementById('buttonSize') )
		{		
			document.getElementById('buttonSize').onclick=function(){ expandSize(); }
			document.getElementById('buttonSize').value="Voir plus";
		}
		else if ( document.getElementById('linkCompat') ) 
		{
			document.getElementById('linkCompat').onclick=function(){ expandSize(); }
document.getElementById('linkCompat').href= "#linkCompat";
			document.getElementById('linkCompat').innerHTML="<span class=\"testo1bold\">Mobiles Compatibles</span>";
		}
		document.getElementById('arbi').style.overflow = 'hidden';
		clearTimeout(timer);
		document.getElementById('arbi').scrollTop = 0;
	}

}
