

function checkin(id) { 
if (document.getElementById) // NN6, IE5, Opera 5
  {return document.getElementById([id]);}
else if (document.all) // IE4
  {return document.all[id];}
else if (document.layers) // NN4
  {return document.layers[id];} //10
}

function mapdiv(busid,bussetVisible) {
	var buspopObj = checkin(busid);
  if (bussetVisible == hidden) {
	buspopObj.style.visibility = hidden;
     }
  if (bussetVisible == visible) {
	buspopObj.style.top = 75;
	buspopObj.style.visibility = visible;
       }
}

function mapover(id,toggle) {
      var mapObj = checkin("map");
	if (toggle == on) {
		mapObj.src = ('/pcj/busmaps/map_' + id + '.gif');
	}
	if (toggle == off) {
		mapObj.src = ('/pcj/busmaps/map_blank.gif');
	}
}

function overlay(overlayid, toggle) {
	var overlaypopObj = checkin(overlayid);
//	overlaypopObj.style.visibility = visible;
	if (toggle == on) {
	overlaypopObj.style.visibility = visible;
     }
	if (toggle == off) {
	overlaypopObj.style.visibility = hidden;
     }
}