/* the main nav */
swfobject.embedSWF("Navigation Hair Salon NJ.swf", "divFlash", "273", "560", "8.0.0", "expressInstall.swf", false, {wmode: "transparent"}, false );	
		
		
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);

if (sPage == "" || sPage =="index.html"  ) {
	$(document).ready( function() {

	  $("#div-KM").css("display","none");
		$("#a-KM").click(function() {
			$("#div-KM").toggle("slow", "swing");
			return false;
		});
	});

}

if (sPage == "" || sPage =="index.html" || sPage == "News.htm" ) {


	/* drop-down link handler for pages that need it */
	$(document).ready( function() {

	  $(".div-dropdown-link").css("display","none");
		$(".a-dropdown-link").click(function() {
			$(this).next().toggle("slow", "swing");
			return false;
		});
	});
}
	
/*	
if (sPage == "News.htm" && window.location.hash == "#news-KM" ) {
	// auto-expand the news if coming for KM info 
	$(".div-dropdown-link").css("display","block");
	$(".a-dropdown-link").css("display","none");
}
*/
	
if (sPage == "Gallery.htm"  ) {
	/* show the flip-book gallery */
	swfobject.embedSWF("Roots Gallery.swf", "divFlash2", "609", "440", "8.0.0", "expressInstall.swf", false, {wmode: "transparent"}, false );	
}
	
	

		
/* GA */		
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-8433077-26']);
_gaq.push(['_trackPageview']);

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();


