// Menu Rollover

function roll(obj_DivObj, bool_Over) {
	obj_DivObj.className = (bool_Over)?'Menu_Over':'Menu_Out';
}


// Open a new window of a certain size.
// Usage: <a href="javascript:openWindow('images/filename.jpg', '570', '220');"></a>

function openWindow(url, iwidth, iheight) {
  var params = 'resizable,width='+iwidth+',height='+iheight
  popupWin = window.open(url, 'popup', params)
  popupWin.focus()
}


// Closes the popup when focus is lost
// Usage: In body Tag: onfocus="KillPop()"

function KillPop() {
  if (self.popupWin) {
    self.popupWin.close()
  }
}


// Generates email address "safe" from harvesters
// <SCRIPT language=javascript>generateAntiSpiderEmail('user', 'domain', 'tld', 'display_text');</SCRIPT>

function generateAntiSpiderEmail(Username, DomainName, TLD, Text, ExtraTagStr) {
	Address = Username + "&#64;" + DomainName + "." + TLD;

	if (!(Text)) {DisplayText = Address}
	else {DisplayText = Text};

	document.write("<a href=\"ma" + "il" + "to:" + Address + "\"" + ExtraTagStr + ">" + DisplayText + "</a>");
}


// Display/Hide Bus. Dir info
function toggleBusDirInfo(InfoContainerID) {
	InfoContainerObj = document.getElementById(InfoContainerID);
	InfoContainerObj.style.display = (InfoContainerObj.style.display == 'none' || !InfoContainerObj.style.display)?'block':'none';
}