/// <reference path="jquery-1.2.3-intellisense.js" />
$(function() {


	// EXPAND AND CONTRACT MAIN CONTENT AREA	
	$('#contract-main-content').hide()	
	$('#expand-main-content').click(function(){
		$('#expand-main-content').hide()
		$('#contract-main-content').show()		
		$('body.template-1').removeClass("template-1").addClass("template-6");
		$('body.template-3').removeClass("template-3").addClass("template-6");
		$('body.template-4').removeClass("template-4").addClass("template-6");		
		$('#contract-main-content').click(function(){
			$('#contract-main-content').hide()
			$('#expand-main-content').hide()			
			$('body.template-6').removeClass("template-6").addClass("template-6");
		});
   	});
	
	
	// INTERACTIVE PROCESS FLOW CHARTS
	// Initiation: hide all but the first panel		
	$("#process-flow .highlight-box").not("#start").hide();
	// When an option link to an anchor on the same page is clicked...
	$("#process-flow .highlight-box dl a[href^=#]").click( function() {
		// Clear arrows from all hidden panels		
		$($(this).attr("href")).find("dd").removeClass("select");
		$(this).parent().siblings().removeClass("select");
		// Add arrow to selected option
		$(this).parent().addClass("select");
		// Hide any panels that follow this one
		$(this).parent().parent().parent().nextAll().hide();
		// Reveal the next panel
		$($(this).attr("href")).slideDown("slow");
		return false;	
	});
	
	
});
