custumerTypeID = "aboutUs";


/* Left-hand navigation menu items:
 */
var navItemArray = [
	new aboutUsNavItem("Investor Relations","http://phx.corporate-ir.net/phoenix.zhtml?c=95539&p=irol-IRHome",1),
	new aboutUsNavItem("Quarterly Financial Data","http://phx.corporate-ir.net/phoenix.zhtml?c=95539&p=irol-quarterlydata"),
	new aboutUsNavItem("Webcasts & Presentations","http://phx.corporate-ir.net/phoenix.zhtml?c=95539&p=irol-presentations"),
	new aboutUsNavItem("Corporate Information","/investor/ir_corpinfo.html"),
	new aboutUsNavItem("Company Reports","/investor/reports.html"),
	new aboutUsNavItem("Financial News","http://bellsouth.mediaroom.com/index.php?s=press_releases&category=683843"),
	new aboutUsNavItem("Shareholder Services","/investor/ir_shareholder.html"),
	new aboutUsNavItem("Stock & Dividend Data","http://www.bellsouth.com/investor/ir_stockdiv.html"),
	new aboutUsNavItem("Contacts","/investor/ir_investorcontacts.html"),
	new aboutUsNavItem("Analyst Coverage","http://phx.corporate-ir.net/phoenix.zhtml?c=95539&p=irol-analysts"),
	new aboutUsNavItem("SEC Filings","http://phx.corporate-ir.net/phoenix.zhtml?c=95539&p=irol-seclanding"),
	new aboutUsNavItem("Legal Notices","/investor/legal2.html"),
	new aboutUsNavItem("Corporate Governance","http://www.bellsouth.com/corporate_governance/",1)
];



// navigation item object constructor
function aboutUsNavItem (text, URL, header) {
	this.text = (text) ? text : false;
	this.URL = (URL) ? URL : false ;
	this.header = (header) ? true : false ;
	this.externalizeURL = function() {
		if(this.URL) {
			if(this.URL.indexOf('http') == 0) return true;
			this.URL = 'http://www.bellsouth.com' + this.URL;
			return true;
		}
		return false;
	}
}






/* Generation of left-hand navigation menu:
 */
function writeAboutUsNav(external) {
	var str = '';
	// nav item list:
	str += '<div id="AboutUsNavigation">';
	for(var i=0; i<navItemArray.length; i++) {
		var itm = navItemArray[i];

		if(itm.header) { // if item is a header...
			str += '<h1';
			if(i == 0) str += ' class="firstNavHeader"';
			else if(i == navItemArray.length-1) str += ' class="lastNavHeader"';
			str += '><a href="' + itm.URL + '">' + itm.text + '</a></h1>';
		} else { // if item is not a header...
			if(navItemArray[i-1].header) { // if this is the first link under a header...
				str += '<ul id="AboutUsSiteNav">'; // start list
			}
			if(external) itm.externalizeURL();
			str += '<li><a href="' + itm.URL + '">';
			str += itm.text;
			str += '</a></li>';
			if(navItemArray.length > i+1 && navItemArray[i+1].header) { // if this is the last link before a header...
				str += '</ul>'; // end list
			}
		}
	}

	str += '</div>'; // end AboutUsNavigation
	// stock ticker image:
	str += '<div id="InvestorStockTicker"><a href="http://www.bellsouth.com/investor/ir_stockdiv.html"><img src="http://media.corporate-ir.net/media_files/IROL/95/95539/QI/bls_qi_7.gif" border="0"></a></div>';
	document.write(str);
}








/* Footer text generation:
 */

function writeIRFooter() {
	document.write('<div id="InvestorFooter">');
	document.write('<p>This site contains forward looking statements and delayed stock quotes. View our <a href="http://www.bellsouth.com/investor/legal2.html#safeharbor">Safe Harbor Notice</a> and <a href="http://www.bellsouth.com/investor/legal2.html#quotedisclaimer">Stock Quote Disclaimer</a> for more details.</p>');
	document.write('<p><a href="http://www.bellsouth.com/legal.html">Legal Notices and Privacy Statement</a> | <a href="http://ethics.bellsouth.com/">Ethics, Compliance and Business Conduct</a></p>');
	document.write('<p>Copyright 2004, BellSouth. All Rights Reserved.</p>');
	document.write('</div>');
}







/* openFile opens a url from a specified select field
 * Note: the field must be contained within a form with a name and id of "FunctionForm"
 * 	list : string = the name and id of the select list
 * 	altMsg : string = alternative message to display to user if they click the button without making a selection
 *	inSameWindow : boolean (false by default) - open the url in the same window unless the url contains '.pdf', '.doc', or '.xls'
 */

function openFile(list,altMsg,inSameWindow) {
	if(!document.FunctionForm || !document.FunctionForm.elements.length) return false;
	var f = eval("document.FunctionForm.elements['" + list + "']");
	if(!f.selectedIndex) {
		var msg = (altMsg) ? altMsg : 'Please select an option from the list.';
		alert(msg);
		return false;
	} else {
		var url = f.options[f.selectedIndex].value;
		var isFile = (url.indexOf('.pdf') > 1 || url.indexOf('.doc') > 1 || url.indexOf('.xls') > 1);
		if(inSameWindow && !isFile) window.location = url;
		else 	window.open(url);
	}
	return false;
}









/* Popup Windows 
 * 
 * To open a URL in a Popup Window, use this line in the HTML
 * <a href="JavaScript:void popUp(URL,windowWidth,windowHeight)"></a>
 * or
 * <a href=# onclick="popUp(URL,windowWidth,windowHeight); return false;"></a>
 * 
 * If the window should be resizable, have scrollbars and a status bar, 
 * add an additional argument of 1 or true to the end as follows:
 * <a href="JavaScript:void popUp(URL,windowWidth,windowHeight,1)"></a>
 * or
 * <a href=# onclick="popUp(URL,windowWidth,windowHeight,1); return false;"></a>
 */

var popup = null;

function popUp(page,width,height,secondaryFeatures) { 
 	if (popup && !popup.closed) popup.close(); 
	popup = null;
	var theTop = (screen.height/2)-(height/2);
 	var theLeft = (screen.width/2)-(width/2);
 	var features = "top=" + theTop + ",left=" + theLeft + ",height=" + height + ",width=" + width;
 	if (secondaryFeatures) features += ",resizable,scrollbars,status";
	popup = window.open(page,"popup",features);
	popup.focus();
 }












/* Leaving BellSouth Warning
 *
 * function for presenting user with popup indicating that they're
 * leaving the site before continuing to an external page.
 *
 * Use the following syntax in the HTML:
 * <a href=# onclick="javascript:exitingWin(URL); return false;"></a>
 */

function exitingWin(loc) {
	var destination = 'http://www.bellsouth.com/investor/leaving.html?' + escape(loc);
	window.open(destination,"Leave","top=190,left=180,width=400,height=180");
}






/* deprecated:  */
function confirmExit(msg) {
	return true;
}