// JavaScript Document
function Preload_Image(strImage){
	imgLoad = new Image();
	imgLoad.src = strImage;
}
function PageLoaded(){
	if (top == self){
	}else{
		parent.window.open("http://www.kimball.com","_top");
	} 
	PageInitialize();
}
function getPage() {
	var sPath = window.location.pathname;
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	return sPage;
}

$(document).ready(function(){
	$("ul").addClass("visShow");
	$("ul.sub").hide();
	$("ul.sub2").hide();
	$("div.open").children("span").text("- ");
	$("div.top").click(function(){
		//--do it
		$(this).toggleClass("open"); //open or close this
		// get content
		if ($(this).hasClass("open")) {
			$(this).children("span").text("- ");
		} else {
			$(this).children("span").text("+ ");
		}
		$(this).next("ul").slideToggle("slow");
		//$(this).children().slideToggle("slow");
		//--mark this and close the rest
		$(this).addClass("skip");
		$("div.top:not(div.skip)").removeClass("open");
		$("div.top:not(div.skip)").children("span").text("+ ");
		$(this).removeClass("skip");
		//--mark the sub and close the rest
		$(this).next("ul").addClass("skip");
		//$(this).children().addClass("skip");
		$("ul.sub:not(ul.skip)").slideUp("slow");
		$("ul.sub2:not(ul.skip)").slideUp("slow");
		$(this).next("ul").removeClass("skip");
		//$(this).children().removeClass("skip");
		return false;
	});
	$("div.top2").click(function(){
		$(this).toggleClass("open"); //open or close this
		if ($(this).hasClass("open")) {
			$(this).children("span").text("- ");
		} else {
			$(this).children("span").text("+ ");
		}
		$(this).next("ul").slideToggle("slow");
		//mark this and close the rest
		$(this).addClass("skip");
		$("div.top2:not(div.skip)").removeClass("open");
		$("div.top2:not(div.skip)").children("span").text("+ ");
		$(this).removeClass("skip");
		//mark the sub and close the rest
		$(this).next("ul").addClass("skip");
		$("ul.sub2:not(ul.skip)").slideUp("slow");
		$(this).next("ul").removeClass("skip");
		//do it
		return false;
	});
});
