/*Year stuff. */ 
        var nowDate = new Date(); 
        var nowYear = nowDate.getFullYear(); 

/*Navigation. */ 
        function nav(Location){ 
          hideobject("testimonial"); 
                     
          switch(Location) { 
             case 'Home': 
                p_body.innerHTML = bdyHome; 
                break; 
             case 'Services':
                p_body.innerHTML = bdyMedServ; 
                break; 
             case 'Credentials': 
                p_body.innerHTML = bdyCredit; 
                break; 
             case 'Insurance': 
                p_body.innerHTML = bdyIns; 
                break; 
             case 4: 
                p_body.innerHTML = bdyIns; 
                break;                 
             case 'Products': 
                p_body.innerHTML = bdyProducts; 
                break; 
             case 'FAQ': 
                p_body.innerHTML = bdyFAQ; 
                break; 
             case 'Links': 
                p_body.innerHTML = bdyLinks; 
                break; 
             case 'MedForms': 
                p_body.innerHTML = bdyMedForms; 
                break; 
             case 'Maps': 
                p_body.innerHTML = bdyLocation; 
                break; 
             case 'Articles': 
                p_body.innerHTML = bdyArticles; 
                break; 
             case 'Testimonials': 
                p_body.innerHTML = bdyTestimonials; 
                break; 
          } 
        } 

/*DISCLAIMER PROMPT*/
        function SPDisclaimer() { 
          var altMsg = "DISCLAIMER \n \n" 
          altMsg = altMsg  + "While we carry Standard Process products, neither myself nor any third \n" 
          altMsg = altMsg  + "party associated with, related to, or linked to my business or website \n" 
          altMsg = altMsg  + "is in any way affiliated with Standard Process Inc..   \n" 
          altMsg = altMsg  + "\n" 
          altMsg = altMsg  + "Standard Process expressly disclaims any responsibility for, and makes \n" 
          altMsg = altMsg  + "no representations or warranties regarding, any statement, information, \n" 
          altMsg = altMsg  + "materials, or content found on or included in my marking materials or \n" 
          altMsg = altMsg  + "website, or any third party marking materials or websites related to, \n" 
          altMsg = altMsg  + "associated with or linked to my business or website. \n" 
          altMsg = altMsg  + "\n" 
          altMsg = altMsg  + "For further information go to http://www.standardprocess.com." 
                
          alert(altMsg); 
        } 

/*RELOADS ANIMATION LOGO*/        
        function ReloadLogo() { 
          logo.src = "/images/logo_anim.gif"; 
        } 
        
/*SHOW TESTIMONIAL*/
        function ShowTes(ShowTesPicNum) { 
          switch(ShowTesPicNum){ 
             case 1: 
                visi("testimonial", bdyT1); 
                break; 
             case 2: 
              visi("testimonial", bdyT2); 
              break; 
             case 3: 
                visi("testimonial", bdyT3); 
                break; 
             case 4: 
              visi("testimonial", bdyT4); 
              break; 
             case 5: 
                visi("testimonial", bdyT5); 
                break; 
             case 6: 
                visi("testimonial", bdyT6); 
                break; 
             case 7: 
                visi("testimonial", bdyT7); 
                break; 
          } 
        }         

/*SHOWS OR HIDES TESTIMONIAL*/
        function visi(nr,tes) { 
          if (document.all) { 
            vista = (document.all[nr].style.visibility == 'hidden') ? 'visible'        : 'hidden'; 
            document.all[nr].style.visibility = vista; 
            elemDropShadow = document.getElementById(nr); 
            para = elemDropShadow.all("tes_p_body"); 
            elemTable = document.getElementById("testimonialInside");   
            elemDIV = document.getElementById("divTestimonial");   
            para.innerHTML = tes; 
            elemDropShadow.style.height = elemTable.offsetHeight; 
            elemDIV.style.height = elemTable.offsetHeight + 20; 
          } 
          else if (document.getElementById) { 
            vista = (document.getElementById(nr).style.visibility == 'hidden') ? 'visible' : 'hidden'; 
            document.getElementById(nr).style.visibility = vista; 
            elemDropShadow = document.getElementById(nr); 
            para = document.getElementById("tes_p_body"); 
            para.innerHTML = tes; 
            elemTable = document.getElementById("testimonialInside");   
            elemDIV = document.getElementById("divTestimonial");   
            elemDropShadow.style.height = elemTable.offsetHeight; 
            elemDIV.style.height = elemTable.offsetHeight + 20; 
          } 
        } 

        function hideobject(nr) { 
          if (document.all) { 
            document.all[nr].style.visibility = 'hidden'; } 
          else if (document.getElementById){ 
            document.getElementById(nr).style.visibility = 'hidden'; 
          } 
        } 

/*LOADS THE FORMS INTO ARRAY VARIABLES*/
        function LoadJsFiles() {
          var FileList = new Array();
            FileList[0] = "med_services.js";
            FileList[1] = "credit.js";
            FileList[2] = "insurance.js";
            FileList[3] = "products.js";
            FileList[4] = "faq.js";
            FileList[5] = "links.js";
            FileList[6] = "medforms.js";
            FileList[7] = "testimonials.js";
            FileList[8] = "articles.js";
            FileList[9] = "location.js";
            FileList[10] = "testimonials/t1.js";
            FileList[11] = "testimonials/t2.js";
            FileList[12] = "testimonials/t3.js";
            FileList[13] = "testimonials/t4.js";
            FileList[14] = "testimonials/t5.js";
            FileList[15] = "testimonials/t6.js";
            FileList[16] = "testimonials/t7.js";
		     
        var i=0;
          while (i<=16) {
            var e = document.createElement("script");
            e.type="text/javascript";
            e.src = "javascript/"+FileList[i];
            document.getElementsByTagName("head")[0].appendChild(e);
            i=i+1; 
          }
        }
		  
/*BLINKING OF TEXT*/
        function startBlink() {
          // Make sure it is IE4
          if (document.all)
            setInterval("doBlink()",500) 
        }

        function doBlink() {
          // Blink, Blink, Blink...
          var blink = document.all.tags("BLINK")
          for (var i=0; i < blink.length; i++)
            blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" 
        }
	  
/*NOT IN USE*/            
        function navMenuClick(menuItem) {
          //document.getElementById(menuItem).style.border = "solid";
          //document.getElementById(menuItem).style.border-color = #800000;
          //border: solid #800000 1px;
          //font-size: 10px;
          //menuItem.className='nav_cell_click'; 
        }