function writeHeader(signin_imagePath, signin_altTag, destinationLink) {
    homepageLink   = SESSIONS_SITE ;
    contactus_link = '/portal/scientificsessions/ss/contactus' ;
    logoutFormLink = '/portal/ss_authentication/html/logoutForm.jsp' ;
    newDestinationLink = SESSIONS_SITE + destinationLink;
    if (signin_altTag == 'Sign In') {
        logOut="";
        buttonWidth='120';
    } 
    else {
        logOut="<a href=" + logoutFormLink + "><img src='/includes/images/interface/signout.gif' alt='Log Out' border='0'></a>";
        buttonWidth='45';
    }
document.write('<table width="794" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td colspan="2"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td><a href="http://scientificsessions.org"><img width="410" height="110" border="0" alt="American Heart Association" src="/includes/images/2010Science_1.gif"></a></td><td><table cellspacing="0" cellpadding="0" border="0">');
document.write('  <tbody>');
document.write('    <tr>');
document.write('      <td width="214"><img width="214" height="81" border="0" alt="American Heart Association" src="/includes/images/2010Science_2.gif"></td>');
document.write('      <td width="176" valign="top"><img width="176" height="81" border="0" alt="Scientific Sessions 2010" src="/includes/images/2010Science_3.gif"></td>');
document.write('    </tr>');
document.write('    <tr valign="bottom">');
document.write('              <td width="0"  valign="bottom" align="right" colspan="2" style="background: url(/includes/images/2010Science_4.gif) no-repeat scroll left top transparent"><a href="',contactus_link,'"><img style="margin-top:14px;" src="/includes/images/interface/contactus.gif" width="73" height="15" alt="Contact Us" border="0"></a><a href="',newDestinationLink,'"><img style="margin-top:14px;" src="',signin_imagePath,'" width="73" height="15" alt="',signin_altTag,'" border="0"></a>',logOut,'</td>');
document.write('    </tr>');
document.write('  </tbody>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');
document.write('</tbody>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');
document.write('    <tr>');
document.write('      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('		<tbody>');
document.write('          <tr bgcolor="#99ccff">');
document.write('            <td height="0"><img src="/includes/images/interface/spacer.gif" width="1" height="1"></td>');
document.write('            <td width="100%" height="0" bgcolor="#99ccff"><img src="/includes/images/interface/spacer.gif" width="1" height="1"></td>');
document.write('          </tr>');
document.write('		</tbody>');
document.write('        </table>');
document.write('      </td>');
document.write('    </tr>');
document.write('  </tbody>');
document.write('  </table>');
}
