// JavaScript Document

function showContacts(sectstr, bReturnStringOnly) {
	var afPart = new Array();
	//rightpanel items
	afPart['tech'] = '<ul><li>(888) 807-6898</li><li>(973) 793-4999</li></ul>';
	afPart['bscaccounts'] = '<ul><li>(800) 634-1428</li><li>(347) 643-2578</li></ul>';
	afPart['media'] = '<ul><li><a href="mailto:media@bear.com">media@bear.com</a></li></ul>';
	afPart['employee'] = '<ul><li>(212) 272-2000</li></ul>';
	afPart['infocenter'] = '<ul><li>(212) 272-3939 </li></ul>';
	//leftpanelitems
	afPart['needpassword'] = 'Secure access is available to Clients through their J.P. Morgan Securities Investment Professional.';
	afPart['openacct'] = '<p><strong>Speak with an Investment Professional:</strong><ul><li>(866) 785-1681</li><li>E-mail a <a href="/sitewide/private_clients/locations.htm">Branch Office</a> near you</li><li><a href="/sitewide/private_clients/request_phonecall.htm">Request a phone call from an Investment Professional</a></li></ul>';
	afPart['retirementservices'] = '<p><strong>Please Call:</strong><br />Jim Doyle<br />Managing Director,<br />Retirement Services<br />277 Park Avenue, 2nd Floor<br />New York, NY 10172<ul><li>(212) 272-8410</li><li>E-mail our <a href="mailto:rjdoyle@bear.com">Retirement Services</a> group and arrange to meet an Investment Professional near you.</li><li><a href="/sitewide/private_clients/request_phonecall.htm">Request a phone call from an Investment Professional</a></li></ul>';
	afPart['individualplanning'] = '<ul><li><a href="/sitewide/private_clients/request_phonecall.htm">Request a phone call from an Investment Professional</a></li></ul>';
	afPart['equityaccess'] = 'For J.P. Morgan Securities clients, please contact your Account Executive.</p><p>Others can purchase our research through Thomson.<br /><br /><strong>Thomson US Document Center</strong><br />800-638-8241<br /><a href="mailto:gsmsresearchcentermd@thomson.com" style="font-size:10px">gsmsresearchcentermd@thomson.com</a><br /><br /><strong>Thomson European Document Center</strong><br />+44 (0)20 7324 8848<br /><a href="mailto:firstcontact@thomson.com" style="font-size:10px">firstcontact@thomson.com</a></p>';
	afPart['equityaccess_backup'] = 'For J.P. Morgan Securities clients, please contact your Account Executive. Otherwise, our research is available for purchase.<br /><br /><ul><li>Check <a href="javascript:MM_openBrWindow(\'http://today.reuters.com/ResearchReports/Providers.aspx\',\'newwindow\')">Reuters</a> for availability.</li></ul>';
	afPart['internettheft'] = 'Identity and Account Theft is often executed through phishing attacks.<br /><br /><ul><li><a href="javascript:MM_openBrWindow(\'https://www.chase.com/ccp/index.jsp?pg_name=ccpmapp/privacy_security/fraud/page/online_fraud\')">Learn More</a></li></ul>';
	//mtgaffiliates
	afPart['residentialmtg'] = '<a href="javascript:MM_openBrWindow(\'https://www.beardirect.net/beardirect/contact_us.aspx\')">J.P. Morgan Securities Residential Mortgage Corp.</a>';
	afPart['commmtg'] = '<a href="javascript:MM_openBrWindow(\'http://www.bearcommercialmortgage.com/\')">J.P. Morgan Securities Commercial Mortgage</a>';
	afPart['emc'] = '<a href="javascript:MM_openBrWindow(\'https://www.emcmortgagecorp.com/EMCMORTGAGE/MainContent/contact_us.jsp\')">EMC Mortgage Corporation</a>';
	afPart['rooftop'] = '<a href="javascript:MM_openBrWindow(\'http://www.rooftopmortgages.com/contactUs.asp?nav=1&subNav=1&linkID=52\')">Rooftop Mortgages</a>';
	
	var str = '';
	var dV = '| ';
	
	
	switch (sectstr) {
		case "contact_us":	
			str += '<p class="heading">TECHNICAL SUPPORT</p><br />Client support is available Monday through Friday from <strong>8 AM to 7 PM </strong> by calling</p>' + afPart['tech'];
			str += '<p class="heading">J.P. MORGAN SECURITIES ACCOUNTS</p>' + afPart['bscaccounts'];
/*			
			str += '<p>After hours, on weekends and holidays, clients will be offered the opportunity to leave a voicemail which will be handled at our earliest convenience.</p>';
			str += '<p class="heading">MEDIA RELATIONS</p>' + afPart['media'];
			str += '<p class="heading">CONTACT EMPLOYEE</p>' + afPart['employee'];	
*/			break;
			
		case "contact_us_left":	
			str += '<div class="leftpaneltextbox">';
			str += '<span class="bluetitlefont">Looking for an ID and Password?</span><br /><br />' + afPart['needpassword'] + afPart['openacct'];
			str += '</div>';
/*			str += '<div class="leftpaneltextbox">';
			str += '<span class="bluetitlefont">Equity Research Access </span><br /><br />' + afPart['equityaccess'];
			str += '</div>';
*/			break;
			
		case "pcs_open_acct":
			str += '<div class="leftpaneltextbox">';
			str += afPart['openacct'];
			str += '</div>';
			break;
			
		case "pcs_retirement_services":
			str += '<div class="leftpaneltextbox">';
			//str += afPart['openacct'];
			str += afPart['retirementservices'];
			str += '</div>';
			break;
			
		case "pcs_individual_planning":
			str += '<div class="leftpaneltextbox">';
			str += afPart['individualplanning'];
			str += '</div>';
			break;					
			
		case "client_login_phone":	
			str += '<p class="heading" style="width:218px;">TECHNICAL SUPPORT</p>';
			str += afPart['tech'];
			str += '<p class="heading" style="width:218px; margin-top:20px;">J.P. MORGAN SECURITIES ACCOUNTS</p>'; 
			str += afPart['bscaccounts'];
			break;
			
		case "login_err_boxes":	
			str += '<div class="threecolumnwidth" style="margin-left:80px; margin-right:50px;"><div class="leftpaneltextbox">';
			str += '<span class="bluetitlefont">Looking for an ID and Password?</span><br /><br />' + afPart['needpassword'] + afPart['openacct'];
			str += '</div></div>';
/*			str += '<div class="threecolumnwidth" style="width:210px; margin:0px 30px;"><div class="leftpaneltextbox">';
			str += '<span class="bluetitlefont">Equity Research Access </span><br /><br />' + afPart['equityaccess'];
			str += '</div></div>';*/
			str += '<div class="threecolumnwidth" style="margin:0px"><div class="leftpaneltextbox">';
			str += '<span class="bluetitlefont">Security</span><br /><br />' + afPart['internettheft'];
			str += '</div></div>';
			break;	
			
		case "contact_mtgs":
			str += afPart['residentialmtg'] + '<br /><br />';
			str += afPart['commmtg'] + '<br /><br />';
			str += afPart['emc'] + '<br /><br />';
			str += afPart['rooftop'] + '<br /><br />';	
			break;	
			
		case "fi_mtgs":	
			str += '<p class="heading">RESIDENTIAL MORTGAGE</p>' + '<ul><li>' + afPart['residentialmtg'] + '</li></ul>';
			str += '<p class="heading">COMMERCIAL MORTGAGE</p>' + '<ul><li>' + afPart['commmtg'] + '</li></ul>';
			str += '<p class="heading">SERVICING</p>' + '<ul><li>' + afPart['emc'] + '</li><li>' + afPart['rooftop'] + '</li></ul>';
			break;	
				
		case "cmbs_moreinfo":	
			str += '<p><strong>For More Information:</strong>' + '<ul><li>' + afPart['commmtg'] + '</li></ul>';
			break;	
	}
	
	if (bReturnStringOnly) {
		return str;
	} else {
		document.write(str);
	}
}
