
<!-- Top Buttons -->

<table width=100% border=0 cellpadding=2 cellspacing=0>
<TR>


<script language="JavaScript"><!--
// button functions
var helpPage;

function openMenu(){
	self.location.href="<!--IMAIL.UserKey-->/menu.<!--IMAIL.Number-->.cgi?mbx=<!--IMAIL.CurrentMailbox-->"
}

function viewMail(){
	self.location.href="<!--IMAIL.UserKey-->/readmail.<!--IMAIL.Number-->.cgi?mbx=<!--IMAIL.CurrentMailbox-->&msg=<!--IMAIL.CurrentUnsortedMessageNum-->"
}

function composeMessage(){
	self.location.href="<!--IMAIL.UserKey-->/newmsg.<!--IMAIL.Number-->.cgi?uid=<!--IMAIL.UserID-->&mbx=<!--IMAIL.CurrentMailBox-->"
}

function searchMessages(){
	self.location.href="<!--IMAIL.UserKey-->/searchmail.<!--IMAIL.Number-->.cgi?uid=<!--IMAIL.UserID-->&mbx=<!--IMAIL.CurrentMailBox-->&msg=1"
}

function logOff(){
	self.location.href="<!--IMAIL.UserKey-->/logoff.<!--IMAIL.Number-->.cgi?uid=<!--IMAIL.UserID-->"
}	


<!--IMAIL.BeginIfUserIcalendarLink-->
function openCalendar(){
	var myWebMailHost=self.location.hostname
	<!--IMAIL.BeginSSL-->
	  <!--IMAIL.BeginIfCurrentDomainIsAVirtualDomain-->
	    hostPath="https://"+myWebMailHost+":<!--IMAIL.ICalSSLServerPort-->/";
	  <!--IMAIL.ElseBeginIfCurrentDomainIsAVirtualDomain-->
	    hostPath="https://"+myWebMailHost+":<!--IMAIL.ICalSSLServerPort-->/";
	  <!--IMAIL.EndBeginIfCurrentDomainIsAVirtualDomain-->
	<!--IMAIL.ElseBeginSSL-->
	  <!--IMAIL.BeginIfCurrentDomainIsAVirtualDomain-->
	    hostPath="http://"+myWebMailHost+":<!--IMAIL.ICalServerPort-->/";
	  <!--IMAIL.ElseBeginIfCurrentDomainIsAVirtualDomain-->
	    hostPath="http://"+myWebMailHost+":<!--IMAIL.ICalServerPort-->/";
	  <!--IMAIL.EndBeginIfCurrentDomainIsAVirtualDomain-->
	 <!--IMAIL.EndBeginSSL-->
	//relativePath="<!--IMail.UserKey-->/cancelfrompreffile.<!--IMail.Number-->.cgi?&UI_CurrCal=<!--ICAL.CurrentCalendar-->&UI_CurrentView=<!--ICAL.CurrentView-->&UI_Date=<!--ICAL.UserYear--><!--ICAL.UserMonth--><!--ICAL.UserDay-->&UI_Search=<!--ICAL.SearchString-->"

	relativePath="ical.cgi?&App=ICalMsg&<!--IMAIL.UserParameters-->"
	var fullCalendarPath=hostPath+relativePath
	
	<!--IMAIL.BeginIfIcalNewWindowOption-->	
		var temp=window.open(fullCalendarPath,'Calendar','width='+screen.width-80+',height='+screen.height-100+',status,toolbar,menubar,scrollbars,resizable')
	<!--IMAIL.ElseBeginIfIcalNewWindowOption-->
		self.location.href=fullCalendarPath
	<!--IMAIL.EndBeginIfIcalNewWindowOption-->
	
}
<!--IMAIL.EndBeginIfUserIcalendarLink-->
	
var myButtonLabel = new Array()
var myButtonHelp = new Array()
var myButtonAction = new Array()
var myButtonPage = new Array()

var i=1

myButtonLabel[i]=X.Menu
myButtonHelp[i]=X.MenuHlp
myButtonAction[i]="openMenu();"
myButtonPage[i]="menu"
i++

myButtonLabel[i]=X.ViewMail
myButtonHelp[i]=X.ViewMailHlp
myButtonAction[i]="viewMail();"
myButtonPage[i]="viewmail"
i++

myButtonLabel[i]=X.Compose
myButtonHelp[i]=X.CompNewMsg
myButtonAction[i]="composeMessage();"
myButtonPage[i]="compose"
i++

myButtonLabel[i]=X.Srch
myButtonHelp[i]=X.SrchMsgs
myButtonAction[i]="searchMessages();"
myButtonPage[i]="search"
i++

<!--IMAIL.BeginIfUserIcalendarLink-->
myButtonLabel[i]=X.Calendar
myButtonHelp[i]=X.OpenPersonalCal
myButtonAction[i]="openCalendar();"
myButtonPage[i]="calendar"
i++
<!--IMAIL.EndBeginIfUserIcalendarLink-->

myButtonLabel[i]=X.Help
myButtonHelp[i]=X.HlpTopics
myButtonAction[i]="openHelp(helpPage);"
myButtonPage[i]="help"
i++

myButtonLabel[i]=X.LogOff
myButtonHelp[i]=X.LogOffWebmail
myButtonAction[i]="logOff();"
myButtonPage[i]="logoff"
i++

var x="";
var myButtonWidth=parseInt(100/(myButtonLabel.length-1))

if (!myPage || myPage==null) var myPage=''

for(var i=1;i<myButtonLabel.length;i++){
	x+='<TD width="'+myButtonWidth+'%" align=center valign=middle nowrap '
	if (myPage==myButtonPage[i]){
		x+='class="Chosen" '
	}else{
		x+='class="Normal" '
		x+='onMouseOver="this.className=\'Mouseover\';self.status=\''+myButtonHelp[i]+'\'; return true" '
		x+='onMouseOut="this.className=\'Normal\';self.status=window.defaultStatus; return true" '
		x+='onMouseDown="this.className=\'Click\';" '
		x+='title="'+myButtonHelp[i]+'" '
		if (navigator.userAgent.indexOf("MSIE")>=0){
			x+='onClick="'+myButtonAction[i]+'"'
		}else{
			x+='><font face="Verdana, Arial, Helvetica">'
			x+='<A class=button HREF="javascript:'+myButtonAction[i]+'" ';
		x+='onMouseOver="self.status=\''+myButtonHelp[i]+'\';return true" ';
		x+='onMouseOut="self.status=window.defaultStatus; return true" ';
		}
	}
	x+='>'+myButtonLabel[i]+'</a></A></TD>'
}

document.write(x);

//-->
</script>

</tr>
</table>

</td></tr>
</table>
<!-- End Header Menu -->

