	var faqddivpos = 0;
	
	function scrollfaqd(pixels) {
		faqddivpos = faqddivpos - pixels;
		if ( faqddivpos >= (document.getElementById("faqdivtable").offsetHeight-40) ) {
			faqddivpos = faqddivpos + pixels;
		}
		if (faqddivpos < 0) {
			faqddivpos = 0;
		}
		document.getElementById("faqdivtable").style.top = "-" + faqddivpos + "px";
		// fixes mac catchup issues
		document.getElementById("macfixer").src="images/spacer.gif";		
	}
	
	function scrollfaq(section_id) {
		// scrolls to a certain page, given the section
		pixelstoscroll = 0 - document.getElementById("faq" + section_id).offsetTop;
		scrollfaqd(pixelstoscroll);
		setarrows();
	}		
	
	function scrollquiz(pixels) {
		faqddivpos = faqddivpos - pixels;
		if ( faqddivpos >= (document.getElementById("faqdivtable").offsetHeight-40) ) {
			faqddivpos = document.getElementById("faqdivtable").offsetHeight-40;
		} else if (faqddivpos <= 0) {
			faqddivpos = 0;
		}
		document.getElementById("faqdivtable").style.top = "-" + faqddivpos + "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 ( faqddivpos >= (document.getElementById("faqdivtable").offsetHeight-40) ) {
			document.getElementById("funkyarrow_down").src="images/aquafunkyarrow_down_grey.gif";
			document.getElementById("funkyarrow_up").src="images/aquafunkyarrow_up.gif";
		} else if (faqddivpos <= 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";
		}
	}		
