function logout()  {
document.cookie="displayName=; path=/; expires=0"
document.location.href='/index.htm'
}
function getCookie(name) {
	cname = name + "=";
	dc = document.cookie;
	if (dc.length > 0) {
		begin = dc.indexOf(cname);
		if (begin != -1) {
			begin += cname.length;
			end = dc.indexOf(";", begin);
			if (end == -1) end = dc.length;
				return unescape(dc.substring(begin, end));        
		}
	}
	return null;
}
user_cookie = getCookie('ubber2452112.181');
if(''==user_cookie ||  null==user_cookie)
	user=''
else
	user=user_cookie.split("&")[2];
function ranElement(img) {
  index=Math.floor((Math.random() * img.length))
  if (index==img.length)
  	index=0
  return(img[index])
}
user=getCookie('displayName')
if (user==null) user=''
days= new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
months=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
function printDate()  {
	myDate = new Date
	document.write(days[myDate.getDay()]+"&nbsp;"+months[myDate.getMonth()]+"&nbsp;"+myDate.getDate()+"&nbsp;"+myDate.getFullYear())
}
mens=new Array('about us','solutions','products','clients','partners','news','events','careers','approach','ideas','forum')
menslnk=new Array('/aboutus/index.htm','/solutions/index.htm','/products/index.htm','/clients/index.htm','/partners/index.htm','/news/index.htm','/events/index.htm','/careers/index.htm','/approach/index.htm','/ideas/index.htm','http://www.e2epartners.com/cgi-bin/ultimatebb.cgi')
function WriteMenu(subPage)  {
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>')
	for (i=1; i<12; ++i)  {
		if (subPage==i) cls="tdActive"; else cls="tdDeepBlue"
		document.write('<td class="'+cls+'" nowrap><div class="MenuButton"><a href="'+menslnk[i-1]+'">'+mens[i-1]+'</a></div></td>\
<td class="td000"><img src="/images/spacer.gif" alt="" width="1" height="25" border="0"></td>')
	}
	if (user=='')  {
		inout='login';
		iolink='/login/index.htm' //'/cgi-bin/ultimatebb.cgi?ubb=login'
	} else {
		inout='log out'
		iolink='javascript:logout()' //'/cgi-bin/ultimatebb.cgi?ubb=logoff'
	}
	if (subPage==12)	{
		s='<td class="tdActiveR" width="100%"><div class="MenuButton"><a href="'+iolink+'">'+inout+'</a>&nbsp;</div></td>'
		}
	else	{
		s='<td class="tdDeepBlues" width="100%"><div class="MenuButton"><a href="'+iolink+'">'+inout+'</a>&nbsp;</div></td>'
		}
	document.write(s+'</tr></table>')
}
function WriteLogo()  {
document.write('<table border=0 cellPadding=0 cellSpacing=0 width="100%">')
document.write('	<tr>')
document.write('		<td class=tdfff rowspan=2>')
document.write('			<A href="/index.htm"><div class=logo><img border=0 alt="e2e Partners" height=59 src="/images/e2ehome.gif" width=317></div></A>')
document.write('		</td>')
document.write('		<td rowspan=2 width=1 bgcolor="#000000"><img width=1 height=1 src="/images/spacer.gif"></td>')
document.write('		<td style="PADDING-LEFT:12px" class="tde2eBizSol3">')
document.write('					<form class="tde2eBizSol3" action="null">')
document.write('					<select onChange="setLink(this.selectedIndex)">')
document.write('					<option selected>United States</option>')
document.write('					<option>Global Websites&nbsp;&nbsp;&nbsp;</option>')
document.write('					<option>Asia Pacific</option>')
document.write('					<option>Australia</option>')
document.write('					<option>Belgium</option>')
document.write('					<option>Canada</option>')
document.write('					<option>China</option>')
document.write('					<option>Denmark</option>')
document.write('					<option>Finland</option>')
document.write('					<option>France</option>')
document.write('					<option>Germany</option>')
document.write('					<option>Hong Kong</option>')
document.write('					<option>Hungary</option>')
document.write('					<option>India</option>')
document.write('					<option>Ireland</option>')
document.write('					<option>Italy</option>')
document.write('					<option>Japan</option>')
document.write('					<option>Korea</option>')
document.write('					<option>Malaysia</option>')
document.write('					<option>New Zealand</option>')
document.write('					<option>Norway</option>')
document.write('					<option>Poland</option>')
document.write('					<option>Portugal</option>')
document.write('					<option>Singapore</option>')
document.write('					<option>Spain</option>')
document.write('					<option>Sweden</option>')
document.write('					<option>Switzerland</option>')
document.write('					<option>The Netherlands</option>')
document.write('					<option>United Kingdom</option>')
document.write('					</select></form>')
document.write('				</td>')
document.write(' 		<td width=100% class="tde2eBizSol3">')
document.write('			<form class="tde2eBizSol3"  align="right" id="form1" name="form1" action="/servlet/Search" method="post">')
document.write('			<input align="right" name="SearchString" id="SearchString" type="text" size="24" maxlength="35">&nbsp;&nbsp;<a style="VERTICAL-ALIGN: middle" href="/search/index.htm"><img border=0 align="texttop" src="/images/ar2.gif" width=16 height=15>search</a>')
document.write('			</form>')
document.write('		</td>')
document.write('	</TR>')
document.write('	<TR><td colspan=2 bgcolor="#d0d0d0" width=100%><table width=100% border=0 cellPadding=0 cellSpacing=0><tr>')
document.write('		<td style="PADDING-LEFT:12"><div class="tdNav2"><A href="/index.htm">home</A></div></td>')
document.write('		<td nowrap><div class="tdNav2"><A href="/sitemap/index.htm">site map</A></div></td>')
document.write('		<td><div class="tdNav2"><A href="/help/index.htm">help</A></div></td>')
document.write('		<td nowrap><div class="tdNav2"><A href="/contactus/index.htm">contact us</A></div></td>')
document.write('		<td width=100% style="TEXT-ALIGN: right; PADDING-RIGHT:12" class="OffRed"><b>'+user+'</b></td>');
document.write('	</TR></table></td></tr>')
document.write('</TABLE>')
}
function oWriteLogo()  {
document.write('<table border=0 cellPadding=0 cellSpacing=0 width="100%">')
document.write('	<tr>')
document.write('		<td class=tdfff rowspan=2>')
document.write('			<A href="/index.htm"><div class=logo><img border=0 alt="e2e Partners" height=59 src="/images/e2ehome.gif" width=317></div></A>')
document.write('		</td>')
document.write('		<td rowspan=2 width=1 bgcolor="#000000"><img width=1 height=1 src="/images/spacer.gif"></td>')
document.write(' 		<td width=100% class="tde2eBizSol3">')
document.write('			<form class="tde2eBizSol3"  align="right" id="form1" name="form1" action="/servlet/Search" method="post">')
document.write('			<a valign=center href="/search/index.htm">search</a>&nbsp;&nbsp;<input align="right" name="SearchString" id="SearchString" type="text" size="14" maxlength="35">')
document.write('			</form>')
document.write('		</td>')
document.write('		<td class="tde2eBizSol3">')
document.write('					<form class="tde2eBizSol3" action="null">')
document.write('					<select onChange="setLink(this.selectedIndex)">')
document.write('					<option selected>Global Websites&nbsp;&nbsp;&nbsp;</option>')
document.write('					<option>Asia Pacific</option>')
document.write('					<option>Australia</option>')
document.write('					<option>Belgium</option>')
document.write('					<option>Canada</option>')
document.write('					<option>China</option>')
document.write('					<option>Denmark</option>')
document.write('					<option>Finland</option>')
document.write('					<option>France</option>')
document.write('					<option>Germany</option>')
document.write('					<option>Hong Kong</option>')
document.write('					<option>Hungary</option>')
document.write('					<option>India</option>')
document.write('					<option>Ireland</option>')
document.write('					<option>Italy</option>')
document.write('					<option>Japan</option>')
document.write('					<option>Korea</option>')
document.write('					<option>Malaysia</option>')
document.write('					<option>New Zealand</option>')
document.write('					<option>Norway</option>')
document.write('					<option>Poland</option>')
document.write('					<option>Portugal</option>')
document.write('					<option>Singapore</option>')
document.write('					<option>Spain</option>')
document.write('					<option>Sweden</option>')
document.write('					<option>Switzerland</option>')
document.write('					<option>The Netherlands</option>')
document.write('					<option>United Kingdom</option>')
document.write('					<option>United States</option>')
document.write('					</select></form>')
document.write('				</td>')
document.write('	</TR>')
document.write('	<TR><td colspan=2 bgcolor="#d0d0d0"><table border=0 cellPadding=0 cellSpacing=0><tr>')
document.write('		<td style="PADDING-LEFT:12"><div class="tdNav2"><A href="/index.htm">home</A></div></td>')
document.write('		<td nowrap><div class="tdNav2"><A href="/sitemap/index.htm">site map</A></div></td>')
document.write('		<td><div class="tdNav2"><A href="/help/index.htm">help</A></div></td>')
document.write('		<td><div class="tdNav2"><A href="/contactus/index.htm">contact us</A></div></td>')
document.write('	</TR></table></td><td></td></tr>')
document.write('</TABLE>')
}
function WriteNavBar(aryLinks,aryPages) {
	document.write('<table border=0 cellPadding=0 cellSpacing=0 width="100%">')
	document.write('	<TBODY>')
	document.write('		<TR  class=td000>')
	document.write('			<td nowrap width=400 class="tdNavPath">')
	var length = aryLinks.length
	for (i=0; i<length; ++i)  {
		document.write('<a href="'+aryLinks[i]+'">'+aryPages[i]+'&nbsp;&raquo;</a>&nbsp;')
	}
	if (length!=0)
		document.write(aryPages[i]+'</td>')
	else
		document.write('</td>')
	document.write('    		<td width=50>&nbsp;</td>')
	document.write('    		<td class=tdDate width="100%">')
	printDate()
	document.write('</td>')
	document.write('		</TR>')
	document.write('	</TBODY>')
	document.write('</TABLE>')
}
function WriteMiniNav(aryLinks,aryText,index)  {
	var length = aryText.length
	for (i=0; i<length; ++i)  {
		if (i==index)
			document.write('<b><img border=0 align="texttop" src="/images/ar2.gif" width=16 height=15>'+aryText[i]+'</b><br>')
		else
			document.write('<a href="'+aryLinks[i]+'"><img align="texttop" border="0"  src="/images/ar2.gif" width=16 height=15>'+aryText[i]+'</a><br>')
	}
}
function WriteCopyright(tdClass,divClass)  {
document.write('    <td class="'+tdClass+'">')
document.write('      <DIV class="'+divClass+'">©2008 e2e Partners, Inc. <BR>All rights reserved.<BR>')
document.write('	  +1 (314) 477 3237<BR>')
document.write('      <A href="/legal/index.htm">Terms of Use</A> | <A href="/legal/privacy.htm">Privacy Policy</A>')
document.write('	  </DIV></td>')
}
function SepHoriz(color)  {
document.write('<tr><td bgcolor="'+color+'"><img border=0 alt="" width=1 height=1 src="/images/spacer.gif"></td></tr>')
}
function setLink(num)  {
	if (num == 0) {self.location="#"}
	else if (num == 27) {self.location="/index.htm"}
	else if (num == 28) {self.location="/index.htm"}
	else self.location="/index.fr.htm"
}
var ranNum=Math.floor((Math.random() * 32767))
if (ranNum==32767)
  	ranNum=0

