//
// On mouse roll over on menu items show rollover graphic.
			var curMenu;
      var oldNum = null;
      var left = [];
      var timer;
      var timer2;
      left[0] = 10;
      left[1] = left[0] + 101;
      left[2] = left[1] + 167;
      left[3] = left[2] + 160;
      left[4] = left[3] + 134;
      left [5] = left[4] + 116 ;

       function mouseOver( num )
       {
             //    alert("In mouseOver, num & oldNum: " + num + ",  " + oldNum);
            if( num == oldNum) {
              //alert("In mouseOver- num: " + num );
              clearTimeout( timer );
              //oldNum = null;
              return;
            }
           if(oldNum != null ) {
              //alert("oldNum : " + oldNum );
              document.getElementById("roll_" + oldNum).style.visibility = "hidden";
              clearTimeout(timer);
              oldNum = null;
           }
					 //  alert( "curMenu =" + curMenu );
           if( curMenu == num ) return;
           oldNum = num;
           document.getElementById("roll_" + num).style.zindex = 100;
           document.getElementById("roll_" + num).style.top = "156px";
           document.getElementById("roll_" + num).style.left = left[num] + "px";
           document.getElementById("roll_" + num).style.visibility = "visible";
       }

       function mouseOut( )
       {
                //alert("  Timer Set In mouseOut");
          if ( oldNum != null ) {
              timer = setTimeout( "hideImg( ) ", 500 );
          }
        }
        function hideImg( )
        {
            //alert("in hideImg");
            document.getElementById("roll_" + oldNum).style.visibility = "hidden";
            oldNum = null;
         }

				 function loadMainPage( mainPageName )
				 /*****************************************************************
					saves the name of the main page so it can be used by laodRefs
					when it is called by subpages.
															3/27/2010 5:44PM
				 *****************************************************************/
				 {
					// alert( "saving page name:" + mainPageName);
					 document.cookie = " mainPage=" + escape(mainPageName);
		 			 var myCookie = " " + document.cookie + ";";  //
					 //alert ("myCookie:" + myCookie );
			 		 loadRefs( mainPageName );
			 	 }  // loadMainPage


				 function loadRefs ( page )
				 /*****************************************************************
					Writes references to other pages and back to About Us statement that is
					appropriate for the About Us main page and pages called from it.
															3/27/2010 4:43PM
				 *****************************************************************/
				 {
						 //alert( "enter loadRefs, page ="  + page );
						 var myCookie = " " + document.cookie + ";";  //
						 //alert ("myCookie:" + myCookie );
						 var startPageName = myCookie.indexOf( "mainPage", 0 );
						 //alert("point 2-" + startPageName );
						 startPageName = myCookie.indexOf( "=" , startPageName );
						 var endPageName = myCookie.indexOf( ";", startPageName );
						 returnMenu = unescape( myCookie.substring( startPageName + 1, endPageName ));
						 //alert("in loadRefs  returnMenu = "  + returnMenu );

  					 var htmlString =	"";
						 var navBlock = document.getElementById("nav_div");
								//alert("testing nav_div");
						 if ( navBlock == null ) {
						 	alert("no navBlock");
						 	return;
						 }
  					 var imgHTMLString =	"";
						 var imgBlock = document.getElementById("img_div");
								//alert("testing img_div");
						 if ( imgBlock == null ) {
						 	alert("no imgBlock");
						 	return;
						 }
						 var rollBlock = document.getElementById("roll_div");
								//alert("testing nav_div");
						 if ( rollBlock == null ) {
						 	alert("no rollBlock");
						 	return;
						 }
  					 var rollHTMLString =	rollBlock.innerHTML;

  					 if ( returnMenu == "AboutUs" ) {
							 curMenu = 0;
								 //alert( " writting lines");
							 imgHTMLString =	imgHTMLString + '<span style="position:absolute; top:156px; left:10px">';
							 if( page != "AboutUs" ) imgHTMLString =	imgHTMLString + '<a href="index.html" onmouseover="mouseOver( 0 )">';
						  imgHTMLString =	imgHTMLString + '<img src="AboutUs_f2.jpg" width="101" border="0"  onmouseover="mouseOver( 0 )">';
							if( page != "AboutUs" ) imgHTMLString =	imgHTMLString + '</a>';
							imgHTMLString =	imgHTMLString + '<a href="FinancialServices.html" onmouseover="mouseOver( 1 )"  onmouseout="mouseOut()">'
															 + '<img src="FinancialServices.jpg" width="167" border="0"></a>'
															 + '<a href="JustStarting.html"  onmouseover="mouseOver( 2 )" onmouseout="mouseOut()">'
															 + '<img src="JustStarting.jpg" width="160" border="0"></a>'
															 + '<a href="ForInvestors.html" onmouseover="mouseOver( 3 )" onmouseout="mouseOut()">'
															 + '<img src="ForInvestors.jpg" width="134" border="0"></a>'
															 + '<a href="Retirement.html" onmouseover="mouseOver( 4 )" onmouseout="mouseOut()">'
															 + '<img src="Retirement.jpg" width="116" border="0"></a>'
															 + '<a href="ContactUs.html" onmouseover="mouseOver( 5 )" onmouseout="mouseOut()">'
															 + '<img src="ContactUs.jpg" width="114" border="0"></a></span>';

							 if( page != "AboutUs" ) {
	 							 	  htmlString = htmlString + ' <a href="index.html"><span style="font-family:Arial">Back to About Us</span></a>' ;
							 }
               htmlString = htmlString  + ' <br><br> <span style="color:#64B43D; font-family:Arial; font-size:14pt">More About Us</span>'
								                   + "<ul> "  ;
							 if( page != "DavidWertz" ) {
								  htmlString = htmlString  + '<li><a href="DavidWertz.html"><span style="color:#025299; font-family:Arial; font-size:12pt">'
								                   +       'David Wertz, Ph.D.</span></a></li>';
					   	 }
							 if( page != "Philosophy" ) {
									htmlString = htmlString  + '<li><a href="Philosophy.html"><span style="color:#025299; font-family:Arial; font-size:12pt">'
																+ 'PVA Philosophy</span></a></li>';
							 }

						   if( page != "Method" ) {
                  htmlString = htmlString +  '<li><a href="BetterInvestmentMethod.html"><span style="color:#025299; font-family:Arial; font-size:12pt">'
																	 +       'Our Better Investment Method</span></a></li>' ;
							 }

					/**
						   if( page != "Selection" ) {
							    htmlString = htmlString +   '<li><a href="About_Methodology.html"><span style="color:#025299; font-family:Arial; font-size:12pt">'
								                   +       'Selecting <i>Your</i> Investments</span></a></li>' ;
							 }
					 **/
						   if( page != "Results" ) {
							    htmlString = htmlString + '<li><a href="About_StockResults.html"><span style="color:#025299; font-family:Arial; font-size:12pt">'
								                   +       'Stock Results 2000 - present</span></a></li>' ;
							 }

								htmlString = htmlString + " </ul>";

							 //	alert( "finished writting lines");
						 }
						 else {
								rollHTMLString = rollHTMLString + '<a href="index.html" onmouseout="mouseOut( )" onmouseover="mouseOver( 0 )">'
								                 + '<img  id="roll_0" style="position:absolute; visibility:hidden" src="AboutUs_f2.jpg" width="101" border="0"></a>';
						 }
		/*********************************************************************/

 						//alert("Testing forInvestors");
						 if ( returnMenu == 'ForInvestors'  ) {
							  //alert("writting ForInvestors");
							 curMenu=3;
 	  					  imgHTMLString =	imgHTMLString + 	'<span style="position:absolute; top:156px; left:10px">'
								                 + '<a href="index.html" onmouseover="mouseOver( 0 )" onmouseout="mouseOut()">'
															   + '<img src="AboutUs.jpg" width="101" border="0"></a>';
   							 imgHTMLString =	imgHTMLString + '<a href="FinancialServices.html" onmouseover="mouseOver( 1 )" onmouseout="mouseOut()">'
								                  + '<img src="FinancialServices.jpg" width="167" border="0"></a>'
								                  + '<a href="JustStarting.html"  onmouseover="mouseOver( 2 )" onmouseout="mouseOut()">'
															    + '<img src="JustStarting.jpg" width="160" border="0"></a>';

 						   if( page != "ForInvestors" ) {
									imgHTMLString =	imgHTMLString +  '<a href="ForInvestors.html" onmouseover="mouseOver( 3 )">';
							 }
							 imgHTMLString =	imgHTMLString + '<img src="ForInvestors_f2.jpg" width="134" border="0" onmouseover="mouseOver( 3 )">';
							 if( page != "ForInvestors" ) imgHTMLString =	imgHTMLString + '<a/>';

							 imgHTMLString =	imgHTMLString +	'<a href="Retirement.html" onmouseover="mouseOver( 4 )" onmouseout="mouseOut()">'
															 + '<img src="Retirement.jpg" width="116" border="0"></a>'
															 + '<a href="ContactUs.html" onmouseover="mouseOver( 5 )" onmouseout="mouseOut()">'
															 + '<img src="ContactUs.jpg" width="114" border="0"></a></span>';
 						   if( page != 'ForInvestors'  ) {
									htmlString = htmlString + '<a href="ForInvestors.html"><span style="font-family:Arial">'
									             + 'Back to For Investors</span></a>';
							 }
							 htmlString = htmlString + '<br><br><span style="color:#64B43D; font-family:Arial; font-size:14pt">'
									              + 'More For Investors:</span>';
               htmlString = htmlString + '<ul>';
							 if( page != 'Method' ) {
                  htmlString = htmlString +  '<li><a href="BetterInvestmentMethod.html">'
									             + '<span style="color:#025299; font-family:Arial; font-size:12pt">'
															 + 'Our Better Investment Method</span></a></li>';
							 }
						   if( page != "Selection" ) {
							    htmlString = htmlString +   '<li><a href="About_Methodology.html"><span style="color:#025299; font-family:Arial; font-size:12pt">'
								                   +       'Selecting <i>Your</i> Investments</span></a></li>' ;
						   }
               if( page != "GettingStarted" ) {
							   htmlString = htmlString + '<li><a href="GettingStarted.html"><span style="color:#025299; font-family:Arial; font-size:12pt">'
						 	              + 'Starting to Invest</span></a></li> ';
						 	 }

							 if( page != 'Results' ) {
                 htmlString = htmlString + '<li><a href="About_StockResults.html">'
								             + '<span style="color:#025299; font-family:Arial; font-size:12pt">Stock Results 2000 - present</span></a></li>';
							 }

	             htmlString = htmlString + '</ul>' + '<span style="color:#64B43D; font-family:Arial; font-size:14pt">Investment Highlights</span>'
                             + '<ul><span style="color:#025299; font-family:Arial; font-size:12pt">'
                             + '<li>Outstanding three decade <b>investment success</b> record.</li><li>Investments tailored to <b>your objectives</b>.</li>'
                             + '<li>Helping you and your family <b>stay secure</b>, now and in the future.</li></span></ul>';

		  				 //alert("finished writting ForInvestors");
						 }
						 else {
							  rollHTMLString = rollHTMLString + '<a href="ForInvestors.html" onmouseout="mouseOut( )" onmouseover="mouseOver( 3 )">'
								                 + '<img id="roll_3" style="position:absolute; visibility:hidden" src="ForInvestors_f2.jpg" width="134" border="0"></a>';
						 }


							if(returnMenu == "FinancialServices" ) {
							  curMenu = 1;

                imgHTMLString =  '<span style="position:absolute; top:156px; left:10px">'
							                  + '<a href="index.html" onmouseover="mouseOver( 0 )" onmouseout="mouseOut()">'
																+ '<img src="AboutUs.jpg" width="101" border="0"></a>' ;
							 if( page != "FinancialServices" ) {
								 imgHTMLString =	imgHTMLString + '<a href="FinancialServices.html" onmouseover="mouseOver( 1 )" onmouseout="mouseOut()">';
							 }
							 imgHTMLString =	imgHTMLString + '<img src="FinancialServices_f2.jpg" width="167" border="0" onmouseover="mouseOver( 1 )">';
			         if( page != "FinancialServices" )  imgHTMLString =	imgHTMLString + '</a>';
			 				imgHTMLString =	imgHTMLString  + '<a href="JustStarting.html"  onmouseover="mouseOver( 2 )" onmouseout="mouseOut()">'
																+ '<img src="JustStarting.jpg" width="160" border="0"></a>'
																+ '<a href="ForInvestors.html" onmouseover="mouseOver( 3 )" onmouseout="mouseOut()">'
																+ '<img src="ForInvestors.jpg" width="134" border="0"></a>'
																+ '<a href="Retirement.html" onmouseover="mouseOver( 4 )" onmouseout="mouseOut()">'
																+ '<img src="Retirement.jpg" width="116" border="0"></a>'
																+ '<a href="ContactUs.html" onmouseover="mouseOver( 5 )" onmouseout="mouseOut()">'
								                + '<img src="ContactUs.jpg" width="114" border="0"></a></span>';

							   if( page != "FinancialServices" ) {
								   htmlString = htmlString + '<a href="FinancialServices.html"><span style="font-family:Arial">'
									             + 'Back to Financial Services</span></a><br>';
							  }
							  htmlString = htmlString + '<br><span style="color:#64B43D; font-family:Arial; font-size:14pt">'
							              + 'More information about our services:</span>' + '<ul>';
 						   if( page != 'Philosophy' ) {
                 htmlString = htmlString + '<a href="Philosophy.html"> <li><span style="color:#025299; font-family:Arial; font-size:12pt">'
							                + 'PVA Philosophy</span></li></a>';
						   }
 						   if( page != 'fs_PlanFuture' ) {
                 htmlString = htmlString + '<a href="fs_PlanFuture.html"><li><span style="color:#025299; font-family:Arial; font-size:12pt">'
							                + 'Planning Your Financial Future</span></li></a>';
						   }
               htmlString = htmlString + '<a href="ForInvestors.html"> <li><span style="color2:#025299; font-family:Arial; font-size:12pt">'
							             + 'Go to For Investors page</span></li></a>' + '</ul>';
						 }
						 else {
							  rollHTMLString = rollHTMLString + '<a href="FinancialServices.html" onmouseout="mouseOut( )" onmouseover="mouseOver( 1 )">'
								                 + '<img id="roll_1" style="position:absolute; visibility:hidden" src="FinancialServices_f2.jpg" width="167" border="0"></a>';
						 }
						 imgBlock.innerHTML = imgHTMLString;
			 			 navBlock.innerHTML = htmlString;
						 rollBlock.innerHTML = rollHTMLString;
						 return;
					}



