moduleName = "thisibelieve";

// popup window function, based on original code by James Craig
var sUserAgent = navigator.userAgent.toLowerCase();
var isOp = (sUserAgent.indexOf('opera')!=-1)?true:false;

function moduleLink(oAnchor, sWindow){
	var sUrl = '';
	if(typeof(oAnchor)=='string') sUrl = oAnchor;
	else {
		if(oAnchor.getAttribute) sUrl = oAnchor.getAttribute('href');
		if(sUrl=='') sUrl = oAnchor.href;
	}
	pageUrl = window.location.href;
	sUrl = sUrl + "&surl=" + escape(pageUrl) + "&f=module-" + escape(moduleName);
	if(sUrl=='') return true;
	if(sUrl.indexOf('?') == -1) surl=surl+'?';
	var sWindowName = sWindow?sWindow:'nprPopup';
	if(sUrl) var oPopup = window.open(sUrl,sWindowName);
	if(oPopup && !isOp) oPopup.focus();
	return (oPopup)?false:true;
}

function moduleMedia(oAnchor){
	var sUrl = '';
	if(typeof(oAnchor)=='string') sUrl = oAnchor;
	else {
		if(oAnchor.getAttribute) sUrl = oAnchor.getAttribute('href');
		if(sUrl=='') sUrl = oAnchor.href;
	}
	if(sUrl=='') return true;
	pageUrl = window.location.href;
	sUrl = sUrl + "&surl=" + escape(pageUrl) + "&f=module-" + escape(moduleName);
	window.location.href = sUrl;
	return false;
}


document.write
(
'',
'',
'',
'',
'<script type="text/javascript">window.vsitag = {"imp":"module-thisibelieve"};</script>',
'<script type="text/javascript" language="javascript" src="http://www.npr.org/include/javascript/zigi.js"></script>',
'',
'<div class="nprMod"> ',
'<p class="nprModCatTitle"><strong><em>This I Believe</em>: An NPR Essay Project</strong></p> ',
'<div class="nprModStory3"> ',
' <div class="nprModHead"> ',
'<strong></strong> ',
'</div> ',
'<div class="nprModText"> ',
'<em>This I Believe</em> on NPR has concluded but the project continues on the <a href="http://thisibelieve.org/" onclick="return moduleLink(this);"><em>This I Believe</em> Web site</a>, where you can peruse a database of all the essays, subscribe to the free weekly podcast and contribute your own statement of belief.<br>  ',
'</div>  ',
'<div style="clear:both;">&nbsp;</div> ',
'</div>  ',
'<div class="nprModStory2"> ',
'<div class="nprModImg"><a href="http://www.npr.org/news/specials/2009/tib/" onclick="return moduleLink(this);"><img src="http://media.npr.org/thisibelieve/gallery/promo_75.jpg" alt="Montage of This I Believe essayists" height="75" width="75" border="0" align="left" style="margin-right: 5px;" /></a></div> ',
'<div class="nprModHead"> ',
' <a href="http://www.npr.org/news/specials/2009/tib/" onclick="return moduleLink(this);"><strong>Celebrating Four Years Of \'This I Believe\'</strong></a> ',
'</div> ',
'<div class="nprModText"> ',
'<span class="nprModDate">April 26, 2009 </span> <span class="nprModPipe">|</span> <span class="nprModName">NPR</span> &middot;  During its four-year run on NPR, <em>This I Believe</em> engaged listeners in a discussion of the core beliefs that guide their daily lives. We heard from people from all walks of life -- the very young and the very old, the famous and the previously unknown. ',
'<!--</div> ',
'<div class="nprModAudioLinks"> ',
'<a href="http://www.npr.org/dmg/dmg.php?prgCode=wesun&showDate=12-apr-2009&segNum=15&mediaPref=RM" onclick="return moduleMedia(this);" class="nprModLinkReal" class="nprModLinkReal"><img src="http://media.npr.org/chrome/audio-icon-pos.gif" height="15" width="14" border="0" class="nprModListenIconReal" /></a> <a href="http://www.npr.org/dmg/dmg.php?prgCode=wesun&showDate=12-apr-2009&segNum=15&mediaPref=RM" onclick="return moduleMedia(this);" class="nprModLinkReal">Real</a> ',
'<span class="nprModAudioPipe">|</span> ',
'<a href="http://www.npr.org/dmg/dmg.php?prgCode=wesun&showDate=12-apr-2009&segNum=15&mediaPref=WM" onclick="return moduleMedia(this);" class="nprModLinkReal" class="nprModLinkWindows"><img src="http://media.npr.org/chrome/audio-icon-pos.gif" height="15" width="14" border="0" class="nprModListenIconWindows" /></a> <a href="http://www.npr.org/dmg/dmg.php?prgCode=wesun&showDate=12-apr-2009&segNum=15&mediaPref=WM" onclick="return moduleMedia(this);" class="nprModLinkReal">Windows</a> ',
'</div>--> ',
'<div style="clear:both;">&nbsp;</div> ',
'</div> ',
'<div class="nprModStory1"> ',
'<div class="nprModImg"><a href="http://www.npr.org/templates/story/story.php?storyId=103412215" onclick="return moduleLink(this);"><img src="http://media.npr.org/thisibelieve/tan/tan_75.jpg" alt="Amy Tan Credit: Pat Boyd Photography" height="75" width="75" border="0" align="left" style="margin-right: 5px;" /></a></div> ',
'<div class="nprModHead"> ',
' <a href="http://www.npr.org/templates/story/story.php?storyId=103412215" onclick="return moduleLink(this);"><strong>Saying Thanks To My Ghosts</strong></a> ',
'</div> ',
'<div class="nprModText"> ',
'<span class="nprModDate">April 26, 2009 </span> <span class="nprModPipe">|</span> <span class="nprModName">NPR</span> &middot;   Novelist Amy Tan hasn\'t always believed in ghosts, but as a writer she\'s had too many inspirations that she can\'t fully explain. Now, Tan embraces her belief in ghosts and the messages of joy, love and peace they bring her. ',
'</div> ',
'<div class="nprModAudioLinks"> ',
'<a href="http://www.npr.org/dmg/dmg.php?prgCode=wesun&showDate=26-apr-2009&segNum=12&mediaPref=RM" onclick="return moduleMedia(this);" class="nprModLinkReal" class="nprModLinkReal"><img src="http://media.npr.org/chrome/audio-icon-pos.gif" height="15" width="14" border="0" class="nprModListenIconReal" /></a> <a href="http://www.npr.org/dmg/dmg.php?prgCode=wesun&showDate=26-apr-2009&segNum=12&mediaPref=RM" onclick="return moduleMedia(this);" class="nprModLinkReal">Real</a> ',
'<span class="nprModAudioPipe">|</span> ',
'<a href="http://www.npr.org/dmg/dmg.php?prgCode=wesun&showDate=26-apr-2009&segNum=12&mediaPref=WM" onclick="return moduleMedia(this);" class="nprModLinkReal" class="nprModLinkWindows"><img src="http://media.npr.org/chrome/audio-icon-pos.gif" height="15" width="14" border="0" class="nprModListenIconWindows" /></a> <a href="http://www.npr.org/dmg/dmg.php?prgCode=wesun&showDate=26-apr-2009&segNum=12&mediaPref=WM" onclick="return moduleMedia(this);" class="nprModLinkReal">Windows</a> ',
'</div> ',
'<div style="clear:both;">&nbsp;</div> ',
'</div> ',
'<div style="clear:both;">&nbsp;</div> ',
'</div> ',
'<!-- <div class="nprModStory3"> ',
'<div class="nprModHead"> ',
' <a href="http://thisibelieve.org/agree.html?a=1" onclick="return moduleLink(this);"><strong>Share Your Essay</strong></a> ',
'</div> ',
'<div class="nprModText"> ',
'In all of us there is a story that shapes who we are and what we believe. ',
'Learn how to write and share your short statement of belief. Your essay will ',
'be considered for broadcast on NPR.</div> --> ',
'<div style="clear:both;">&nbsp;</div> ',
'');
