		
		function initKC()
		{
			
			$("contentWrapper").style.display = "block";
			adjustFooter();
		}
		
		function adjustFooter(){
			//footer(Array('rightContent',null));
					//adjust footer height
			var footerTop = $('ftArea').style.top;
			var minResultHeight = 302;
		
			var resultListHeight = $('resultList').offsetHeight;
			var menuHeight = $('topicList').offsetHeight;
			var bottom = resultListHeight;
			
			if(menuHeight > resultListHeight)  bottom = menuHeight;
			if(bottom >= minResultHeight)
			{
				$('ftArea').style.top = (bottom - minResultHeight) + "px";
			}
			else
			{
				$('ftArea').style.top = "0px";
			}
		}
		
		
		 function menuTransition(time, begin, change, duration)
		 {
				setTimeout(adjustFooter, duration);
				return Spry.circleTransition(time, begin, change, duration);
		 }
		 
		
		function prepMenu(TOPIC_ID)
		{

//		var acc1 = new Spry.Widget.Accordion("modelSpec", { defaultPanel: 1, useFixedPanelHeights: false, transition: Spry.circleTransition, duration: 300, fps: 90 });
//		var acc2 = new Spry.Widget.Accordion("quickGuide", { defaultPanel: 1, useFixedPanelHeights: false, transition: Spry.circleTransition, duration: 300, fps: 90 });
	
		var acc1 = new Spry.Widget.Accordion("modelSpec", { defaultPanel: 1, useFixedPanelHeights: false, transition: menuTransition, duration: 300, fps: 90 });
		var acc2 = new Spry.Widget.Accordion("modelHighlight", { defaultPanel: 1, useFixedPanelHeights: false, transition: menuTransition, duration: 300, fps: 90 });
		var acc2 = new Spry.Widget.Accordion("quickGuide", { defaultPanel: 1, useFixedPanelHeights: false, transition: menuTransition, duration: 300, fps: 90 });
		var acc3 = new Spry.Widget.Accordion("howTo", { defaultPanel: 1, useFixedPanelHeights: false, transition: menuTransition, duration: 300, fps: 90 });

		$(TOPIC_ID).style.fontWeight = "bold";
		
		var node = $(TOPIC_ID);
		
		while(node)
		{
			var className = node.className;
			
			if(className)
			{
				if(className == "AccordionPanelContent")
				{
					node.style.height = "auto";
					node.style.display = "block";
				}
				else
				{
					
					className = className.replace(/AccordionPanelClosed/, "AccordionPanelOpen");
					node.className = className;
				}
			}
			node = node.parentNode;
			
		}
		}
		function displayFAQ(myResult, answerDiv)
		{
			var myState = $(answerDiv).style.display;
			var myTitle = myResult + "_title";
			
		if(myState == 'block'){
				//This is always 23 px height
				$(answerDiv).style.display = 'none';
				$(myResult).className = "resultItem";
				$(myTitle).style.fontWeight ="normal";
				
			}else{
				$(answerDiv).style.display = 'block';
				$(myResult).className = "resultItemOpen";
				$(myTitle).style.fontWeight ="bold";
			}
			
		adjustFooter();
	}
		
		function showResult(myResult,answerDiv,faqURL,omniture){
			var myAnswer = "answer" + answerDiv;
			var myDiv = "resultItem" + answerDiv;
			var myState = $(myDiv).className;
			getFAQ(myResult, myAnswer, faqURL);
		}
		

		
		function ovResult(myDiv){
			var myState = $(myDiv).className;
			var myTitle = myDiv + "_title";
			if (document.all && !window.opera && !window.XMLHttpRequest) {
				$(myDiv).style.backgroundColor = "#e6eff2";
			}
		}
		
		function offResult(myDiv){	 
			var myState = $(myDiv).className;
			var myTitle = myDiv + "_title";
			if (document.all && !window.opera && !window.XMLHttpRequest) {
				if(myState != 'resultItemOpen'){
				$(myDiv).style.backgroundColor = "#FFFFFF";
				}
			}
		}			 
		
		function getFAQ(myResult, answerDiv,faqURL){
			new Ajax.Request(faqURL,{
			method: 'get',
				onComplete: function(transport){
					var faqDoc = transport.responseText; 
					$(answerDiv).innerHTML = faqDoc; 
					
					//now that we have our data, lets display it -- MB
					displayFAQ(myResult, answerDiv);
				},
				onFailure: function(transport){
					$(answerDiv).innerHTML = transport.status; 
				}
			})
		return;
		}
		function doSearch(){
		var searchURL = "/lexus/";
		var rdo_search;
		
		if($('rdo_search').checked == false)  //lexus
		{
			searchURL = "/solr/search_lexus.jsp?";
			rdo_search = "lexus";
		}
		else  //kc
		{
			searchURL = "/solr/faq.do?";
			rdo_search = "kc";
		}
		
		var qstring = "qt=" + $('qt').value + "&rdo_search=" + rdo_search;
		qstring = qstring.replace(/ /, "+");
		
		searchURL += qstring
		location.href=searchURL;

		return false;
		}
	