function imgOn(imgName)
{
	document[imgName].src = "gui/"+ imgName + "_over.gif";
}

function imgOff(imgName)
{
	document[imgName].src = "gui/"+ imgName + ".gif"; 
}

//only for maintenance menu "save" and "delete" buttons
function imgOnM(img, ID, bEdit)
{
	var sPrefix = "";
	if (bEdit)
	{
		sPrefix = "../";
	}
	document.getElementById(img + ID).src = sPrefix + "gui/" + img + "_i.gif";
}


function imgOffM(img, ID, bEdit)
{
	var sPrefix = "";
	if (bEdit)
	{
		sPrefix = "../";
	}
	document.getElementById(img + ID).src = sPrefix + "gui/" + img + "_o.gif";
}


function debug(name, value)
{
	alert(name + " : " + value);
	return false;
}


function changeColor(pageName)
{
	var id;

	switch (pageName)
	{
		case "textured-patterned-cast-coloured-glass":
			id = "textures-treatments";		  
			break;
		case "corporate-glass-signage":
			id = "corporate";
			break;			
		case "residential-glass-balustrading":
			id = "residential";
			break;
		case "ecclesiastical-sculpture-artworks":
			id = "ecclesiastical";
			break;
		case "artglass-and-waterfeatures":
			id = "artglass-and-waterfeatures";
			break;
		case "index":
			id = "home";
			break;
		case "architectural-glass-about":
			id = "about-us";
			break;
		case "contact-toucan-forged-glass":
			id = "contact-us";
			break;
		case "textural-glazing-technical-information":
			id = "technical-information";
			break;
		case "new-work":
			id = "new-work";
			break;
		case "download":
			id = "download";
			break;
		//default:
	}
	
	var e = document.getElementById(id);
		
    if(!(e))
    {
         // alert("This change is not possible!");
          return(false);
    }

    e.style.color = "#000000";
    return(true);
}

function NotAvailable()
{
}
