
aboutoff = new Image(60,98);
aboutoff.src = "images/about-off.gif";

abouton = new Image(60,98);
abouton.src = "images/about-on.gif";
		
aboutms = new Image(60,98);
aboutms.src = "images/about-ms.gif";
	
noiseoff = new Image(60,98);
noiseoff.src = "images/noise-off.gif";

noiseon = new Image(60,98);
noiseon.src = "images/noise-on.gif";
		
noisems = new Image(60,98);
noisems.src = "images/noise-ms.gif";

customoff = new Image(60,98);
customoff.src = "images/custom-off.gif";

customon = new Image(60,98);
customon.src = "images/custom-on.gif";
		
customms = new Image(60,98);
customms.src = "images/custom-ms.gif";

whatoff = new Image(60,98);
whatoff.src = "images/what-off.gif";

whaton = new Image(60,98);
whaton.src = "images/what-on.gif";
		
whatms = new Image(60,98);
whatms.src = "images/what-ms.gif";

requestoff = new Image(60,98);
requestoff.src = "images/request-off.gif";

requeston = new Image(60,98);
requeston.src = "images/request-on.gif";
		
requestms = new Image(60,98);
requestms.src = "images/request-ms.gif";

contactoff = new Image(60,98);
contactoff.src = "images/contact-off.gif";

contacton = new Image(60,98);
contacton.src = "images/contact-on.gif";
		
contactms = new Image(60,98);
contactms.src = "images/contact-ms.gif";

linksoff = new Image(60,98);
linksoff.src = "images/links-off.gif";

linkson = new Image(60,98);
linkson.src = "images/links-on.gif";
		
linksms = new Image(60,98);
linksms.src = "images/links-ms.gif";

currentsection = "home";

function buttonOver(imgName) {

	if (currentsection != imgName) {
		buttonChange(imgName,'ms');
	}
	
}

function buttonOut(imgName) {
	if (currentsection != imgName) {
		buttonChange(imgName,'off');
	}
	
}

function buttonClick (imgName) {
		
  	if (currentsection != imgName) {
		if (currentsection != 'home')
			buttonChange(currentsection,'off');
		currentsection = imgName;
		buttonChange(imgName,'on');
		parent.main.focus();
		
	}
}

function buttonChange(imgName,mode) {
	
	document[imgName].src = eval(imgName + mode + ".src");
	
	if (mode != "ms" && mode != "off") 
	{parent.SwitchedOn = imgName;}
		
}

function init() { 

	  if (parent.SwitchedOn != "") { 
        buttonChange(parent.SwitchedOn,'on');
		currentsection = parent.SwitchedOn;
	  }
} 
