skyscraperLeft=(Math.round(Math.random() * 10)) % 8;
skyscraperRight=(Math.round(Math.random() * 10)) % 8;
bannerTop =(Math.round(Math.random() * 10)) % 6;
bannerBottom =(Math.round(Math.random() * 10)) % 99;

function webSeminarBanner(seminarMonth, seminarDate, seminarHour, seminarMin) 
{

		var tz = -7;					//PDT

		var today = new Date();
		var year = today.getFullYear();
		var month = today.getMonth();
		var d = today.getDate();
		var h = today.getHours();
		var m = today.getMinutes();
		var s = today.getSeconds();

		//Hour should be adjusted to GMT time.
		var start = new Date(year, month, d, h + (today.getTimezoneOffset()/60), m, s);	
		//Adjust end time with the time zone meeting should start at.
		var end = new Date(year, (seminarMonth-1), seminarDate, (seminarHour-tz), seminarMin, 0);
		//In seconds.
		var timeLeft = (end-start)/1000;
		
		if( timeLeft > -3600 ) {
			var conferenceURL = "https://ifa.webex.com/ifa/sac/j.php?ED=89935577&UID=45145012";
			var fileNameWithVars = "http://www.indexfunds.com/flash/countdowntimerclock5.swf?onAirURL=" + conferenceURL + "&timeleft=" + timeLeft;
			
			return( '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="470" height="60" id="countdowntimerclock5" 	align="middle"><param name="allowScriptAccess" value="sameDomain"/><param name="movie" value="' + fileNameWithVars + '"/><param name="quality" value="high"/><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" /><embed src="' + fileNameWithVars + '" quality="high" bgcolor="#ffffff" width="470" height="60" name="countdowntimerclock5" align="middle" allowScriptAccess="sameDomain" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
		}
		else {
			return('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="468" HEIGHT="60" id="RCS-banner-ad" ALIGN=""> <PARAM NAME=movie VALUE="http://www.indexfunds.com/images/riskbanner.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="http://www.indexfunds.com/images/riskbanner.swf" quality=high bgcolor=#000000  WIDTH="468" HEIGHT="60" NAME="RCS-banner-ad" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
		}
		
}
	

function banner()
{
	document.write ('<table border="1" bordercolor="#000000"  cellspacing="0" cellpadding="0" width="468" bgcolor="#000000"><tr><td valign="center">');
	
	
	//document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="468" HEIGHT="60" id="RCS-banner-ad" ALIGN=""> <PARAM NAME=movie VALUE="http://www.indexfunds.com/images/riskbanner.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="http://www.indexfunds.com/images/riskbanner.swf" quality=high bgcolor=#000000  WIDTH="468" HEIGHT="60" NAME="RCS-banner-ad" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
	
	//document.write("<div style=\"text-align:center; color:white; font-size:14px; font-family:Arial, Helvetica, sans-serif; border: 1px solid #999999; border-collapse:collapse;\"><a href=\"https://ifa.webex.com\" target=\"_blank\"><strong>Join our LIVE Web Seminar Right NOW!</strong></a> <br>Learn more about the advantages of Index Funds with our live, interactive webinars. Hosted by an Index Funds Advisor.</div>")
	
	// Parameter is the month,date,time the seminar will start. 
	//document.write( webSeminarBanner(5, 9, 13, 0) );
	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="470" height="60" id="countdowntimerclock5" 	align="middle"><param name="allowScriptAccess" value="sameDomain"/><param name="movie" value="http://www.indexfunds.com/flash/countdowntimerclock5.swf"/><param name="quality" value="high"/><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" /><embed src="http://www.indexfunds.com/flash/countdowntimerclock5.swf" quality="high" bgcolor="#ffffff" width="470" height="60" name="countdowntimerclock5" align="middle" allowScriptAccess="sameDomain" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	
	
	document.write ('</td></tr></table>');
	
	
	
}

//No Longer Use.
/*function homeBanner()
{
	document.write ("<table border=1 bordercolor=#000000  cellspacing=0 cellpadding=0 width=468 bgcolor=#000000><tr><td>");
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="468" HEIGHT="60" id="RCS-banner-ad2" ALIGN=""> <PARAM NAME=movie VALUE="http://www.indexfunds.com/images/riskbanner.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="http://www.indexfunds.com/images/riskbanner.swf" quality=high bgcolor=#000000  WIDTH="468" HEIGHT="60" NAME="RCS-banner-ad2" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
	
	//document.write("<div style=\"text-align:center; font-size:14px; color:white; font-family:Arial, Helvetica, sans-serif; border: 1px solid #999999; border-collapse:collapse;\"><a href=\"https://ifa.webex.com\" target=\"_blank\"><strong>Join our LIVE Web Seminar Right NOW!</strong></a> <br>Learn more about the advantages of Index Funds with our live, interactive webinars. Hosted by an Index Funds Advisor.</div>")
	document.write ("</td></tr></table>");
}
*/
function bottomBanner()
{    	
	document.write ("<table border=0 bordercolor=#000000  cellspacing=0 cellpadding=0 width=468><tr><td>");
	document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="468" HEIGHT="60" id="RCS-banner-ad" ALIGN=""> <PARAM NAME=movie VALUE="http://www.indexfunds.com/images/riskbanner.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="http://www.indexfunds.com/images/riskbanner.swf" quality=high bgcolor=#000000  WIDTH="468" HEIGHT="60" NAME="RCS-banner-ad" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
	document.write ("</td></tr></table>");
}





function leftad()
{
	lads = new Array();
	//lads[0] = "<a href=\"http://www.ifa.com/Bookdownload.asp\" target=\"_blank\"><img src=\"http://www.ifa.com/images/12StepCover2004.gif\" border=0></a>";
	lads[0] = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"160\" height=\"600\">" +
          "<param name=\"movie\" value=\"http://www.ifa.com/flash/160x600 Risk Capacity Survey.swf\">" +
          "<param name=\"quality\" value=\"high\">" +
          "<param name=\"wmode\" value=\"transparent\">" +
          "<embed src=\"http://www.ifa.com/flash/160x600 Risk Capacity Survey.swf\" width=\"160\" height=\"600\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"transparent\"></embed></object>" 
	
	    lads[1] =" <span style=\"font-size: 16px; line-height: 1.4em; font-weight: bold; font-family: \"Times New Roman\", Times, serif; text-align:center;\"> Weekly Dose of Indexing Knowledge </span><a href=\"http://www.ifa.com/emailcampaign/quotesignup.aspx?src=hom\" target=\"_blank\"><br><img src=\"http://www.ifa.com/images/optimize/QoW_ad_160.jpg\" width=\"160\" height=\"201\" border=\"0\"></a><br><a href=\"http://www.ifa.com/emailcampaign/quotesignup.aspx?src=hom\" target=\"_blank\">Sign up for IFA Quote of the Week</a> "
	
	
    lads[2] = "<a href='http://hc2.humanclick.com/hc/42353038/?cmd=file&file=visitorWantsToChat&site=42353038&byhref=1' target='chat42353038' onClick=\"window.open('http://hc2.humanclick.com/hc/42353038/?cmd=file&file=visitorWantsToChat&site=42353038','chat42353038','width=475,height=320');return false;\"><img src='http://hc2.humanclick.com/hc/42353038/?cmd=repstate&site=42353038&imageUrl=http://www.ifa.com/humanclick&ver=1' name='hcIcon' width=184 height=38 border=0 align=\"left\"></a>"

    lads[3] = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"160\" height=\"600\">" +
          "<param name=\"movie\" value=\"http://www.indexfunds.com/flash/ipod-money.swf\">" +
          "<param name=\"quality\" value=\"high\">" +
          "<param name=\"wmode\" value=\"transparent\">" +
          "<embed src=\"http://www.indexfunds.com/flash/ipod-money.swf\" width=\"140\" height=\"300\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"transparent\"></embed></object>"
	//var ladchoice = (Math.round(Math.random() * 10)) % lads.length;
	document.write ("<table border=1 bordercolor=#FFFFFF cellspacing=0 bgcolor=#FFFFFF><tr><td>"); 
	document.write (lads[0]);
	document.write ("<br/><p></td></tr><tr><td valign=\"top\">")

	document.write (lads[1]);
	document.write("</td></tr><tr><td><br/><br/>");
	document.write (lads[2]);
	//document.write("</td></tr><tr><td>");
	//document.write (lads[3]);
	document.write("</td></tr></table>");
} 

function skyscraper(skyscraperNum)
{
	document.write ("<table border=1 bordercolor=#FFFFFF  cellspacing=0 cellpadding=2 width=120 bgcolor=#FFFFFF><tr><td>");
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs');
	document.write('/flash/swflash.cab#version=6,0,29,0" width="120" height="600">        <param name="movie" value="http://www.indexfunds.com/images/bull_rcs.swf">');
	document.write('<param name="quality" value="high"><param name="wmode" value="transparent"><embed src="http://www.indexfunds.com/images/bull_rcs.swf" quality="high" pluginspage="http');
	document.write('://www.macromedia.com/go/getflashplayer" wmode="transparent" type="application/x-shockwave-flash" width="120" height="600"></embed></object>');
	document.write('');
	document.write ("</td></tr></table>");
}

function rightSkyscraper(skyscraperNum)
{
	hereandnow += (Math.round(Math.random() * 10)) % 10;
	hereandnow += (Math.round(Math.random() * 10)) % 10;
	hereandnow += (Math.round(Math.random() * 10)) % 10;
	document.write ("<table border=1 bordercolor=#FFFFFF  cellspacing=0 cellpadding=2 width=120 bgcolor=#FFFFFF><tr><td>");
	document.write ("<a href=\"http://ad.doubleclick.net/jump/N2992.Indexfunds.com__/B1103657.4;sz=120x600;ord=" + hereandnow + "?\" target=\"_blank\">");
	document.write ("<img src=\"http://ad.doubleclick.net/ad/N2992.Indexfunds.com__/B1103657.4;sz=120x600;ord=" + hereandnow + "?\" border=0 width=120 height=600>");
	document.write ("</a>");		
	document.write ("</td></tr></table>");
}

function Sponsors()
{
	document.write ("<table border=1 bordercolor=#FFFFFF  cellspacing=0 cellpadding=2 width=120 bgcolor=#FFFFFF>");
	document.write ("<tr><td align=center><a href=\"http://www.indexfunds.com/cgi-bin/NetTracker/ntadtrack.cgi?http://www.vanguard.com\" target=\"_blank\"><img src=\"http://www.indexfunds.com/images/Vanguard.gif\" border=0></a></td></tr>");
	document.write ("<tr><td align=center><a href=\"http://www.indexfunds.com/cgi-bin/NetTracker/ntadtrack.cgi?http://www.indexfunds.com/Summit/home.htm\" target=\"_blank\"><img src=\"http://www.indexfunds.com/images/Summitlogowide.gif\" border=0></a></td></tr>");
	document.write ("</table>");
}

function DBSponsors()
{
	advisors = new Array();
	advisors[0] = "<a href=\"http://www.indexfunds.com/cgi-bin/NetTracker/ntadtrack.cgi?http://psinvest.com\" target=\"_blank\"><img src=\"http://www.indexfunds.com/images/PS120x40.gif\" border=0></a>";
	advisors[1] = "<a href=\"http://www.indexfunds.com/cgi-bin/NetTracker/ntadtrack.cgi?http://evansonasset.com/\" target=\"_blank\"><img src=\"http://www.indexfunds.com/images/EAM120x40.gif\" border=0></a>";
	advisors[2] = "<a href=\"http://www.indexfunds.com/cgi-bin/NetTracker/ntadtrack.cgi?http://www.tamasset.com/\" target=\"_blank\"><img src=\"http://www.indexfunds.com/images/TAMasset120x40.gif\" border=0></a>";
	var adchoice = 1 + ((Math.round(Math.random() * 10)) % advisors.length);
	document.write ("<table border=1 bordercolor=#FFFFFF  cellspacing=0 cellpadding=2 width=120 bgcolor=#FFFFFF>");
	for(var count=0; count < advisors.length; count++)
	{
		if (adchoice == advisors.length) adchoice = 0;
		document.write ("<tr><td align=center>")
		document.write(advisors[adchoice]);
		document.write ("</td></tr>");
		adchoice++;
	}
	document.write ("</table>");
}

function MM_swapImgRestore() 
{
  	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}



function MM_findObj(n, d) { //v4.01
  	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function NavBar(currentPage) 
{
document.write("<table width=\"860\" border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" id=\"Table_01\">  <tr>")
document.write("   <td><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"850\" height=\"97\">")
document.write(" <param name=\"movie\" value=\"http://www.indexfunds.com/flash/indexfunds_banner.swf\">")
document.write(" <param name=\"quality\" value=\"high\">")
document.write(" <embed src=\"http://www.indexfunds.com/flash/indexfunds_banner.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"850\" height=\"97\"></embed>")
document.write(" </object></td>  </tr>")
document.write(" <tr><td height=\"23\"><img src=\"http://www.indexfunds.com/images/index_navbar.jpg\" width=\"850\" height=\"23\" border=\"0\" usemap=\"#Map\"></td></tr>")
document.write(" <tr><td valign=\"top\"><img src=\"http://www.indexfunds.com/images/Index-Funds-Home_green-line.jpg\" width=\"850\" height=\"10\">")
document.write("<map name=\"Map\">")
document.write("<area shape=\"rect\" coords=\"3,2,61,21\" href=\"http://www.indexfunds.com/index.php\" target=\"_self\">")
document.write("<area shape=\"rect\" coords=\"63,2,220,21\" href=\"http://www.ifa.com/SurveyNET/index.aspx\" target=\"_blank\">")
document.write("<area shape=\"rect\" coords=\"222,2,346,21\" href=\"http://www.indexfunds11.com/step11page5.php\" target=\"_self\">")
document.write("<area shape=\"rect\" coords=\"482,2,557,21\" href=\"http://www.indexfunds.com/library/index.php\" target=\"_self\">")
document.write("<area shape=\"rect\" coords=\"559,2,626,21\" href=\"http://www.indexfunds.com/learn.php\" target=\"_self\">")
document.write("<area shape=\"rect\" coords=\"628,2,718,20\" href=\"http://www.indexfunds.com/advisors.php\" target=\"_self\">")
document.write("<area shape=\"rect\" coords=\"720,2,774,21\" href=\"http://www.ifa.com\" target=\"_self\">")
document.write("<area shape=\"rect\" coords=\"776,2,845,21\" href=\"http://www.indexfunds.com/Search/\" target=\"_self\">")
document.write("<area shape=\"rect\" coords=\"348,2,480,21\" href=\"http://www.indexfunds.com/12steps/\" target=\"_self\"></map>")
document.write("</td></tr></table>");
	
}

/*function NavBar1(currentPage)
{
	document.write("<table height=5 width=750 border=0 cellspacing=0 cellpadding=0>");
	document.write("<tr bgcolor=#000000>");
	document.write("<td>");
	document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("<table height=60 width=750 border=0 cellspacing=0 cellpadding=0>");
	document.write("<tr>");
	document.write("<td bgcolor=#000000 height=60 width=250 align=left>");
	
	if(currentPage == "Home") document.write("<img src=\"http://www.indexfunds.com/images/IFLogo.gif\">");
	else document.write("<a href=\"http://www.indexfunds.com/\"><img src=\"http://www.indexfunds.com/images/IFLogo.gif\" alt=\"Return to IndexFunds Home\" border=0></a></TD>"); 
	
	document.write("<td bgcolor=#000000 height=60 width=500 ALIGN=left>");
	
	/*if (currentPage == "Home") homeBanner();
	else banner();
	*/
/*	
	banner();
	
	document.write ("</td></tr>");
	document.write ("</table>");
	document.write("<table height=20 width=300 border=0 cellspacing=0 cellpadding=0>");
	document.write ("<tr bgcolor=#000000>");
	document.write ("<td><table width=300 border=0 cellspacing=0 cellpadding=0><tr>");
	document.write ("<td><img src=\"http://www.indexfunds.com/images/Tgreen-space.gif\" width=15></td>");
	
	if(currentPage == "Home") document.write("<td align=center><img src=\"http://www.indexfunds.com/images/homeD.gif\"></td>");
	else document.write("<td align=center><a href=\"http://www.indexfunds.com/index.php\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('home','','http://www.indexfunds.com/images/homeD.gif',1)\"><img src=\"http://www.indexfunds.com/images/homeU.gif\" border=0 alt=\"IndexFunds Home\" name=\"home\"></a></td>");
	if(currentPage == "RCS") document.write("<td align=center><img src=\"http://www.ifa.com/SurveyNET/index.aspx\"></td>");
	else document.write("<td align=center><a href=\"http://www.ifa.com/SurveyNET/index.aspx\" target=\"_blank\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('rcs','','http://www.indexfunds.com/images/rcsD.gif',1)\"><img src=\"http://www.indexfunds.com/images/rcsU.gif\" border=0 alt=\"Risk Capacity Survey\" name=\"rcs\"></a></td>");
	if(currentPage == "IndexPortfolios") document.write("<td align=center><img src=\"http://www.indexfunds.com/images/indexportfoliosD.gif\"></td>");
	else document.write("<td align=center><a href=\"http://www.indexfunds11.com/step11page5.php\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('IndexPortfolios','','http://www.indexfunds.com/images/indexportfoliosD.gif',1)\"><img src=\"http://www.indexfunds.com/images/indexportfoliosU.gif\" border=0 alt=\"Index Portfolios\" name=\"IndexPortfolios\"></a></td>");
	if(currentPage == "12steps") document.write("<td align=center><img src=\"http://www.indexfunds.com/images/12stepsD.gif\"></td>");
	else document.write("<td align=center><a href=\"http://www.indexfunds.com/12steps\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('12steps','','http://www.indexfunds.com/images/12stepsD.gif',1)\"><img src=\"http://www.indexfunds.com/images/12stepsU.gif\" border=0 alt=\"12 Step Program\" name=\"12steps\"></a></td>");
	if(currentPage == "Library") document.write("<td align=center><img src=\"http://www.indexfunds.com/images/libraryD.gif\"></td>");
	else document.write ("<td align=center><a href=\"http://www.indexfunds.com/library/index.php\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('library','','http://www.indexfunds.com/images/libraryD.gif',1)\"><img src=\"http://www.indexfunds.com/images/libraryU.gif\" border=0 alt=\"Library\" name=\"library\"></a></td>");
	if(currentPage == "Learn") document.write("<td align=center><img src=\"http://www.indexfunds.com/images/learnD.gif\"></td>");
	else document.write ("<td align=center><a href=\"http://www.indexfunds.com/learn.php\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('learn','','http://www.indexfunds.com/images/learnD.gif',1)\"><img src=\"http://www.indexfunds.com/images/learnU.gif\" border=0 alt=\"Learn About Index Funds\" name=\"learn\"></a></td>");
	if(currentPage == "Advisors") document.write("<td align=center><img src=\"http://www.indexfunds.com/images/advisorsD.gif\"></td>");
	else document.write ("<td align=center><a href=\"http://www.indexfunds.com/advisors.php\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('advisors','','http://www.indexfunds.com/images/advisorsD.gif',1)\"><img src=\"http://www.indexfunds.com/images/advisorsU.gif\" border=0 alt=\"Index Funds Advisors\" name=\"advisors\"></a></td>");
	if(currentPage == "IFA") document.write("<td align=center><img src=\"http://www.indexfunds.com/images/ifaD.gif\"></td>");
	else document.write ("<td align=center><a href=\"http://www.ifa.com\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('ifa','','http://www.indexfunds.com/images/ifaD.gif',1)\"><img src=\"http://www.indexfunds.com/images/ifaU.gif\" border=0 alt=\"Index Funds Advisors, Inc.\" name=\"ifa\"></a></td>");
	if(currentPage == "Search") document.write("<td align=center><img src=\"http://www.indexfunds.com/images/searchD.gif\"></td>");
	else document.write ("<td align=center><a href=\"http://www.indexfunds.com/Search/search.asp\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('search','','http://www.indexfunds.com/images/searchD.gif',1)\"><img src=\"http://www.indexfunds.com/images/searchU.gif\" border=0 alt=\"Index Funds Search\" name=\"search\"></a></td>");

	document.write ("</tr></table></td>");
	document.write ("<td>");
	'SearchBox();'
	document.write ("</td>");
	document.write ("</tr>");
	document.write ("<tr bgcolor=#000000><td colspan=2 height=1><img src=\"http://www.indexfunds.com/images/thinHorShade.gif\" width=750 height=1></td></tr>");
	document.write ("</table>");

}
*/
/*function SearchBox()
{
	document.write ("<table border=0 cellspacing=0 cellpadding=0 align=right><tr><td width=10></td><td></td>");
	'document.write ("<td><form method=\"post\" action=\"http://www.indexfunds.com/cgi-bin/htsearch\"></td>");'
	document.write ("<td><form method=\"post\" action=\"http://www.indexfunds.com/Search/search.asp\"></td>");
	document.write ("<TD width=376 height=28 ROWSPAN=2 align=right bgcolor=#000000><input name=\"words\" type=\"text\" style=\"color:#000000; background-color:#FFFFFF; font:9px Arial, Helvetica\" size=\"15\" align=\"bottom\">&nbsp;&nbsp;");
	document.write ("<input type=\"hidden\" name=\"method\" value=\"and\">");
	document.write ("<input type=\"hidden\" name=\"format\" value=\"Long\">");
	document.write ("<input type=\"hidden\" name=\"sort\" value=\"score\">");
	document.write ("<input type=\"hidden\" name=\"config\" value=\"htdig\">");
	document.write ("<input type=\"hidden\" name=\"restrict\" value=\"\">");
	document.write ("<input type=\"hidden\" name=\"exclude\" value=\"\"></td>");
	document.write ("<TD width=50 height=28 ROWSPAN=2 align=right bgcolor=#000000><a onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('search','','http://www.indexfunds.com/images/searchD.gif',1)\"><input type=\"image\" src=\"http://www.indexfunds.com/images/searchU.gif\" border=0 name=\"search\"></a></td>");
	document.write ("<td></form></td><TD width=13 height=28 rowspan=2 align=right bgcolor=#000000></td></tr></table>");
}
*/
function LeftSide(currentPage)
{   
	document.write ("<table width=120 cellspacing=0 cellpadding=2><tr><td align=center>");
	leftad();
	document.write ("<table cellspacing=0 cellpadding=0><tr><td height=3>&nbsp;</td></tr></table>");
	document.write ("<img src=\"http://www.indexfunds.com/images/Tgreen-space.gif\" height=5 width=5><br>");
	//skyscraper(skyscraperLeft);
	document.write ("</td></tr></table>");
}

function RightSide()
{
}


function Credits() 
{
	//This shows the risk capacity banner.
	//bottomBanner();

	document.write("<br>");
	document.write("<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>");
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="750" HEIGHT="100" id="RCS-banner-ad" ALIGN=""> <PARAM NAME=movie VALUE="http://www.ifa.com/flash/bogle_quotes.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="http://www.ifa.com/flash/bogle_quotes.swf" quality=high bgcolor=#000000  WIDTH="750" HEIGHT="85" NAME="RCS-banner-ad" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');

document.write("</td></tr><tr><td>");

	document.write ("<table width=\"850\" height=\"68\" border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" id=\"Table_01\">");
	document.write ("<tr>");
	document.write ("<td height=\"68\" valign=\"top\">");
	document.write ("<img src=\"http://www.indexfunds.com/images/Index-Funds-Home_07.jpg\" width=\"850\" height=\"53\" border=\"0\" usemap=\"#Map23\">");
	document.write ("</td>");
	document.write ("</tr>");
	document.write("<tr><td align=\"center\"><font size=-1 face=\"Arial\">&copy; " + new Date().getFullYear()+ " <a href=\"http://www.indexfunds.com/aboutus.htm\">Index Funds, Inc</a>. All rights reserved.</td></tr>")
	document.write ("</table>");

	
	document.write ( "</td></tr></table>");
	document.write ("<map name=\"Map23\"><area shape=\"rect\" coords=\"142,17,205,39\" href=\"http://www.indexfunds.com\" target=\"_self\">");
	document.write ("<area shape=\"rect\" coords=\"226,15,299,42\" href=\"http://www.indexfunds.com/glossary.asp\" target=\"_self\">");
	document.write ("<area shape=\"rect\" coords=\"314,15,381,41\" href=\"http://www.indexfunds.com/library/books.php\" target=\"_self\">");
	document.write ("<area shape=\"rect\" coords=\"400,16,481,39\" href=\"http://www.indexfunds.com/aboutus.htm\" target=\"_self\">");
	document.write ("<area shape=\"rect\" coords=\"503,16,600,39\" href=\"http://www.indexfunds.com/legal.htm\" target=\"_self\">");
	document.write ("<area shape=\"rect\" coords=\"615,16,723,43\" href=\"http://www.indexfunds.com/privacy.htm\" target=\"_self\">");
	document.write ("</map>");
	document.write ("<!-- BEGIN HumanTag Monitor. DO NOT MOVE! MUST BE PLACED JUST BEFORE THE /BODY TAG --><script language='javascript' src='http://hc2.humanclick.com/hc/42353038/x.js?cmd=file&file=chatScript3&site=42353038&category=en;corporate;1'> </script><!-- END HumanTag Monitor. DO NOT MOVE! MUST BE PLACED JUST BEFORE THE /BODY TAG -->");
	
	document.write('<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-224397-3";urchinTracker();</script>');
	//IE6 Activex update call
	if( isIE6() ) {
		ieupdate();		
	}
}

function Credits2() 
{
	bottomBanner();
	/*document.write("<br>");
	document.write("<table height=20 width=750 border=0 cellspacing=0 cellpadding=0>");
	document.write ("<tr bgcolor=#000000>");
	document.write ("<td>");
	document.write ("<table width=100% border=0 cellspacing=0 cellpadding=0>");
	document.write ("<tr>");
	document.write ("<td>");
	document.write ("</td>");
	document.write ("<td align=center><a href=\"http://www.indexfunds.com\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('home','','http://www.indexfunds.com/images/homebottomD.gif',1)\"><img src=\"http://www.indexfunds.com/images/homebottomU.gif\" border=0 alt=\"Glossary\" name=\"home\"></a></td>");
	document.write ("<td align=center><a href=\"http://www.indexfunds.com/glossary.asp\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('glossary','','http://www.indexfunds.com/images/glossaryD.gif',1)\"><img src=\"http://www.indexfunds.com/images/glossaryU.gif\" border=0 alt=\"Glossary\" name=\"glossary\"></a></td>");
	document.write ("<td align=center><a href=\"http://www.indexfunds.com/library/books.php\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('books','','http://www.indexfunds.com/images/booksD.gif',1)\"><img src=\"http://www.indexfunds.com/images/booksU.gif\" border=0 alt=\"Privacy Policy\" name=\"books\"></a></td>");
	document.write ("<td align=center><a href=\"http://www.indexfunds.com/aboutus.htm\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('aboutus','','http://www.indexfunds.com/images/aboutusD.gif',1)\"><img src=\"http://www.indexfunds.com/images/aboutusU.gif\" border=0 alt=\"About Us\" name=\"aboutus\"></a></td>");
	document.write ("<td align=center><a href=\"http://www.indexfunds.com/legal.htm\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('legal','','http://www.indexfunds.com/images/legalnoticesD.gif',1)\"><img src=\"http://www.indexfunds.com/images/legalnoticesU.gif\" border=0 alt=\"Legal Notices\" name=\"legal\"></a></td>");
	document.write ("<td align=center><a href=\"http://www.indexfunds.com/privacy.htm\" onmouseout='MM_swapImgRestore()' onmouseover=\"MM_swapImage('privacy','','http://www.indexfunds.com/images/privacypolicyD.gif',1)\"><img src=\"http://www.indexfunds.com/images/privacypolicyU.gif\" border=0 alt=\"Privacy Policy\" name=\"privacy\"></a></td>");
	document.write ("</tr>");
	document.write ("</table>");
	document.write ("</td>");
	document.write ("</tr>");
	document.write ("</table>");*/
	
	bannerQuotes();

	/*document.write ("<!-- BEGIN HumanTag Monitor. DO NOT MOVE! MUST BE PLACED JUST BEFORE THE /BODY TAG --><script language='javascript' src='http://hc2.humanclick.com/hc/42353038/x.js?cmd=file&file=chatScript3&site=42353038&category=en;corporate;1'> </script><!-- END HumanTag Monitor. DO NOT MOVE! MUST BE PLACED JUST BEFORE THE /BODY TAG -->");
	
	document.write('<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-224397-3";urchinTracker();</script>');
				*/																																								
}

function bannerQuotes()
{    	
	document.write ("<br><br><table border=0 bordercolor=#000000  cellspacing=0 cellpadding=0 width=700><tr><td>");
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="700" height="40">        <param name="movie" value="http://www.indexfunds.com/images/flash/banner_quotes.swf">        <param name="quality" value="high">        <embed src="http://www.indexfunds.com/images/flash/banner_quotes.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="40"></embed></object>');
	document.write ("</td></tr></table>");
}

//Email Icon and Link for the Articles Pages
function Email() 
{
	document.write('<IMG height=14 src="http://www.indexfunds.com/images/icons/email.gif" width=15><SPAN class=utility><a href="http://www.indexfunds');
	//document.write('<IMG height=14 src="images/icon-email.gif" width=15><SPAN class=utility><a href="http://www.indexfunds');
	document.write('.com/cgi-bin/birdcast.cgi">&nbsp;email this article</A>');
}



function DFA() 
{
	document.write('<p align="center">Reprinted with permission from <a href="http://www.dfaus.com">Dimensional                             ');
	document.write('Fund Advisors</a>.</p>');
}

//To Top function shown on the bottom of every Articles Page
function ToTop() 
{
	document.write('<a href="#TOP">Back to Top</a>');
}

/*****Start IE Update Code
 * Following is taken from http://activecontent.blogspot.com/
 * Microsoft's IE update in April forces users to click an ActiveX control before using it. 
 * This code will fix the problem. Function will be called in the footer body.
 */
 
function isIE6() {
  // only for Win IE 6+
  // But not in Windows 98, Me, NT 4.0, 2000
  var strBrwsr= navigator.userAgent.toLowerCase();
  if (strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0) {
    if (parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6) {
      return false;
    }
    if (strBrwsr.indexOf("win98") > -1 ||
       strBrwsr.indexOf("win 9x 4.90") > -1 ||
       strBrwsr.indexOf("winnt4.0") > -1 ||
       strBrwsr.indexOf("windows nt 5.0") > -1)
    {
      return false;
    }
    return true;
  } else {
    return false;
  }
}
 
function ieupdate(){
 var strBrowser = navigator.userAgent.toLowerCase();
 if( isIE6() ){
  var theObjects = document.getElementsByTagName('object');
  var theObjectsLen = theObjects.length;
  for (var i = 0; i < theObjectsLen; i++) {
   if(theObjects[i].outerHTML){
    if(theObjects[i].data){
     theObjects[i].removeAttribute('data');
    }
    var theParams = theObjects[i].getElementsByTagName("param");
    var theParamsLength = theParams.length;
    for (var j = 0; j < theParamsLength; j++) {
      if(theParams[j].name.toLowerCase() == 'flashvars'){
        var theFlashVars = theParams[j].value;
      }
    }
    var theOuterHTML = theObjects[i].outerHTML;
    var re = /<param name="FlashVars" value="">/ig;
    theOuterHTML = theOuterHTML.replace(re, "<param name='FlashVars' value='" + theFlashVars + "'>");
    theObjects[i].outerHTML = theOuterHTML;
   }
  }
 }
}

window.onunload = function() {
 if( isIE6() ) {
 	if (document.getElementsByTagName) {
  		var objs = document.getElementsByTagName("object");
  		for (i=0; i<objs.length; i++) {
 	  		objs[i].outerHTML = "";
  		}
	}
 }
}

/****End IE Update Code*******/