	var carHomePage;
	var DHeight;
	var DWidth;
	
	if (carHomePage) {
		var flashvars = {
			xmlSrc:					"/cars/_assets/data/navigation/navigationCarHome.xml"
		};
	} else {
		var flashvars = {
			xmlSrc:					"/cars/_assets/data/navigation/navigation.xml"
		};
	}

	var flashParams = {
		wmode: 					"transparent",
		menu: 					"false",
		allowscriptaccess:		"always",
		align: 					"T",
		salign: 				"T",
		//base: 					"/cars/_assets/data/new/data/",
		quality: 				"best",
		scale: 					"noscale"
	};
	var attributes =  {
		id: 					"newCarsMenuFlash",
		name: 					"newCarsMenuFlash"
	};
	swfobject.embedSWF("/cars/_assets/flash/verticalnav.swf", "newCarsMenu", "200", "500", "9.0.0", "/_assets/flash/expressInstall.swf", flashvars, flashParams, attributes);
	

	$(document).ready(function(){
		// Create a hover layer and bind collapse to pages other than home
		$("#flashMenuWrapper").before('<div id="flashMenuWrapperHover"></div>').hover(
			function(){},
			function() {
				if (!carHomePage) {
					if (FL("newCarsMenuFlash")) { try {FL("newCarsMenuFlash").collapse()} catch(e) {}};
				}
			}
		);
		// Apply CSS to initially collapsed menu pages other than home
		if (!carHomePage) {
			$("#flashMenuWrapper").css({background:"none", width:"200px", height:"23px", overflow:"hidden"});
		}
		// Apply CSS to hover layer and create hover binding
		$("#flashMenuWrapperHover")
			.css({zIndex:$("#flashMenuWrapper").css("zIndex")-1, display:"none", position:"absolute", top:"0", left:"0", width:"400px", height:"600px"})
			.hover(
				function() {
					closeMenu();
				},
				function() {}
			);
	});	

	/* Flash triggered */
	function callbackNavReduced() {
		closeMenu();
	}
	function callbackNavExpanded()  {
		openMenu();
	}
	/* JavaScript triggered */
	function closeMenu() {
		$("#flashMenuWrapperHover").hide();
		$("#flashMenuWrapper").css({height:"23px", zIndex:"40"});
		if (FL("inspireFlash")) {try {FL("inspireFlash").startProcessing();} catch(e){}}
	}
	function openMenu() {
		if ($.browser.mozilla) {
			DHeight = $(document).height();
			DWidth = $(document).width();
			$("#flashMenuWrapperHover").height(DHeight).width(DWidth).show();
		}
		$("#flashMenuWrapper").css({height:"460px", zIndex:"80"});
		if (FL("inspireFlash")) {try {FL("inspireFlash").stopProcessing();} catch(e){}}
	}
	