var arrow      = 'url(i/arrowbullet2.gif)';
var arrowoff   = 'url(i/arrowbulletoff2.gif)';
var arrowdown  = 'url(i/arrowbulletdown2.gif)';


function go()
{
	var q = document.getElementById("q1");
	var a = document.getElementById("a1");

	for(i=1; i<5; i++)
	{
		if (i > 0)
		{
			o = document.getElementById('q' + i);
			o.style.color = "#999";
			o.style.backgroundImage = arrowoff;
			
			p = document.getElementById('a' + i);
			p.style.display= "none";
			p.style.visibility = "hidden";
		}
	}

	q.style.color = "#333";
	q.style.backgroundImage = arrowdown;
	a.style.display = "block";
	a.style.visibility = "visible";
	
	lastQel = q;
	lastQnum = 1;
}

var lastQnum = null;
var lastQel  = null;

function toggleOn(q, n)
{
	if (n != lastQnum)
	{
		toggleOff(lastQel, lastQnum);
		lastQnum = n;
		lastQel  = q;
	}
	
	var a = document.getElementById('a' + n);
	var d = a.style.display;
	
	// Turn it on
	if (d != "block")
	{
		q.style.color = "#333";
		q.style.backgroundImage = arrowdown;
		
		a.style.display = "block";
		a.style.visibility = "visible";
		
		// Blur the rest
		for (i=1; i<5; i++)
		{
			if (i != n)
			{
				q = document.getElementById('q' + i);
				a = document.getElementById('a' + i);
				q.style.color = "#999";
				q.style.backgroundImage = arrowoff;
				q.style.backgroundRepeat = "no-repeat";
				a.style.display="none";
				a.style.visibility="hidden";
			}
		}
		
		return;
	}
	else
	{
		q.style.color = "#999";
		q.style.backgroundImage = arrowoff;
		
		a.style.display = "none";
		a.style.visibility="hidden";
		
		return;
	}
}

function toggleOff(q, n)
{	
	var a = document.getElementById('a' + n);
	var d = a.style.display;
	
	// Turn it off
	if(d == "inline")
	{
		q.style.color = "#333";
		q.style.backgroundImage = arrow;
		a.style.display = "none";
		a.style.visibility = "hidden";
		
		// Bring 'em back				
		for (i=1; i<5; i++)
		{
			if (i != n)
			{
				o = document.getElementById('q' + i);
				o.style.color = "#333";
				o.style.backgroundImage = arrow;
				o.style.backgroundRepeat = "no-repeat";
			}
		}
		
		return;
	}
}