var fade = 2; // Opacity of buttons in their 'off' state, out of 10

function 
	toggle_bg (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.bg.src="/media/site/maps/buttons/bg-1.png"; }
		else {    target.style.display="none";
                  document.bg.src="/media/site/maps/buttons/bg-0.png"; } } }
function 
	toggle_bg1 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.bg1.style.opacity="1";
                  document.bg1.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.bg1.style.opacity="0."+fade;
                  document.bg1.style.filter="alpha(opacity="+fade+"0)"; } } }
function 
	toggle_bg2 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.bg2.style.opacity="1";
                  document.bg2.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.bg2.style.opacity="0."+fade;
                  document.bg2.style.filter="alpha(opacity="+fade+"0)"; } } }
function 
	toggle_bg3 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.bg3.style.opacity="1";
                  document.bg3.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.bg3.style.opacity="0."+fade;
                  document.bg3.style.filter="alpha(opacity="+fade+"0)"; } } }
function 
	toggle_te (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.te.src="/media/site/maps/buttons/te-1.png"; }
		else {    target.style.display="none";
                  document.te.src="/media/site/maps/buttons/te-0.png"; } } }
function 
	toggle_te1 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.te1.style.opacity="1";
                  document.te1.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.te1.style.opacity="0."+fade;
                  document.te1.style.filter="alpha(opacity="+fade+"0)"; } } }
function 
	toggle_te2 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.te2.style.opacity="1";
                  document.te2.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.te2.style.opacity="0."+fade;
                  document.te2.style.filter="alpha(opacity="+fade+"0)"; } } }
function 
	toggle_sp (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.sp.src="/media/site/maps/buttons/sp-1.png"; }
		else {    target.style.display="none";
                  document.sp.src="/media/site/maps/buttons/sp-0.png"; } } }
function 
	toggle_sp1 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.sp1.style.opacity="1";
                  document.sp1.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.sp1.style.opacity="0."+fade;
                  document.sp1.style.filter="alpha(opacity="+fade+"0)"; } } }
function 
	toggle_sp2 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.sp2.style.opacity="1";
                  document.sp2.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.sp2.style.opacity="0."+fade;
                  document.sp2.style.filter="alpha(opacity="+fade+"0)"; } } }
function 
	toggle_sp3 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.sp3.style.opacity="1";
                  document.sp3.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.sp3.style.opacity="0."+fade;
                  document.sp3.style.filter="alpha(opacity="+fade+"0)"; } } }
function 
	toggle_fg (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.fg.src="/media/site/maps/buttons/fg-1.png"; }
		else {    target.style.display="none";
                  document.fg.src="/media/site/maps/buttons/fg-0.png"; } } }
function 
	toggle_fg1 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.fg1.style.opacity="1";
                  document.fg1.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.fg1.style.opacity="0."+fade;
                  document.fg1.style.filter="alpha(opacity="+fade+"0)"; } } }
function 
	toggle_fg2 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.fg2.style.opacity="1";
                  document.fg2.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.fg2.style.opacity="0."+fade;
                  document.fg2.style.filter="alpha(opacity="+fade+"0)"; } } }







function 
	toggle_ov (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.ov.src="/media/site/maps/buttons/ov-1.png"; }
		else {    target.style.display="none";
                  document.ov.src="/media/site/maps/buttons/ov-0.png"; } } }
function 
	toggle_ov1 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.ov1.style.opacity="1";
                  document.ov1.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.ov1.style.opacity="0."+fade;
                  document.ov1.style.filter="alpha(opacity="+fade+"0)"; } } }
function 
	toggle_ov2 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.ov2.style.opacity="1";
                  document.ov2.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.ov2.style.opacity="0."+fade;
                  document.ov2.style.filter="alpha(opacity="+fade+"0)"; } } }
function 
	toggle_ov3 (id) {
		if (document.getElementById) {
                  target=document.getElementById(id);
		if (target.style.display=="none") {
                  target.style.display="";
                  document.ov3.style.opacity="1";
                  document.ov3.style.filter="alpha(opacity=100)"; }
		else {    target.style.display="none";
                  document.ov3.style.opacity="0."+fade;
                  document.ov3.style.filter="alpha(opacity="+fade+"0)"; } } }
