// topbanner

function writeTopBanner(){
	var tophead = '			<table width="770" border="0" cellspacing="0" cellpadding="0">';
		tophead += '  			<tr> ';
		tophead += '    			<td width="11" bgcolor="#FF0000"><img src="http://www.bearstearns.com/bscportal/images/nav/accntbar.gif" width="11" height="70"></td>';
		tophead += '    			<td width="155"><p><a href="Info.do?left=Bear%20Stearns"><img src="http://www.bearstearns.com/bscportal/images/nav/tranlogo_black.gif" width="144" height="70" border="0" alt="Bear Stearns"></a></p></td>';
		tophead += '			    <td valign="top" width="615">';
		tophead += '						<table width="100%" border="0" cellspacing="0" cellpadding="0">';
		tophead += '        			<tr> ';
		tophead += '          			<td colspan="2" align="right" class="topheader"><img src="http://www.bearstearns.com/bscportal/images/space_clear.gif" width="615" height="6"></td>';
		tophead += '        			</tr>';
		tophead += '        			<tr valign="top"> ';
		tophead += '          			<td><img src="http://www.bearstearns.com/bscportal/images/space_clear.gif" width="6" height="6"></td>';
		tophead += '          			<td align="right" class="topheader"><a href="Info.do?left=Bear%20Stearns"><img src="http://www.bearstearns.com/bscportal/images/nav/home.gif" width="36" height="13" border="0"></a><img src="http://www.bearstearns.com/bscportal/images/nav/vert_div.gif" width="1" height="13" hspace="6"><a href="Info.do?left=Bear%20Stearns&top=Site%20Map&notop=y"><img src="http://www.bearstearns.com/bscportal/images/nav/site_map.gif" width="50" height="13" border="0"></a><img src="http://www.bearstearns.com/bscportal/images/nav/vert_div.gif" width="1" height="13" hspace="6" align="absmiddle"><a href="Info.do?left=Bear%20Stearns&top=Contact%20Us&notop=y"><img src="http://www.bearstearns.com/bscportal/images/nav/contact_us.gif" width="61" height="13" border="0"></a><img src="http://www.bearstearns.com/bscportal/images/nav/vert_div.gif" width="1" height="13" hspace="6"><a href="Info.do?left=Bear%20Stearns&top=Feedback&notop=y" style="font-family:verdana; fontsize:9px; color:#666666"><img src="http://www.bearstearns.com/bscportal/images/nav/feedback.gif" width="53" height="13" border="0" hspace="1" alt="Feedback"></a>'; 
		//<img src="/bscportal/images/nav/vert_div.gif" width="1" height="13" hspace="6"><img src="/bscportal/images/nav/search.gif" width="57" height="14">		
		if (loginvar == "yes") {
			tophead += '<img src="http://www.bearstearns.com/bscportal/images/nav/vert_div.gif" width="1" height="13"><a href="javascript:confirmClick(\'LogoutBear.do\', \'Are you sure you want to log out?\')"><img src="http://www.bearstearns.com/bscportal/images/nav/logout.gif" width="64" height="19" border="0" hspace="12"></a></td>';
			//tophead += '<iframe src="http://68.161.237.132:8100/bh/check.aspx?webshell=' + getCookie("WebShell") + '" id="ifrbhawk" style="left:200px; top:0px; width:1px; height:1px" scrolling="no" frameborder="0"></iframe>';
		} else {
			tophead += '</td>';
		}
		tophead += '        			</tr>';
		tophead += '      			</table></td>';
		tophead += '  			</tr>';
		tophead += '			</table>';
	
	document.write(tophead);
}

function include_script(script_filename) {
	document.write('<scr'+'ipt type="text/javascript" src="'+ script_filename +'"><\/scr'+'ipt>');
	return false;

}

include_script("http://www.bearstearns.com/includes/scripts/footer.js");

function writeFooter(){
	var foot = ' <table width="100%" border="0" cellspacing="0" cellpadding="0">';
			foot += '  	<tr align="center" class="footerbg"> ';
			foot += '     <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">';
			foot += '       <tr>';
			//foot += '         <td valign=top align=center class="footer"><a href="javascript:MM_openBrWindow(\'http://www.bearstearns.com/bscportal/htmlnew/disclaimers/TermsContent.htm\', \'disclaimer\', \'width=800,height=600,scrollbars=yes,toolbar=yes\')"><span class="footerlink">Access Agreement</span></a> | <a href="javascript:MM_openBrWindow(\'http://www.bearstearns.com/bscportal/htmlnew/disclaimers/PrivacyPolicy.htm\', \'disclaimer\', \'width=800,height=600,scrollbars=yes,toolbar=yes\')"><span class="footerlink">Privacy Policy</span></a> | <a href="javascript:MM_openBrWindow(\'http://www.bearstearns.com/bscportal/htmlnew/miscellany/patriot_act.htm\', \'disclaimer\', \'width=800,height=600,scrollbars=yes,toolbar=yes\')"><span class="footerlink">USA PATRIOT Act</span></a><br>';
			foot += '         <td valign=top align=center class="footer"><a href="javascript:MM_openBrWindow(\'http://www.bearstearns.com/bear/bsportal/TermsAndConditions.do\', \'disclaimer\', \'width=800,height=600,scrollbars=yes,toolbar=yes\')"><span class="footerlink">Access Agreement</span></a> | <a href="javascript:MM_openBrWindow(\'http://www.bearstearns.com/bscportal/htmlnew/disclaimers/PrivacyPolicy.htm\', \'disclaimer\', \'width=800,height=600,scrollbars=yes,toolbar=yes\')"><span class="footerlink">Privacy Policy</span></a> | <a href="javascript:MM_openBrWindow(\'http://www.bearstearns.com/bscportal/htmlnew/miscellany/patriot_act.htm\', \'disclaimer\', \'width=800,height=600,scrollbars=yes,toolbar=yes\')"><span class="footerlink">USA PATRIOT Act</span></a> | <a href="javascript:MM_openBrWindow(\'http://www.bearstearns.com/bscportal/htmlnew/disclaimers/business_continuity.htm\', \'disclaimer\', \'width=800,height=600,scrollbars=yes,toolbar=yes\')"><span class="footerlink">Business Continuity Plan Disclosure</span></a> | <a href="javascript:MM_openBrWindow(\'http://www.bearstearns.com/bscportal/htmlnew/disclaimers/phishing.htm\', \'disclaimer\', \'width=800,height=600,scrollbars=yes,toolbar=yes\')"><span class="footerlink">Internet Scam Warning</span></a><br>';
			foot += '           Bear, Stearns Securities Corp.: <a href="javascript:MM_openBrWindow(\'http://www.bsscfinancialstatement.com\', \'disclaimer\', \'width=800,height=600,scrollbars=yes,toolbar=yes\')"><span class="footerlink">Financial Statement</span></a> | <a href="javascript:MM_openBrWindow(\'http://www.bearstearns.com/bscportal/htmlnew/miscellany/safety_cust_assets.htm\', \'disclaimer\', \'width=800,height=600,scrollbars=yes,toolbar=yes\')"><span class="footerlink">Safety of Customer Assets</span></a> | <a href="javascript:MM_openBrWindow(\'http://www.SIPC.org\', \'disclaimer\', \'width=800,height=600,scrollbars=yes,toolbar=yes\')"><span class="footerlink">SIPC</span></a><br>';
			foot += '           &copy; 2006 Bear, Stearns & Co. Inc. Published in the U.S.A. All rights reserved.<br></td>';
			foot += '       </tr>';
			foot += '     </table></td>';
			foot += '  	</tr>';
			foot += '</table>';
	document.write(foot);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  var newW = window.open(theURL,winName,features);
	newW.focus();
}