	var faqdivpos = 0;
	
	function scrollfaq(pixels) {
		faqdivpos = faqdivpos - pixels;
		if ( faqdivpos >= (document.getElementById("faqdivtable").offsetHeight-12) ) {
			faqdivpos = faqdivpos + pixels;
		}
		if (faqdivpos <= 0) {
			faqdivpos = 0;
		}
		document.getElementById("faqdivtable").style.top = "-" + faqdivpos + "px";
		// fixes mac catchup issues
		document.getElementById("macfixer").src="images/spacer.gif";		
		setarrows();
		}
	
	function scrollfaqtype(section_id) {
		// scrolls to a certain page, given the section
		pixelstoscroll = 0 - document.getElementById("faqtype" + section_id).offsetTop;
		scrollfaq(pixelstoscroll);
	}	
	
	function scrollquiz(pixels) {
		faqdivpos = faqdivpos - pixels;
		if ( faqdivpos >= (document.getElementById("faqdivtable").offsetHeight-12) ) {
			faqdivpos = document.getElementById("faqdivtable").offsetHeight-12;
		} else if (faqdivpos <= 0) {
			faqdivpos = 0;
		}
		document.getElementById("faqdivtable").style.top = "-" + faqdivpos + "px";
		// fixes mac catchup issues
		document.getElementById("macfixer").src="images/spacer.gif";	
		setarrows();
	}

	scrollquizflag = 0;	
	
	function multiscrollquiz(pixels) {
		if (scrollquizflag == 1) {
			scrollquiz(pixels);
			window.setTimeout('multiscrollquiz(' + pixels + ')',5);
		}
	}

	function setarrows() {
		if ( faqdivpos >= (document.getElementById("faqdivtable").offsetHeight-12) ) {
			document.getElementById("funkyarrow_down").src="images/aquafunkyarrow_down_grey.gif";
			document.getElementById("funkyarrow_up").src="images/aquafunkyarrow_up.gif";
		} else if (faqdivpos <= 0) {
			document.getElementById("funkyarrow_down").src="images/aquafunkyarrow_down.gif";
			document.getElementById("funkyarrow_up").src="images/aquafunkyarrow_up_grey.gif";
		} else {
			document.getElementById("funkyarrow_down").src="images/aquafunkyarrow_down.gif";
			document.getElementById("funkyarrow_up").src="images/aquafunkyarrow_up.gif";
		}
	}	
