function toggleLayer(whichLayer)
{
	var layer = new Array();
	var show = new Array();
	if (whichLayer=='main_body')
	{
		layer[0] = 'contact_form';
		layer[1] = 'contact_pic';
		show[0] = 'thumbnail_area';
		show[1] = 'picture_yellow_box';
		crossfade(document.getElementById('test'),'images/big1.jpg', '1', 'Abstract Art');
	}
	if (whichLayer=='contact')
	{
		layer[0] = 'thumbnail_area';
		layer[1] = 'picture_yellow_box';
		show[0] = 'contact_form';
		show[1] = 'contact_pic';
	}
	if (document.getElementById)
	{
		// this is the way the standards work
		for(i=0;i<show.length;i++)
		{
			var style2 = document.getElementById(show[i]).style;
			style2.display = 'block';
		}
		for(i=0;i<layer.length;i++)
		{
			var style3 = document.getElementById(layer[i]).style;
			style3.display = 'none';
		}
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		for(i=0;i<show.length;i++)
		{
			var style2 = document.all[show[i]].style;
			style2.display = 'block';
		}
		for(i=0;i<layer.length;i++)
		{
			var style3 = document.all[layer[i]].style;
		style3.display = 'none';
		}
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		for(i=0;i<show.length;i++)
		{
			var style2 = document.layers[show[i]].style;
			style2.display = 'block';
		}
		for(i=0;i<layer.length;i++)
		{
			var style3 = document.layers[layer[i]].style;
			style3.display = 'none';
		}
	}
}