// JScript File
function runOnLoad(){

var sPath = window.location;
sPath=sPath.toString();
var sPage = sPath.split('/');
var sPage = sPage[sPage.length-1];
if(sPage == "")
	{
		var vb=document.getElementById("home");
		vb.style.backgroundImage="url(./wp-content/themes/life/images/home-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";	
	}
	else if(sPage == "home-vertical.shtml")
	{
		var vb=document.getElementById("home");
		vb.style.backgroundImage="url(./images/home-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";	
	}
	else if(sPage == "?page_id=44")
	{
		var vb=document.getElementById("contributors");
		vb.style.backgroundImage="url(./wp-content/themes/life/images/contributors-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
        else if(sPage == "?page_id=46")
	{
		var vb=document.getElementById("contributors");
		vb.style.backgroundImage="url(./wp-content/themes/life/images/contributors-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
	else if(sPage == "?page_id=103")
	{
		var vb=document.getElementById("contributors");
		vb.style.backgroundImage="url(./wp-content/themes/life/images/contributors-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
        else if(sPage == "?page_id=147")
	{
		var vb=document.getElementById("contributors");
		vb.style.backgroundImage="url(./wp-content/themes/life/images/contributors-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
        else if(sPage == "?page_id=141")
	{
		var vb=document.getElementById("contributors");
		vb.style.backgroundImage="url(./wp-content/themes/life/images/contributors-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
        else if(sPage == "?page_id=149")
	{
		var vb=document.getElementById("contributors");
		vb.style.backgroundImage="url(./wp-content/themes/life/images/contributors-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
	else if(sPage == "?page_id=48")
	{
		var vb=document.getElementById("lifescape");
		vb.style.backgroundImage="url(./wp-content/themes/life/images/lifescapesgall-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
	else if(/p=[0-9]/.test(sPage))
	{
		var vb=document.getElementById("lifescape");
		vb.style.backgroundImage="url(./wp-content/themes/life/images/lifescapesgall-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
        else if(/m=[0-9]+/.test(sPage))
        {
                var vb=document.getElementById("lifescape");
                vb.style.backgroundImage="url(./wp-content/themes/life/images/lifescapesgall-btn.jpg)";
                vb.style.backgroundRepeat="no-repeat";
                vb.style.backgroundPosition="bottom left";
                vb.style.cursor="arrow";
        }
        else if(/cat=[0-9]/.test(sPage))
        {
                var vb=document.getElementById("lifescape");
                vb.style.backgroundImage="url(./wp-content/themes/life/images/lifescapesgall-btn.jpg)";
                vb.style.backgroundRepeat="no-repeat";
                vb.style.backgroundPosition="bottom left";
                vb.style.cursor="arrow";
        }

	else if(sPage == "lifescapesgallery-vertical.shtml")
	{
		var vb=document.getElementById("lifescape");
		vb.style.backgroundImage="url(./images/lifescapesgall-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
	else if(sPage == "?page_id=42")
	{
		var vb=document.getElementById("contactus");
		vb.style.backgroundImage="url(./wp-content/themes/life/images/contact-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
	else if(sPage == "?page_id=641")
	{
		var vb=document.getElementById("contentphilosophy");
		vb.style.backgroundImage="url(./wp-content/themes/life/images/content-phil-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}

else
{
vb.style.cursor="none";	
}
        var text = document.getElementById('page').innerHTML;

if(text == "Home")
        {
                var vb=document.getElementById("home");
                vb.style.backgroundImage="url(http://www.orangecounty.in/lifescapes/wp-content/themes/life/images/home-btn.jpg)";
                vb.style.backgroundRepeat="no-repeat";
                vb.style.backgroundPosition="bottom left";
                vb.style.cursor="arrow";
        }
        else if(text == "ContactUs")
	{
		var vb=document.getElementById("contactus");
		vb.style.backgroundImage="url(http://www.orangecounty.in/lifescapes/wp-content/themes/life/images/contact-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}  
	else if(text == "Content Philosophy")
	{
		var vb=document.getElementById("contentphilosophy");
		vb.style.backgroundImage="url(http://www.orangecounty.in/lifescapes/wp-content/themes/life/images/content-phil-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}        
        else if(text == "Contributors")
	{
		var vb=document.getElementById("contributors");
		vb.style.backgroundImage="url(http://www.orangecounty.in/lifescapes/wp-content/themes/life/images/contributors-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
        else if(text == "LatestPosts")
	{
		var vb=document.getElementById("lifescape");
		vb.style.backgroundImage="url(http://www.orangecounty.in/lifescapes/wp-content/themes/life/images/lifescapesgall-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}
        else if(text == "Archives")
	{
		var vb=document.getElementById("lifescape");
		vb.style.backgroundImage="url(http://www.orangecounty.in/lifescapes/wp-content/themes/life/images/lifescapesgall-btn.jpg)";
		vb.style.backgroundRepeat="no-repeat";
		vb.style.backgroundPosition="bottom left";
		vb.style.cursor="arrow";
	}

else{
vb.style.cursor="none";
}

}
if(window.addEventListener)
	window.addEventListener("load", runOnLoad, false);
else if(window.attachEvent) window.attachEvent("onload",runOnLoad);
else window.onload = runOnLoad;