﻿	function setCurrent (who0,who1) {
		//alert('setCurrentCalled '+who0);
		me0 = document.getElementById(who0);
		//me0.style.height='40px';
		me0.style.background='url(images/utility/upGradient.gif)';
		me0.style.color="#FFFFFF";
		me0.style.fontWeight="bold";
		//me0.style.textDecoration='underline';
		
		if (who1){
			me1 = document.getElementById(who1);
			//me.style.height='40px';
			//me1.style.background='url(images/utility/curGradientBright.gif)';
			//me1.style.background="#465cc1";
			//me1.style.color="#000000";
			me1.style.textDecoration='underline';
			//me1.style.borderBottom='3px double #FFFFFF';
		}
	}
	//used to dynamically determine defaultexpanded in ddaccordion.js - KQ SDI HACK - set below
	var subMenuIndex;
	function setSelected (lev0,lev1) {

		//set level0 menuItem to have the red background
		if (lev0) {
			var link  = $('#'+lev0+' > a');
			link.css({background:'url(images/utility/upGradient.gif)',color:'#FFF',fontWeight:'bold'});
		}
		//remove all selected arrows from level 1 items
		$('.first').each(function(index){
			$(this).html('&nbsp;');
		});
		//add selected arrow to selected level1 menuItem
		if (lev1) {
			//add in the arrow for the selected subMenuItem
			var arrow = $('#'+lev1+' .first');
			arrow.html('►');
			//underline the text for the selected subMenuItem
			var link = $('#'+lev1+' a');
			link.css({'text-decoration':'underline'});
			//reveal the subMenu containing the selected subMenuItem
			//this variable is used in ddaccordion.js KQ SDI HACK
			$('.level0').each(function(index){
				if ($(this).attr('id') == lev0) {
					subMenuIndex = index;
				}
			});
		}
	}
