// JavaScript Document
function activateAddy(obj){
  address_switch=new Array;
  address_switch=["address_one", "address_two"];
  //alert(home_menu.length);
  for(i=1; i<=address_switch.length; i++){
	if(document.getElementById(obj)==document.getElementById(address_switch[i-1])){
      document.getElementById(address_switch[i-1]).style.display = '';
	}else{
      document.getElementById(address_switch[i-1]).style.display = 'none';
	}
  }
}


d=document;

function showHide(elementid){ 
  if (document.getElementById(elementid).style.display == 'none'){ 
    document.getElementById(elementid).style.display = '';
  } else { 
    document.getElementById(elementid).style.display = 'none'; 
  } 
}

function launchPlayer(messageID){
	if(playerWin){
		playerWin.close();
	}
	
	var playerWin=window.open('/media_player.asp?messageID=' + messageID,playerWin,'width=550,height=400,toolbar=false,resizable=false,menubar=false,scrollbars=false,status=false');
	//return true;
}


function killAnnounce(){
  d.getElementById('fullscreen').style.display='none'
  d.getElementById('screen').style.display='none'
}


//sfHover courtesy of http://www.htmldog.com (http://www.htmldog.com/articles/suckerfish/dropdowns/)
sfHover = function() {
	var sfEls = d.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

