			

siteNav = function() {
			  
			  var loc = document.location.pathname;
			
			switch(loc) {
				case "/":   /*root (home)*/
					t = document.getElementById("home"); 
					t.style.backgroundColor ="#0FF";
					t = document.getElementById("sitemap"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("contact"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("movies"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("ebooks"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("services"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("products"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("articles"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("links"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("affiliate"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("geometry"); 
					t.style.backgroundColor ="#BBB"; 
				
					break;
					
				case "/ContactPage.php":
				
					t = document.getElementById("home"); 
					t.style.backgroundColor ="#BBB";
					t = document.getElementById("sitemap"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("contact"); 
					t.style.backgroundColor ="#0FF"; 
					t = document.getElementById("movies"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("ebooks"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("services"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("products"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("articles"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("links"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("affiliate"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("geometry"); 
					t.style.backgroundColor ="#BBB"; 
						
				
					break;
					
					case "/SiteMap.php":   
						
				t = document.getElementById("home"); 
					t.style.backgroundColor ="#BBB";
					t = document.getElementById("sitemap"); 
					t.style.backgroundColor ="#0FF"; 
					t = document.getElementById("contact"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("movies"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("ebooks"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("services"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("products"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("articles"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("links"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("affiliate"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("geometry"); 
					t.style.backgroundColor ="#BBB"; 
				
					break;
					
				
					case "/Freeebooks.php":   
					t = document.getElementById("home"); 
					t.style.backgroundColor ="#BBB";
					t = document.getElementById("sitemap"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("contact"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("movies"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("ebooks"); 
					t.style.backgroundColor ="#0FF"; 
					t = document.getElementById("services"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("products"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("articles"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("links"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("affiliate"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("geometry"); 
					t.style.backgroundColor ="#BBB"; 
				
					break;
					
									
					
				case "/LinksHome.php":   
					t = document.getElementById("home"); 
					t.style.backgroundColor ="#BBB";
					t = document.getElementById("sitemap"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("contact"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("movies"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("ebooks"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("services"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("products"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("articles"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("links"); 
					t.style.backgroundColor ="#0FF"; 
					t = document.getElementById("affiliate"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("geometry"); 
					t.style.backgroundColor ="#BBB"; 
									
					break;
					
					
	 			case "/AffiliatePage.php":   
					t = document.getElementById("home"); 
					t.style.backgroundColor ="#BBB";
					t = document.getElementById("sitemap"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("contact"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("movies"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("ebooks"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("services"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("products"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("articles"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("links"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("affiliate"); 
					t.style.backgroundColor ="#0FF"; 
					t = document.getElementById("geometry"); 
					t.style.backgroundColor ="#BBB"; 
									
					break;		
					
				case "/GeometryHome.php":   
					t = document.getElementById("home"); 
					t.style.backgroundColor ="#BBB";
					t = document.getElementById("sitemap"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("contact"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("movies"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("ebooks"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("services"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("products"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("articles"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("links"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("affiliate"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("geometry"); 
					t.style.backgroundColor ="#0FF"; 
									
					break;			
					
					
			case "/Partner.php":   
					t = document.getElementById("home"); 
					t.style.backgroundColor ="#BBB";
					t = document.getElementById("sitemap"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("contact"); 
					t.style.backgroundColor ="#0FF"; 
					t = document.getElementById("movies"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("ebooks"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("services"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("products"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("articles"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("links"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("affiliate"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("geometry"); 
					t.style.backgroundColor ="#BBB"; 
									
					break;		
					
			case "/MeetKen.php":   
					t = document.getElementById("home"); 
					t.style.backgroundColor ="#BBB";
					t = document.getElementById("sitemap"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("contact"); 
					t.style.backgroundColor ="#0FF"; 
					t = document.getElementById("movies"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("ebooks"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("services"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("products"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("articles"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("links"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("affiliate"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("geometry"); 
					t.style.backgroundColor ="#BBB"; 
									
					break;							
					
			case "/Products/MainProductPage.php":   
					t = document.getElementById("home"); 
					t.style.backgroundColor ="#BBB";
					t = document.getElementById("sitemap"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("contact"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("movies"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("ebooks"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("services"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("products"); 
					t.style.backgroundColor ="#0FF"; 
					t = document.getElementById("articles"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("links"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("affiliate"); 
					t.style.backgroundColor ="#BBB"; 
					t = document.getElementById("geometry"); 
					t.style.backgroundColor ="#BBB"; 
				
					break;		
					
				default: 
				/* is this document in the Articles directory?  If so, set the fixednav  to show "Articles"  */
				var str1 = "/Articles/";
				var str2 = "/Numerology/";
				var str3 = "/PersonalCoaching/";
				var str4 = "/IWS/";
				
				if (loc.search(str1) != -1)  {
						t = document.getElementById("home"); 
						t.style.backgroundColor ="#BBB";
						t = document.getElementById("sitemap"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("contact"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("movies"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("ebooks"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("services"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("products"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("articles"); 
						t.style.backgroundColor ="#0FF"; 
						t = document.getElementById("links"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("affiliate"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("geometry"); 
						t.style.backgroundColor ="#BBB"; 
					}	
					else if ((loc.search(str2) != -1) ||  (loc.search(str3) != -1) || (loc.search(str4) != -1)) {
						t = document.getElementById("home"); 
						t.style.backgroundColor ="#BBB";
						t = document.getElementById("sitemap"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("contact"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("movies"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("ebooks"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("services"); 
						t.style.backgroundColor ="#0FF"; 
						t = document.getElementById("products"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("articles"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("links"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("affiliate"); 
						t.style.backgroundColor ="#BBB"; 
						t = document.getElementById("geometry"); 
						t.style.backgroundColor ="#BBB"; 
					}
					
			}
}
			
		if (window.addEventListener)
			window.addEventListener("load", siteNav, false);
		else if (window.attachEvent)
			window.attachEvent("onload", siteNav);
		else if (document.getElementById)
			window.onload=siteNav;

			
		
