var popupWindow;
//interstitialContent_template.html has all the returns replaced with spaces, and is then pasted here:
var interstitialContent = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>";
interstitialContent +="<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'><!-- based on https://orange4.organic.com/BAC_OLB_LP/green_landing_arrow.html# -->";
interstitialContent +="<head>";
interstitialContent +="    <meta http-equiv='Content-Type' content='text/html; utf-8' />";
interstitialContent +="    <title>Morris on Campus (experimental interstitialContent_template.html)</title>";
interstitialContent +="    <meta name='description' content='Keeping track of multiple bills sometimes feels as hard as paying them. Simplify your life by consolidating those bills and making one single monthly payment. You&#x27;ll save money too, with lower interest rates.' />";
interstitialContent +="    <meta name='keywords' content='green banking, online banking green, online banking saves trees debt consolidation, debt consolidation loan, consolidate bills, refinance, refinance loan, mortgage refinance, fixed rate refi loan, refi, mortgage refi, refi loan ' />";
interstitialContent +="    <link rel='stylesheet' type='text/css' media='all' href='../css/interstitial.css' />";
interstitialContent +="    <!--[if IE]><link rel='stylesheet' type='text/css' media='screen' href='css/master_ie.css' /><![endif]-->";
interstitialContent +="  </head>";
interstitialContent +="  <body style='overflow:hidden'>";
interstitialContent +="  	<div class='mast'><img src='http://www.bankofamerica.com/global/mvc_objects/images/mhd_reg_logo.gif' alt='Bank of America' hspace='10'></div>";
interstitialContent +="   <div class='banner-top'>&nbsp;</div>";
interstitialContent +="	<div class='banner'><img src='http://www.bankofamerica.com/weblinking/images/title_important_notice.gif' alt='Important Notice' border='0' hspace='14' vspace='4' /></div>";
interstitialContent +="	 <div class='bubba'>";
interstitialContent +="		<h1 class='page-title'>You Are Leaving Bank of America</h1>	";		
interstitialContent +="		<p class='paragraph'>By clicking <strong>Continue</strong>, you will be taken to a website that is not affiliated with Bank of America and may offer a different privacy policy and level of security. Bank of America is not responsible for and does not endorse, guarantee or monitor content, availability, viewpoints, products or services that are offered or expressed on other websites.</p>	";		
interstitialContent +="		<p class='paragraph'>You can click the <strong>Return to Bank of America</strong> button now to return to the previous page or you can use the Back button on your browser after you leave.</p>";
interstitialContent +="	</div>";
interstitialContent +="	<div class='interstitialContent' id='FromEx'>";
interstitialContent +="		<div class='accept'><a href='#' onclick=window.opener.parent.location.href='http://www.thestreet.com/author/1103719/all.html';window.close();><img src='../images/btn_continue.gif' alt='Continue' border='0'></a></div>";
interstitialContent +="		<div class='decline'><a href='#' onclick=window.close();><img src='../images/btn_return.gif' alt='Return' border='0'></a></div>";
interstitialContent +="	</div>";
interstitialContent +="	<div class='interstitialContent' id='glos_i1'>";
interstitialContent +="		<div class='accept'><a href='#' onclick=window.opener.parent.location.href='http://studentmoneyskills.bankofamerica.com/start/?cm_re=DEP-StudentBanking-_-Student-_-DepositsMarketingPage-MKS_Ultimate';window.close();><img src='../images/btn_continue.gif' alt='Continue' border='0'></a></div>";
interstitialContent +="		<div class='decline'><a href='#' onclick=window.close();><img src='../images/btn_return.gif' alt='Return' border='0'></a></div>";
interstitialContent +="	</div>";
interstitialContent +="	<div class='interstitialContent' id='UMS'>";
interstitialContent +="		<div class='accept'><a href='#' onclick=window.opener.parent.location.href='http://studentmoneyskills.bankofamerica.com/start/?cm_re=DEP-StudentBanking-_-Student-_-DepositsMarketingPage-MKS_Ultimate';window.close();><img src='../images/btn_continue.gif' alt='Continue' border='0'></a></div>";
interstitialContent +="		<div class='decline'><a href='#' onclick=window.close();><img src='../images/btn_return.gif' alt='Return' border='0'></a></div>";
interstitialContent +="	</div>";
interstitialContent +="    <div class='footer'> ";
interstitialContent +="     Bank of America, N.A. Member FDIC. <a class='ftr-link2' title='Equal Housing Lender information. Link opens a new window.' href='http://www.bankofamerica.com/help/equalhousing_popup.cfm'>Equal Housing Lender <img src='../images/house.gif' border='0'></a><br/>";
interstitialContent +="	    &copy; 2008 Bank of America Corporation. All rights reserved. ";
interstitialContent +=" </div>";
interstitialContent +=" </body>";
interstitialContent +="</html>"; 

var interstitialMusicContent ="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>";
interstitialMusicContent +="<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>";
interstitialMusicContent +="<head>";
interstitialMusicContent +="<meta http-equiv='Content-Type' content='text/html; utf-8' />";
interstitialMusicContent +="<title>Morris on Campus (experimental interstitialContent_template.html)</title>";
interstitialMusicContent +="<meta name='description' content='Keeping track of multiple bills sometimes feels as hard as paying them. Simplify your life by consolidating those bills and making one single monthly payment. You&#x27;ll save money too, with lower interest rates.' />";
interstitialMusicContent +="<meta name='keywords' content='green banking, online banking green, online banking saves trees debt consolidation, debt consolidation loan, consolidate bills, refinance, refinance loan, mortgage refinance, fixed rate refi loan, refi, mortgage refi, refi loan ' />";
interstitialMusicContent +="<link rel='stylesheet' type='text/css' media='all' href='../css/interstitial.css' />";
interstitialMusicContent +="<!--[if IE]><link rel='stylesheet' type='text/css' media='screen' href='css/master_ie.css' /><![endif]-->";
interstitialMusicContent +="</head>";
interstitialMusicContent +="<body style='overflow:hidden' id='freeMusic'>";
interstitialMusicContent +="<h1 class='discrete'>You're on your way to some free music.</h1>	";
interstitialMusicContent +="<p class='discrete'>Don't forget the promotion code on the back of your music card. You'll need it to get your free songs.:</p>";
interstitialMusicContent +="<p id='freeMusicMain'>The free music site is not part of Bank of America and may provide a different privacy policy and level of security. Bank of America is not responsible for and does not endorse, guarantee, or monitor content, availability, viewpoints, products, or services that are offered or expressed on other websites.</p>	";
interstitialMusicContent +="<div class='musicLinks'>";
interstitialMusicContent +="<div class='left'><a href='#' onclick=window.close();><img src='../images/btn_stayOnMorris.gif' alt='Return' width='151' height='44' border='0'></a> </div>";
interstitialMusicContent +="<div class='right'><a href='#' onclick=window.opener.parent.location.href='http://www.bankofamerica.hipdigital.com/mbc/music';window.close();><img src='../images/btn_continueOnMusic.gif' alt='Continue' width='138' height='44' border='0'></a></div>";
interstitialMusicContent +="</div>";
interstitialMusicContent +="</body>";
interstitialMusicContent +="</html>";

function interLert(broadcast) {
					alert(broadcast+", greetings from interstitial.js");
					} 

function popTip(whichLink) {
	//alert(whichLink+", greetings from interstitial.js, now for the pop-up");
	popupWindow = window.open('','page','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=678,height=437,left=-50,top=-50,titlebar=0');
	popupWindow.document.write(interstitialContent.replace("</body>","<style>#"+whichLink+"{display:block}</style></body>"));
	popupWindow.document.close();
}
					
function popMusic(whichLink) {
	//alert(whichLink+", greetings from interstitial.js, now for the pop-up");
	popupWindow = window.open('','page','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=754,height=510,left=-50,top=-50,titlebar=0');
	popupWindow.document.write(interstitialMusicContent);
	popupWindow.document.close();
}
