/* Release 5.1 */

var bonusBarContent = '' 
	+'<div style="color:#fff;font-family:arial,helvetica;text-align:right;float:right">'
	+'<a href="http://www.united.com/shopforflights?navSource=BonusBar07&linkTitle=bonusbar_shopforflights"><img src="//www.united.com/ual/asset/bonusbar_1.gif" alt="Shop for flights" border="0" \/></a>'
	+'<a href="http://www.united.com/bonusbar_specialdeals?navSource=BonusBar07&linkTitle=bonusbar_specialdeals"><img src="//www.united.com/ual/asset/bonusbar_2.gif" alt="Special deals" border="0" \/></a>'
	+'<a href="https://store.united.com/traveloptions/control/main?navSource=BonusBar07&linkTitle=bonusbar_travelenhancements"><img src="//www.united.com/ual/asset/bonusBarTs.gif" alt="Travel Options" border="0" \/></a>'
	+'</div>';	
document.write(bonusBarContent);
/*
var populateCoLink = function(){	
	var divBonusBar = document.getElementById('ualbonusbar');
	
	if (typeof divBonusBar != 'object') {
		//Nothing to do here, there is no bonus bar available.
		return; 
	}*/
	
	/* Create new containers for our content to live */
	/*var coLinkElement1 = document.createElement('div');
	coLinkElement1.setAttribute('id', 'coBonusLink');
	divBonusBar.appendChild(coLinkElement1);
	
	var coLinkElement2 = document.createElement('span');
	coLinkElement2.setAttribute('id', 'isshow');
	coLinkElement2.setAttribute('class', "isshow");
	coLinkElement2.onmouseover = new Function("ttStates.coShow('coPop')");
	coLinkElement2.onmouseout = new Function("ttStates.coHide('coPop')");
	coLinkElement1.appendChild(coLinkElement2);
	
	var coLinkElement3 = document.createElement('div');
	coLinkElement3.setAttribute('id', 'coPop');
	coLinkElement3.setAttribute('style', 'display: none;');
	coLinkElement1.appendChild(coLinkElement3);*/
	
	/* Create some content for our new containers */
	/*var linkContent = '<img src="//www.united.com/ual/asset/questionMark.gif" /> Looking for Continental Airlines services? Visit</span>&nbsp;<a href="http://www.continental.com/web/en-US/default.aspx" target="_top">continental.com</a>';
	var popContent = 'We are pleased to announce that we have completed the legal closing of the merger with Continental Airlines. For now, each airline will continue to operate separately as we work to integrate our operations.<br><br><b>Continue to visit continental.com</b> to view, modify and check in for Continental-operated flights.<br><br><b>Stay on United\'s website</b> to access United-operated flight information and services.';
	var coLinkElementBody = ''
		+ '<table class="rndTbl coPopup" cellpadding="0" cellspacing="0" border="0">'
		+ '		<thead><tr class="lh13">'
		+ '				<td class="rc tl">&nbsp;</td>'
		+ '				<td class="top"><div class="tpWrap"><div class="tp"></div></div></td>'
		+ '				<td class="rc tr">&nbsp;</td>'
		+ '			</tr></thead>'
		+ '		<tfoot><tr class="lh13"><td class="rc bl"></td><td class="bot"></td><td class="rc br"></td></tr></tfoot>'
		+ '		<tbody><tr>'
		+ '				<td class="rc ml"></td><td class="mid"><div class="content"><div id="innerContent">'
		+ '				</div></div></td>' 
		+ '				<td class="rc mr"></td>'
		+ '			</tr></tbody>' 
		+ '</table>'
		+ '';*/

	/* Load our CSS for this element */
	/*var fileref = document.createElement("link");
	fileref.setAttribute("rel", "stylesheet");
	fileref.setAttribute("type", "text/css");
	fileref.setAttribute("href", '//www.united.com/ual/asset/co_link.css');
	document.getElementsByTagName("head")[0].appendChild(fileref);


	function ttipstates() {
		//main function class
		//parent Class for different states of visual actions on the page
		this.coShow = function(objName) {
			getCOOBJ = window.document.getElementById(objName);
	
			getCOOBJ.style.display = "block";
		};
		
		this.coHide = function(objName) {
			getCOOBJ = window.document.getElementById(objName);
			getCOOBJ.style.display = "none";
		};
	}
	ttStates = new ttipstates();*/
	
	/* Populate the content. We do this AFTER the CSS to prevent a visible flicker */
	/*coLinkElement2.innerHTML = linkContent;
	coLinkElement3.innerHTML = coLinkElementBody;
	document.getElementById('innerContent').innerHTML = popContent;
};

if (window.addEventListener) { //Firefox 
	window.addEventListener("load", populateCoLink, false);
} else if (window.attachEvent) {//IE5+ 
	window.attachEvent("onload", populateCoLink);
}*/
