function collapse( id )
{
	var param = 'quote';
	id = String(id);
	param = param.concat(id);
	
	var div = document.getElementById(param);
	div.style.display = 'none';
}

function collapseByCount( count )
{
	count = parseInt(count);	
	for(i = 0; i < count; i++)
	{
		var param = 'quote';
		id = String(i);
		param = param.concat(id);
		
		var div = document.getElementById(param);
		div.style.display = 'none';
	}
}

function expand( id, imgName )
{
	var param = 'quote';
	id = String(id);
	param = param.concat(id);
	
	var div = document.getElementById(param);
	div.style.display = 'block';
	
	var mainBg = document.getElementById("in_maincon")
	mainBg.style.background = 'url(images/'+imgName+') no-repeat right bottom';
}


function expandByRandom()
{
	var id = Math.floor( 8 * Math.random());	
	
	if (id == 0)
	{
		expand(0, 'home_sandberg.jpg');
	}
	
	if (id == 1)
	{
		expand(1, 'home_stonhaus.jpg');
	}
	
	if (id == 2)
	{
		expand(2, 'home_llewellyn.jpg');
	}
	
	if (id == 3)
	{
		expand(3, 'home_del_grande.jpg');
	}
	
	if (id == 4)
	{
		expand(4, 'home_timm.jpg');
	}
	
	if (id == 5)
	{
		expand(5, 'home_brady.jpg');
	}
	
	if (id == 6)
	{
		expand(6, 'home_chaput.jpg');
	}
	
	if (id == 7)
	{
		expand(7, 'home_witkay.jpg');
	}
	
}

  
