<!--
// JavaScript Document
var questionOpen = false;
var lastQuestion = 1;

function findObj(n, d)
{
   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
   if(!x && d.getElementById) x=d.getElementById(n); return x;
}

//following code writen by Christopher Stevens, Commotion, 2005, stevens@createcommotion.com
function showThisHideAdds(h) {
	var i,id,obj,stored;
	stored = h;
	if(h) {
		if(findObj('plus' + h) && findObj('min' + h) && findObj('ans' + h)) {
			if(questionOpen == false) {
				findObj('plus' + h).style.display = "none";
				findObj('min' + h).style.display = "inline";
				findObj('ans' + h).style.display = "inline";
				questionOpen = true;
				lastQuestion = h;
			} else if(lastQuestion != h) {
				//close last question
				findObj('plus' + lastQuestion).style.display = "inline";
				findObj('min' + lastQuestion).style.display = "none";
				findObj('ans' + lastQuestion).style.display = "none";
				
				//open new question
				findObj('plus' + h).style.display = "none";
				findObj('min' + h).style.display = "inline";
				findObj('ans' + h).style.display = "inline";
				questionOpen = true;
				lastQuestion = h;
			} else {
				findObj('plus' + h).style.display = "inline";
				findObj('min' + h).style.display = "none";
				findObj('ans' + h).style.display = "none";
				questionOpen = false;
				lastQuestion = h;
			}
		}
	}
}
//-->