//SET SOME GLOBAL VARIABLES

var startHeader = "<div align='center'><table width='1000' border='0' cellpadding='0' cellspacing='0'><tr style='background:#336699'><td colspan='2'><table border='0' cellpadding='2' cellspacing='0' width='100%'><tr><td width='254'><a href='http://dshort.com'><img src='/images/dshort-header-250.png' border='0' alt='' title='' height='105' width='250'></a></td><td width='746' align='center'>"

var endHeader = "<tr bgcolor='#114477'><td colspan='2' class='header'><script type='text/javascript'>document.write(HeaderLinks)</script></td></table></td></tr></td></tr></table></td></tr><tr valign='top'><td class='textarea' width='674'><table border='0' width='674' cellpadding='12'><tr><td>"

var SponsoredAds = "<p><table id='searchbox' width='100%' cellpadding=10><tr><td align=center><p><a class='TitleLink' href=http://Valid1.net/default.aspx?bdlid=854&redirect_url=http://dshort.com/>Sponsored Offers</a><br></td></tr></table>"

var startRightColumn = "</td></tr></table></td><td align='center' width='326' class='RightColumn'><table border='0' cellpadding='9'><tr><td>"

var buildRightColumn = "<!-- (getRYR2 PLACEHOLDER-->" + SponsoredAds + getRightColumnLinks()

var endRightColumn = "<div align='left'>" +
	"<p><b>Research Links</b><br>" +
	"&#x25CF; <a href='http://www.cepr.net/' target='_blank'>Center for Economic &amp; Policy Research</a><br>" +
	"&#x25CF; <a href='http://crr.bc.edu/' target='_blank'>Center for Retirement Research</a><br>" +
	"&#x25CF; <a href='http://www.consumerindexes.com/' target='_blank'>Consumer Metrics Institute</a><br>" +
	"&#x25CF; <a href='http://www.frbsf.org/publications/economics/letter/' target='_blank'>Federal Reserve Bank of San Francisco</a><br>" +
	"&#x25CF; <a href='http://inflationdata.com/inflation/default.asp' target='_blank'>InflationData.com</a><br>" +
	"&#x25CF; <a href='http://www.fpanet.org/journal/' target='_blank'>Journal of Financial Planning</a><br>" +
	"&#x25CF; <a href='http://knowledge.wharton.upenn.edu/' target='_blank'>Knowledge@Wharton</a><br>" +
	"&#x25CF; <a href='http://www.inflation.us/' target='_blank'>National Inflation Association</a><br>" +
	"&#x25CF; <a href='http://www.retireearlyhomepage.com/' target='_blank'>Retire Early Home Page</a><br>" +
	"&#x25CF; <a href='http://retirementincomejournal.com/' target='_blank'>Retirement Income Journal</a><br>" +
	"&#x25CF; <a href='http://shadowstats.com/' target='_blank'>Shadow Government Statistics</a><br>" +
	"&#x25CF; <a href='http://www.manualofideas.com/q/' target='_blank'>The Manual of Ideas</a><br>" +
	"&#x25CF; <a href='http://www.mrrc.isr.umich.edu/' target='_blank'>Michigan Retirement Research Center</a><p></div>" +
"<a href='http://www.riia-usa.org/' target='_blank'><img src='/images/RIIA-logo.gif' width='160' height='200' border='0'><br><br><a href='http://dshort.com/docs/advertise.html'>" + 
"<table bgcolor='#ffffff' width='300' border='0'><tr><td width='50%' class='center' style='vertical-align:middle'><a href='http://newstex.com/' title='Contributor to: Newstex Blogs on Demand'><img src='http://newstex.com/img/banners/newstex_100_green.gif' border='0' /></a></td><td width='50%' class='center' style='vertical-align:middle'><a href='http://seekingalpha.com/author/doug-short' target='_blank'><img src='http://static.seekingalpha.com/wp-content/seekingalpha/images/SeekingAlphaCertifiedL.gif' title='Stock Market Blog Certification' alt='Seeking Alpha Certified' width='130' height='134' border='0' /></a></td></tr></table>" + 
"<br><div align='left'><i>To advertise on dshort...</i></div><img src='http://dshort.com/images/ICBadge300x100.gif' width='300' height='100' border='0' vspace='5' alt='' title=''></a></div></td></tr></table></td></tr></table></div>"

var headerMenu = "<ul id=\"sddm\">" + 
"    <li><a href='http://dshort.com'>Home</a></li>" + 
"    <li><a href=\"#\" " + 
"        onmouseover=\"mopen('m1')\" " + 
"        onmouseout=\"mclosetime()\">Favorites</a>" + 
"        <div id=\"m1\" " + 
"            onmouseover=\"mcancelclosetime()\" " + 
"            onmouseout=\"mclosetime()\">" + 
"        <a href='/articles/current-market-snapshot.html'>Current Market Snapshot</a>" + 
"        <a href='/articles/2010/bear-bottoming-process.html'>The Bear Bottoming Process</a>" + 
"        <a href='/articles/2010/mega-bear-2000.html'>The \"Real\" Mega-Bears</a>" + 
"        <a href='/articles/world-markets-update.html'>World Markets Update</a>" + 
"        <a href='/articles/Consumer-Metrics-Growth-Index.html'>Consumer Metrics Institute Growth Index</a>" + 
"        <a href='/articles/ECRI-Weekly-Leading-Index.html'>ECRI Weekly Leading Index</a>" + 
"        <a href='/articles/2010/debt-to-gdp-and-taxation.html'>Federal Debt, Taxes and Politics</a>" + 
"        </div>" + 
"    </li>" + 
"    <li><a href=\"#\" " + 
"        onmouseover=\"mopen('m2')\" " + 
"        onmouseout=\"mclosetime()\">Updates</a>" + 
"        <div id=\"m2\" " + 
"            onmouseover=\"mcancelclosetime()\" " + 
"            onmouseout=\"mclosetime()\">" + 
"        <a href='/articles/SP-Composite-secular-bull-bear-markets.html'>Secular Bull and Bear Markets</a>" + 
"        <a href='/articles/regression-to-trend.html'>Regression to Trend</a>" + 
"        <a href='/articles/SP-Composite-pe-ratios.html'>P/E Ratio Market Valuation</a>" + 
"        <a href='/articles/Q-Ratio-and-market-valuation.html'>Q Ratio Market Valuation</a>" + 
"        <a href='/articles/three-valuation-indicators.html'>Three Valuation Indicators</a>" + 
"        <a href='/articles/history-of-stock-dividends.html'>A Short History of Stock Dividends</a>" + 
"        <a href='/articles/unemployment.html'>Unemployment and the Market</a>" + 
"        <a href='/inflation/inflation-update.html'>Inflation Update</a>" + 
"        <a href='/articles/SP-Composite-annualized-total-return-roller-coaster.html'>Total Return Roller-Coaster</a>" + 
"        </div>" + 
"    </li>" + 
"    <li><a href=\"#\" " + 
"        onmouseover=\"mopen('m3')\" " + 
"        onmouseout=\"mclosetime()\">Market Timing</a>" + 
"        <div id=\"m3\" " + 
"            onmouseover=\"mcancelclosetime()\" " + 
"            onmouseout=\"mclosetime()\">" + 
"        <a href='/articles/monthly-moving-averages.html'>Monthly Moving Averages</a>" + 
"        <a href='/charts/timing-updates.html'>Interim Updates</a>" + 
"        </div>" + 
"    </li>" + 
"    <li><a href=\"#\" " + 
"        onmouseover=\"mopen('m4')\" " + 
"        onmouseout=\"mclosetime()\">Etc.</a>" + 
"        <div id=\"m4\" " + 
"            onmouseover=\"mcancelclosetime()\" " + 
"            onmouseout=\"mclosetime()\">" + 
"        <a href='/docs/data-sources.html'>dshort Data Sources</a>" + 
"        <a href='/docs/irs-limits.html'>2010 IRS Limits</a>" + 
"        <a href='/docs/calculators.html'>Retirement Calculators</a>" + 
"        </div>" + 
"    </li>" + 
"    <li><a href=\"#\" " + 
"        onmouseover=\"mopen('m5')\" " + 
"        onmouseout=\"mclosetime()\">Contact</a>" + 
"        <div id=\"m5\" " + 
"            onmouseover=\"mcancelclosetime()\" " + 
"            onmouseout=\"mclosetime()\">" + 
"        <a href='mailto:doug@dshort.com'>Email dshort</a>" + 
"        <a href='/docs/about.html'>About dshort</a>" + 
"        <a href='/docs/advertise.html'>Advertise on dshort</a>" + 
"        </div>" + 
"    </li>" + 
"    <li><a href='http://Valid1.net/default.aspx?bdlid=854&redirect_url=http://dshort.com/'><img src='/images/check-tn.gif' border='0' alt=''>&nbsp;Sponsored Offers</a></li>" + 
"    <li><a href='http://www.feed43.com/dshort.xml'><img src='/images/RSS2-tn.gif' border='0' height='11' width='11' alt=''>&nbsp;RSS Feed</a></li>" + 
"    <li><a href='http://dshort.com/subscribe.html'><img src='/images/subscribe-tn.gif' border='0' height='11' alt=''>&nbsp;Subscribe</a></li>" + 
"</ul>" + 
"<div style=\"clear:both\"></div>"

var HeaderLinks = "<table width='100%' cellpadding='2'><tr><td nowrap width='85%'>" + headerMenu + 
"</td><td width='15%'><script type='text/javascript'>document.write(ShareIt)</script>"

var bullet = "<a href =http://dshort.com/><img src=/images/bullet.gif height='16' width='16' border='0' alt='dshort.com' title='dshort.com'></a>"

var ShareIt = "<!-- AddThis Button BEGIN --><div align='right'><script type=\"text/javascript\">var addthis_pub=\"dshort\";</script><a href=\"http://www.addthis.com/bookmark.php?v=20\" onmouseover=\"return addthis_open(this, '', '[URL]', '[TITLE]')\" onmouseout=\"addthis_close()\" onclick=\"return addthis_sendto()\"><img src=\"http://dshort.com/images/lg-share-en.gif\" width=\"125\" height=\"16\" vspace=\"3\" alt=\"Bookmark and Share\" style=\"border:0\"/></a><script type=\"text/javascript\" src=\"http://s7.addthis.com/js/200/addthis_widget.js\"></script></div><!-- AddThis Button END -->"

var OLDShareIt = "<!-- AddThis Button BEGIN --><div align='right'><script type=\"text/javascript\">var addthis_pub=\"dshort\";</script><a href=\"http://www.addthis.com/bookmark.php?v=20\" onmouseover=\"return addthis_open(this, '', '[URL]', '[TITLE]')\" onmouseout=\"addthis_close()\" onclick=\"return addthis_sendto()\"><img src=\"http://s7.addthis.com/static/btn/v2/lg-share-en.gif\" width=\"125\" height=\"16\" vspace=\"3\" alt=\"Bookmark and Share\" style=\"border:0\"/></a><script type=\"text/javascript\" src=\"http://s7.addthis.com/js/200/addthis_widget.js\"></script></div><!-- AddThis Button END -->"

//BUILD THE RIGHT SIDE COLUMN
function getRightColumnLinks() {
	return "<p><b>dshort.com Favorites</b><br>" +
	"&#x25CF; <a href='http://www.ritholtz.com/blog/' target='_blank'>The Big Picture</a><br>" +
	"&#x25CF; <a href='http://www.businessinsider.com/' target='_blank'>The Business Insider</a><br>" +
	"&#x25CF; <a href='http://www.calculatedriskblog.com/' target='_blank'>Calculated Risk</a><br>" +
	"&#x25CF; <a href='http://www.etfreplay.com/' target='_blank'>ETFreplay.com</a><br>" +
	"&#x25CF; <a href='http://www.fxcm.com/' target='_blank'>Forex Trading</a><br>" +
	"&#x25CF; <a href='http://blog.kimblechartingsolutions.com/' target='_blank'>Kimble Charting Solutions</a><br>" +
	"&#x25CF; <a href='http://globaleconomicanalysis.blogspot.com/' target='_blank'>Mish's Trend Analysis</a><br>" +
	"&#x25CF; <a href='http://www.financialsense.com/editorials/bronson/main.html' target='_blank'>Robert E. Bronson, III</a><br>" +	
	"<p><b>and check out these</b><br>" +
	"&#x25CF; <a href='http://bankvibe.com/' target='_blank'>BankVibe</a><br>" +
	"&#x25CF; <a href='http://www.dollarbanker.com/' target='_blank'>CD Rates</a><br>" +
	"&#x25CF; <a href='http://www.EvidenceInvesting.com/' target='_blank'>Evidence Investing</a><br>" +
	"&#x25CF; <a href='http://ewtrendsandcharts.blogspot.com/' target='_blank'>EW trends and charts, LLC</a><br>" +
	"&#x25CF; <a href='http://www.highyieldcheckingdeals.com/' target='_blank'>High Yield Checking Deals</a><br>" +
	"&#x25CF; <a href='http://www.monitorbankrates.com/' target='_blank'>MonitorBankRates.com</a><br>" +
	"&#x25CF; <a href='http://politicalcalculations.blogspot.com/' target='_blank'>Political Calculations</a><br>" +
	"&#x25CF; <a href='http://scottsinvestments.blogspot.com/' target='_blank'>Scott's Investments</a><br>" +
	"&#x25CF; <a href='http://www.seasonalcharts.com/' target='_blank'>Seasonal Charts</a><br>" +
	"&#x25CF; <a href='http://stocktradingtogo.com/' target='_blank'>Stock Trading To Go</a><br>" +
	"&#x25CF; <a href='http://taaforthemasses.blogspot.com/' target='_blank'>Tactical Asset Allocation</a><br>" +
	"&#x25CF; <a href='http://valuewalk.com/' target='_blank'>ValueWalk.com: Value Investing</a><br>" +	
	"&#x25CF; <a href='http://www.urbandigs.com/' target='_blank'>UrbanDigs.com</a><br>" +
	"&#x25CF; <a href='http://www.mebanefaber.com/' target='_blank'>World Beta</a>" +
	"<script type='text/javascript'>document.write(getRYR2())</script>" + 
	"<p><b>Retirement Focus</b><br>" +
	"<table width='300'><tr><td width='150'>" +
	"&#x25CF; <a href='http://www.businessweek.com/investor/retirement/' target='_blank'>BusinessWeek</a><br>" +
	"&#x25CF; <a href='http://money.cnn.com/pf/retirement/index.html' target='_blank'>CNN</a><br>" +
	"&#x25CF; <a href='http://kiplinger.com/yourretirement/' target='_blank'>Kiplinger</a><br>" +
	"</td><td width='150'>" + 
	"&#x25CF; <a href='http://www.marketwatch.com/personalfinance/retirement' target='_blank'>MarketWatch</a><br>" +
	"&#x25CF; <a href='http://www.smartmoney.com/retirement/' target='_blank'>SmartMoney</a><br>" +
	"&#x25CF; <a href='http://finance.yahoo.com/retirement' target='_blank'>Yahoo!</a><br>" +
	"</td></tr></table><hr width='300' size='1'>" + 
	"<div align='center'>"
}


//INFLATION TABLE -- SET VARIABLES FOR CPI, RATE, AND DATE
function getCPItable() {
var cpi = "217.631"
var inflationRate = "2.31%"
var reportDate = "April 14, 2010<br>for March 2010"

return "<table width=254 class=MsoTableGrid border='0' cellspacing='0' cellpadding='0' style='background:#C5D9F1;border-collapse:collapse;border:none'><tr><td valign=top style='border:solid #cccccc 1.0pt; windowtext 1.0pt;border-bottom:solid #cccccc 1.0pt; padding:2.9pt 5.75pt 2.9pt 5.75pt'><p class=MsoNormal align=center style='text-align:center'><b><span style='font-size:10.0pt;font-family:Verdana;color:#000000'>Consumer Price Index<br> (CPI-U) = " + cpi + "</span></b></p></td></tr><tr><td valign=top style='border-top:none;border-left:solid #cccccc 1.0pt; windowtext 1.0pt; border-bottom:none;border-right:solid #cccccc 1.0pt; windowtext 1.0pt;background:white; padding:5.9pt 5.75pt 3.9pt 5.75pt'><p class=MsoNormal align=center style='text-align:center'><b><span style='font-size:10.0pt;font-family:Verdana;color:black'>Annualized Inflation Rate</span></b><b><span style='font-size:9.5pt;font-family:Verdana;color:black'><br></span></b><b><span style='font-size:9.5pt;font-family:Verdana;color:red'>" + inflationRate + "</span></b></p></td></tr><tr><td valign=top style='border:solid #cccccc 1.0pt; windowtext 1.0pt;border-top:none; background:white;padding:2.9pt 5.75pt 2.9pt 5.75pt'><p class=MsoNormal align=center style='text-align:center'><span style='font-size:8.5pt;font-family:Verdana;color:black'>Released " + reportDate + "<br><br></span></p></td></tr></table>"
}

//RYR AD MANAGEMENT

var RYRlink = "'http://www.fool.com/shop/newsletters/13/b94049d9-561f-4348-9a68-9565cf2a0fc4.aspx?source=errdshlnk4550001'"
var RYRhref = "<a href=" + RYRlink + " target='_blank'>"
var closelink = "</a>"
var RYRfooterRec = "For comprehensive retirement planning advice, <a href='http://dshort.com'>dshort.com</a> recommends <a href=" + RYRlink + ">Rule Your Retirement</a>."

var RYRchartFooter = "<table border='0' cellpadding='10' cellspacing=0 width=100%'><tr><td align='left'><font class='smalltext' color='#333333'><i>For comprehensive retirement planning advice, <a href='http://dshort.com'>dshort.com</a> recommends <a href=" + RYRlink + ">Rule Your Retirement</a>.</i></td><td align='right'><font class='smalltext'><a href='http://dshort.com/docs/data-sources.html'>data sources</a></td></tr></table>"

var RYR = "<a href=" + RYRlink + "><script type='text/javascript'>document.write(getRYRad())</script></a>"

function getRYR() {
	
	if (Retirement!='') {
		return "<a href=" + RYRlink + "><script type='text/javascript'>document.write(getRYRad())</script></a><br>"
	} else {
		return ""
		}
}

function getRYR2() {
	
	if (Retirement=='') {
		return "<br><br><a href=" + RYRlink + "><script type='text/javascript'>document.write(getRYRad())</script></a>"
	} else {
		return ""
		}
}

//INTEGER MULTIPLIER SHOULD BE ONE LESS THAN THE ARRAY IN FOLLOWING FUNCTION
function get_random() { 
  var ranNum= Math.round(Math.random()*3); 
	return ranNum; 
} 

function getRYRad() {
	var str = "" + document.location;
	var whichAd = get_random();

	var Sponsor=new Array(3)
     Sponsor[0]="<img src='/images/ryr-subscription-300-1.gif' border='0' vspace='0' width='300' height='250' alt='30-day free trial' title='30-day free trial'>"
     Sponsor[1]="<img src='/images/ryr-subscription-300-2.gif' border='0' vspace='0' width='300' height='250' alt='30-day free trial' title='30-day free trial'>"
     Sponsor[2]="<img src='/images/ryr-subscription-300-3.gif' border='0' vspace='0' width='300' height='250' alt='30-day free trial' title='30-day free trial'>"
     Sponsor[3]="<img src='/images/ryr-subscription-300-4.gif' border='0' vspace='0' width='300' height='250' alt='30-day free trial' title='30-day free trial'>"

	return Sponsor[whichAd] + "<br>"

} 

//GENERIC POPUP WINDOW
var remote
var oldURL
var nav=navigator.appName
var ver=navigator.appVersion.charAt(0)

function launch(newURL, newName, newFeatures, orgName) {
  if (nav=="Microsoft Internet Explorer" && remote!=null && oldURL!=newURL) {
  closeWin();
  }
  if (!remote || remote.closed || oldURL!=newURL) {
  remote = open(newURL, newName, newFeatures)
  if (oldURL!=null && nav == "Netscape" && ver!="2") {
  remote.focus()
  }
  oldURL = newURL
  } else if (nav == "Netscape"&& ver!="2") {
  remote.focus()
  } else {
  closeWin();
  remote = open(newURL, newName, newFeatures)
  }
  if (remote!=null && remote.opener == null) {
  remote.opener = window;
  remote.opener.name = orgName
  }
  return remote
}

function closeWin() {
  remote.close();
  remote=null
}

function popup(url,w,h) {
  if (url.indexOf("/")==-1) {
  url="/"+DB+"/Popup/" + url
  }
  if (h==null) {
  h=600
  }
  if (w==null) {
  w=800
  }
  var features="height=" + h + ",width=" + w + ",top=20,left=20,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=1,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0,z-lock=0";
  myRemote = launch(url,"PopUp1",features,"myWindow");
}


//HEADER JAVASCRIPT MENUS
var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; 


//UNUSED??

var Kontera = ""
var back = "<a href='javascript: history.go(-1)'><img src='/images/back.gif' border='0' height='29' width='58' align=right></a>"

var XXXsubscribe = "<a href='/rss.xml'><img src='/images/subscribe.gif' border='0' height='22' width='198' vspace='0' alt='' title=''></a>"

var wc3 = "<div align='right'><a href='http://validator.w3.org/check?uri=referer'>.</a></div>"
var XXXwc3 = "<div align='right'><a href='http://validator.w3.org/check?uri=referer'><img src='/images/valid-html40-blue.png' alt='Valid HTML 4.0 Transitional' height='31' width='88' border='0'></a></div>"

var XXXHeaderLinks = "<table width='100%' cellpadding='2'><tr><td nowrap width='75%' class='Header'>" + 
"<a class='Header' href='http://dshort.com'>Home</a> | " +
"<a class='Header' href='/about.html'>About</a> | " +
"<a class='Header' href='mailto:doug@dshort.com'>Email</a> | " + 
"<a class='Header' href='/articles/SP-Composite-secular-bull-bear-markets.html'>Secular Trends</a> | " +
"<a class='Header' href='/articles/SP-Composite-pe-ratios.html'>Market Valuation</a> | " +
"<a class='Header' href='/articles/monthly-moving-averages.html'>Monthly Signals</a> | " +
"<a class='Header' href='/docs/data-sources.html'>Data Sources</a> | " + 
"<a class='Header' href='/rss.xml'><img src='/images/RSS-tn.gif' border='0'> RSS Feed</a> " +
"</td><td width='25%' align='right'><script type='text/javascript'>document.write(ShareIt)</script>"

var Search = "<div id='navigation'><form action=\"http://www.google.com/cse\" id=\"cse-search-box\"><div><input type=\"hidden\" name=\"cx\" value=\"partner-pub-5254567642151123:t15doi-xmlb\" /><input type=\"hidden\" name=\"ie\" value=\"ISO-8859-1\" /><input type=\"text\" name=\"q\" size=\"22\" /><input type=\"submit\" name=\"sa\" value=\"Search\" /></div></form><script type=\"text/javascript\" src=\"http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en\"></script></div>"

//BUILD THE COLUMN NAVIGATOR
function buildNavigator(arg) {

  var str = "" + document.location;
  var start = str.indexOf('.com/') + 5;
  var end = str.indexOf('.html');

	{
	}
  if (end==-1) {
  var thisPage = "index"
  } else {
  var thisPage = (str.substring(start, end))
  }
  return "<tr valign=top><td bgcolor='#e6e6e6' width='164'><table align='left' width='164' border='0' cellpadding='2' cellspacing='0'>" +
  "<tr>" + fetchClass(thisPage, "articles/2010/road-to-recovery") + " href='/articles/2010/road-to-recovery.html'>Road to Recovery</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "articles/2010/bear-turns-to-bull") + "href='/articles/2010/bear-turns-to-bull.html'>Four Bad Bears</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "articles/2010/bear-bottoming-process") + "href='/articles/2010/bear-bottoming-process.html'>Bottoming Process</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "articles/2010/mega-bear-quartet") + "href='/articles/2010/mega-bear-quartet.html'>Mega-Bear Quartet</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "articles/2010/mega-bear-2000") + "href='/articles/2010/mega-bear-2000.html'>\"Real\" Mega-Bears</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "articles/regression-to-trend") + "href='/articles/regression-to-trend.html'>S&amp;P Regression</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "articles/history-of-stock-dividends") + "href='/articles/history-of-stock-dividends.html'>History of Dividends</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "charts/timing-updates") + " href='/charts/timing-updates.html'>Timing Updates</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "inflation/inflation-update") + " href='/inflation/inflation-update.html'>Inflation Data</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "articles/unemployment") + " href='/articles/unemployment.html'>Unemployment</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "docs/calculators") + " href='/docs/calculators.html'>\"R\" Calculators</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "docs/irs-limits") + " href='/docs/irs-limits.html'>2010 IRS Limits</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "docs/recession-table-detailed") + " href='/docs/recession-table-detailed.html'>Recession Stats</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "articles/tmf-links") + " href='/articles/tmf-links.html'>TMF Articles</a>&nbsp;</td></tr>" +
	"<tr>" + fetchClass(thisPage, "archives/highlights") + " href='/archives/highlights.html'>Selected Archives</a>&nbsp;<br><br></td></tr>" +
	"<tr><td align=center bgcolor='#336699'><br><br>"  + 
	"<p><a href=\"http://riia-usa.org\" target=\"_blank\"><img src='/images/RIIA-logo.gif' border='0' vspace='0' title='Retirement Income Industry Association' alt='Retirement Income Industry Association'><br><br></td></tr>" +
	"<tr><td class='ColNav'>"
}

var closeNav = "</td></tr></table>" + 
	"</td><td class='textarea' width='510'><table border='0' width='510' cellpadding='12'><tr><td>"

function fetchClass(thisPage, arg) {

  if (thisPage==arg) {
  return "<td nowrap class='ColNavActive'>&nbsp;<a class='ColNavActive'"
  } else {
  return "<td nowrap class='ColNav'>&nbsp;<a class='ColNav'"
  }
}

function XXXHeaderEnd() {
	
	if (pageType=='index') {
		return "<tr bgcolor='#114477'><td colspan='3'><script type='text/javascript'>document.write(HeaderLinks)</script></td></table></td></tr></td></tr></table></td></tr>" + buildNavigator()
	} else {
		return "<tr bgcolor='#114477'><td colspan='2'><script type='text/javascript'>document.write(HeaderLinks)</script></td></table></td></tr></td></tr></table></td></tr><tr valign='top'><td class='textarea' width='674'><table border='0' width='674' cellpadding='12'><tr><td>"
		}
}


var XXXstartRightColumn = "</td></tr></table></td><td align='center' width='326' class='RightColumn'><table border='0' cellpadding='9'><tr><td>" + 
"<table width='300' border='0' cellpadding='5' bgcolor='#114477'><tr><td><script type='text/javascript'>document.write(Search)</script></td></tr><tr valign='center'><td>Sponsored by&nbsp;&nbsp;&nbsp;<img src='/docs/Ad-88x31.gif'>" + "</td></tr></table><br>" + "<script type='text/javascript'>document.write(getRYR())</script>"


function HeaderStart() {
		return "<div align='center'><table width='1000' border='0' cellpadding='0' cellspacing='0'><tr style='background:#336699'><td colspan='2'><table border='0' cellpadding='2' cellspacing='0' width='100%'><tr><td width='254'><a href='http://dshort.com'><img src='/images/dshort-header-250.png' border='0' alt='' title='' height='105' width='250'></a></td><td width='746' align='center'>"
}

function HeaderEnd() {
		return "<tr bgcolor='#114477'><td colspan='2'><script type='text/javascript'>document.write(HeaderLinks)</script></td></table></td></tr></td></tr></table></td></tr><tr valign='top'><td class='textarea' width='674'><table border='0' width='674' cellpadding='12'><tr><td>"
}
