function embedGLLTel()	{

var profile=getCookie("rememberProfile");
var issecure=getCookie("isSecure");
if(profile!=undefined)
 var parsedValue=profile.split("||");
if (issecure!= undefined && issecure=="true") {
var mpiNumber=parsedValue[0];
var firstName=parsedValue[1];
var lastName=parsedValue[2];
var mpLevel=parsedValue[3];
var mpBal=parsedValue[4];
var homeArpt=parsedValue[5];

var swnlogoutUrl = "https://www.ua2go.com/ci/Logout.jsp"; 
if (document.location.href.indexOf("etc/webcheckin/nonrevenue") != -1) // for NRSA Logins
	{ swnlogoutUrl = "https://www.ua2go.com/etc/webcheckin/nonrevenue/logout.do"; } 


document.write('<div id="swnGLLhello">Hello '+firstName+'</div>'
+'<div id="swnGLLstatus">'+mpLevel+'</div>'
+'<table border="0" cellpadding="0" cellspacing="0" width="100%">'
+'<tr><td valign="top" class="swnRelatedLinksgt">></td><td valign="top" class="swnRelatedLinksitem"><a href="https://www.ua2go.com/ci/Login.jsp?return_to=ff_acct_hist">'+mpBal+' miles</a></td></tr>'
+'<tr><td valign="top" class="swnRelatedLinksgt">></td><td valign="top" class="swnRelatedLinksitem"><a href="http://www.united.com/page/article/0,6722,3831,00.html">Use my miles</a></td></tr>'
+'<tr><td valign="top" class="swnRelatedLinksgt">></td><td valign="top" class="swnRelatedLinksitem"><a href="http://www.united.com/link/0,6746,54065,00.html?navSource=LeftNav07&linkTitle=My+itineraries">View my itineraries</a></td></tr>'
+'</table>'
+'<div id="swnGLLmyproflogout"><a href="https://www.ua2go.com/ci/UpdateProfile.jsp">My profile</a>&nbsp;<span id="swnGLLmyproflogoutPipe">|</span> <a href="'+swnlogoutUrl+'">Log out</a></div>'
);

}
else
{
document.write(
 '<div id="swnGLLid">' 
+'	<span id="swnGLLtext"><img id="swnGLLarrow" src="/ube/images/tmpl/swn_2007_loginarrowright.gif" height="11" width="11" alt="" border="0">&nbsp;&nbsp;<a href="#" onmousedown="toggleGLLTel();">Login</a></span>'
+'</div>'
+'<div id="swnGLLform">'
+'	<form class="nospace" method="POST" id="MileagePlusLgn" action="https://www.ua2go.com/ci/DoLogin.jsp?stamp=NEWCOOKY*itn/ord=NEWREC,itn/air/united&return_to=ff_acct_hist" name="MileagePlus" onSubmit="return ValidateUserId(this);" style="margin:0;" target="_top">'
+'		<div id="swnGLLlogin">Mileage Plus #<br>or email address</div>'
+'		<div id="swnGLLloginbox"><input type="text" id="swnGLLuserid" name="userId"></div>'
+'		<div id="swnGLLpass">Password</div>'
+'		<div id="swnGLLpassbox"><input type="password" id="swnGLLpassword" name="password"></div>'
+'		<div id="swnGLLremem"><input type="checkbox" name="remMP">Remember me</div>'
+'		<div id="swnGLLstartin">Start in</div>'
+'		<div id="swnGLLdrop">'
+'			<select id="swnGLLdropdown" name="sel_return_to">'
+'				<option value="&amp;return_to=ff_acct_hist">Mileage summary</option><option value="&amp;return_to=ref" selected="selected">Shop for flights</option><option value="&amp;return_to=ff_air_inq">Award travel</option><option value="&amp;return_to=viewitin">My itineraries</option>'
+'				<option value="&amp;whereto=UpdateProfile.jsp">Profile</option><option value="&amp;return_to=easy_checkin">EasyCheck-in</option><option value="&amp;return_to=requestupgrade">Upgrades</option><option value="&amp;return_to=refund">Refunds</option>'
+'				<option value="&amp;return_to=rax">Exchanges</option><option value="&amp;return_to=rcc&echoParam=rcchome">Red carpet club</option><option value="&amp;return_to=centerPost">EasyUpdate</option>'
+'			</select>'
+'		</div>'
+'		<div id="swnGLLsubmit"><a href="javascript:void();" onfocus="blur();" onmousedown="MileagePlusLgn.submit();" class="b">&nbsp;<span class="a"><s>Login</s>&nbsp;</span></a></div>'
+'	</form>'
+'</div>'
+'<table border="0" cellpadding="0" cellspacing="0" width="100%" id="swnGLLnotamemtable">'
+'<tr><td valign="top" id="swnGLLnotamem" colspan="2">Not a member?</td></tr>'
+'<tr><td valign="top" class="swnRelatedLinksgt">></td><td valign="top" class="swnRelatedLinksitem"><a href="https://www.ua2go.com/ci/JoinMileagePlus.jsp?jumpLink=%2Fjoinmp">Sign up now</a></td></tr>'
+'</table>'
);

// this is for retriving the mileage plus number.
var rememberME = getCookie("rememberME");
	  if (rememberME!= undefined && rememberME=="E") {
	    var rememberEmail = getCookie("rememberEMAIL");
	  	document.MileagePlus.userId.value=rememberEmail;
	  	document.MileagePlus.remMP.checked=true;
	  }
	  else {
	  	var rememberMP = getCookie("getMP");
	  	if (rememberMP != null) { 
	  		document.MileagePlus.userId.value=rememberMP;
	  		document.MileagePlus.remMP.checked=true;
	  	}
	  }
}
}

function toggleGLLTel() {
document.getElementById('swnGLLform').style.display='inline';
document.getElementById('swnGLLtext').innerHTML='<img id=\'swnGLLarrow\' src=\'/ube/images/tmpl/swn_2007_loginarrowdown.gif\' height=\'11\' width=\'11\' alt=\'\'>&nbsp;&nbsp;Login';
document.getElementById('swnGLLnotamemtable').style.display='none';
}

