var nav = [["pictures","pictures","pictures.html"],
			["questions","questions","questions.html"],
			<!--["stories","stories","stories.html"],-->
			["contact us","contact_us","contact_us.php"],
			["products","products","products.html"],
			["weddings","weddings","weddings.html"],
			["seniors","seniors","seniors.html"],
			["community","community","community.html"],
			["contest","contest","contest.html"]
			//,
			//["testimonials","testimonials","testimonials.html"]
			//,
			//["blog","blog"]
			];

var testimonial = [
["This is the testimonial. It is an awesome testimonial. imotion is awesome. That is all.","-April Funsten","2.11.10","a"],
["This another testimonial. It is another awesome testimonial. imotion is still awesome. That is all.","-April Funsten","2.11.10","b"],
					];

if (location.search.substring(1) != "") {
	var startingNumber = location.search.substring(1);
}
else {
	var startingNumber = 1;
}

function changePhoto(number) {
	document.getElementById("bigPhoto").src = "photos/" + category + "_" + number + ".jpg";
}

function goNext() {
	if ((parseInt(startingNumber) + 14) <= count) {
		document.location = category + ".html?" + (parseInt(startingNumber) + 15);
	}
}

function goPrevious() {
	if (startingNumber != 1) {
		document.location = category + ".html?" + (parseInt(startingNumber) - 15);
	}
}

function toggleQuestions(q) {
	if (document.getElementById(q).style.display == "none") {
		Effect.SlideDown(q, { duration: .1 });
	}
	else {
		Effect.SlideUp(q, { duration: .1 });
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}