
<!--
var currentHeader=0,headerPrefix=new Array('connecttop','exploretop','lifestyletop','ownertop');
var defaultValue = "Enter Search Text";
var noTextClassName = "searchboxempty";
var normalClassName = "searchbox";

function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
	var p,i,x;if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function openWin(windowURL, windowName, windowFeatures) { 
	window.open(windowURL, windowName, windowFeatures) ; 
};

function PreLoadDefaultImages () {
	MM_preloadImages(constApplRoot+'/layout/images/header_r1_c1_f2.gif',constApplRoot+'/layout/images/header_r1_c3_f2.gif',constApplRoot+'/layout/images/header_r1_c4_f2.gif',constApplRoot+'/layout/images/header_r1_c6_f2.gif',constApplRoot+'/layout/images/header_r1_c8_f2.gif',constApplRoot+'/layout/images/header_r1_c10_f2.gif',constApplRoot+'/layout/images/footer_r1_c1_f2.gif',constApplRoot+'/layout/images/footer_r1_c2_f2.gif',constApplRoot+'/layout/images/footer_r1_c3_f2.gif',constApplRoot+'/layout/images/footer_r1_c4_f2.gif',constApplRoot+'/layout/images/footer_r1_c5_f2.gif',constApplRoot+'/layout/images/leftnav/nav_r2_c1_f2.gif',constApplRoot+'/layout/images/leftnav/nav_r3_c1_f2.gif',constApplRoot+'/layout/images/leftnav/nav_r4_c1_f2.gif',constApplRoot+'/layout/images/leftnav/nav_r5_c1_f2.gif',constApplRoot+'/layout/images/leftnav/nav_r6_c1_f2.gif',constApplRoot+'/layout/images/leftnav/nav_r4_c1_f2.gif',constApplRoot+'/layout/images/visit_our_showroom_on.gif',constApplRoot+'/layout/images/leftnav/find_a_dealer_nav_on.gif', constApplRoot+'/layout/images/book_testdrive_0.gif',constApplRoot+'/layout/images/book_testdrive_1.gif')
	for (var j,i=1;i<=3;i++)
		for (j=0;j<headerPrefix.length;j++)
			MM_preloadImages(constApplRoot+'/layout/images/header/'+headerPrefix[j]+i.toString()+'.jpg');
};

function headerSwap() {
	for (var i=1;i<=3;i++) {
		MM_findObj('headerbar'+i.toString()).src=constApplRoot+'/layout/images/header/'+headerPrefix[currentHeader]+i.toString()+'.jpg';
	};
	currentHeader++;
	if (currentHeader==headerPrefix.length)
		currentHeader=0;
};

//	Written by:
//		David Stormer, 20 June 2003
//	Purpose:
//		Changes the display style for the search box depending on
//		its value (default value, no value or custom value)
//	Parameters:
//		objBox - The search text box object
//		isBlur - Flag if is fired on the 'onblur' event
function doSearchBoxStyle(objBox, isBlur)
{
	try
	{
		// check if search box has a value or is default value
		if ((objBox.value.toLowerCase() == defaultValue.toLowerCase() || objBox.value == "")
			&& objBox.className != noTextClassName)
		{
			// set the class to the empty classs
			objBox.className = noTextClassName;
			// set the value to the default value
			objBox.value = defaultValue;
			// check if is not blur
			if (!isBlur)
			{
				// select the values in the text box
				objBox.select();
			}
		}
		else if ((objBox.value.toLowerCase() != defaultValue.toLowerCase() && objBox.value != "") &&
			objBox.className != normalClassName)
		{
			// set the class name to the normal class
			objBox.className = normalClassName;
		};
	}
	catch (e) { alert(e.Message); }
};

//	Written by:
//		David Stormer, 20 June 2003
//	Purpose:
//		Validates the user's search text box that is omnipresent
//	Parameters:
//		objForm - The form where txtSearchFor text box is located
function validateSearchGlobal(objForm)
{
	// check if search text is provided
	if (objForm.txtSearchFor.value == "" || objForm.txtSearchFor.value.toLowerCase() == defaultValue.toLowerCase())
	{
		// alert user
		alert ("Please enter text for which to search.");
		// return to text box
		objForm.txtSearchFor.focus();
		objForm.txtSearchFor.select();
		// return false
		return false;
	}
	// submit the form
	objForm.submit();
}

//-->