/*   All Javascript code is Copyright 2009 HunterGD @ HunterGD.com   *
*  Do not use or borrow my code without giving credit to me, at the  *
*  least, please leave this header with the code.                   */

naviBG = new Image();
naviBG.src = "/images/navi-bg.gif";

naviBGHover = new Image();
naviBGHover.src = "/images/navi-bg-hover.gif";

bulbDim = new Image();
bulbDim.src = "/images/lightbulb-dim.png";

bulbBright = new Image();
bulbBright.src = "/images/lightbulb.png";

if (location.pathname == "/home") { var currentBulb = "homeButtonImg"; }
if (location.pathname == "/services") { var currentBulb = "servicesButtonImg"; }
if (location.pathname == "/testimonials") { var currentBulb = "testimonialsButtonImg"; }
if (location.pathname == "/pphotos") { var currentBulb = "pphotosButtonImg"; }
if (location.pathname == "/about") { var currentBulb = "aboutButtonImg"; }
if (location.pathname == "/estimate") { var currentBulb = "estimateButtonImg"; }
if (location.pathname == "/contact") { var currentBulb = "contactButtonImg"; }
if (location.pathname == "/maintenance") { var currentBulb = "maintenanceButtonImg"; }
if (location.pathname == "/mphotos") { var currentBulb = "mphotosButtonImg"; }

function currentBulbSet()
{
	document.getElementById(currentBulb).src="/images/lightbulb.png";
}

function bulbChange(current)
{
	document.getElementById(current + 'Img').src="/images/lightbulb.png";
}

function bulbChangeDim(current)
{
	if (current == "homeButton" && location.pathname == "/home")
	{ return false }
	if (current == "servicesButton" && location.pathname == "/services")
	{ return false }
	if (current == "testimonialsButton" && location.pathname == "/testimonials")
	{ return false }
	if (current == "pphotosButton" && location.pathname == "/pphotos")
	{ return false }
	if (current == "aboutButton" && location.pathname == "/about")
	{ return false }
	if (current == "estimateButton" && location.pathname == "/estimate")
	{ return false }
	if (current == "contactButton" && location.pathname == "/contact")
	{ return false }
	if (current == "maintenanceButton" && location.pathname == "/maintenance")
	{ return false }
	if (current == "mphotosButton" && location.pathname == "/mphotos")
	{ return false }
	else
	{
		document.getElementById(current + 'Img').src="/images/lightbulb-dim.png";
	}
}
