
   //*** Text Sizing - Dynamically change the font size in your document, works with and without frames
   //*** Copyright 2006 by Craig Powers - New Media Dynamics - http://www.NewMediaDynamics.com
   //*** Based on Original work by Eddie Traversa - http://www.dhtmlnirvana.com/
   //*** Note:  Needs a Style Sheet element defined called sizer and <p class=sizer> .... text to resize .... </p>  in the body (or other appropiate HTML tags)
   //*** This function does NOT write cookies, and does NOT have to be initialized by a body=onLoad call

   var tags       = new Array('span','div','td','tr','p','b','table','strong','emphasis','a','h1','h2','h3','pre','sub','sup','i','th','cp','ul','ol','li','dt','dd');
   var pixelArray = new Array('12','14','16','18','20','24','28','32','36','40','44','52');
   var emArray    = new Array('0.9','1.0','1.3','1.5','1.8','2.0','2.4','2.8','3.2','3.6','4.0','5');
   var initSize   = 2;     //** global value stores current font size - this changes, when initially starting, counts from 0 so this is 3rd element from array above
   var origSize   = 2;     //** global variable keeps track of original / starting size.

   function textSizing(action,inc,unit) {    //*** action=add|subtract|reset|original_value (+|-|R|O), inc=increment amount (default=1), unit=px or em's (default=px), Original_value used on initial page load so have uniform font sizes across all pages
      //alert("inside function textSizing, action="+action+", inc="+inc+", unit="+unit+", initSize="+initSize+", origSize="+origSize)
      if (!document.getElementById) return;

      var size = initSize;
      if (action=="O") {
         var x = readCookie('textsize')
         if (null == x) {          //*** means no cookie variable found with textsize, so use initsize
            size = origSize
            //alert("Action=O - textSizing: read Cookie, NO VALUE, now set size="+size)
            }
         else {                   //*** means found cookie with textsize
            size = x
            //alert("Action=O - textSizing: read Cookie, FOUND VALUE,  now set size="+size)
            }
         }     //*** end if action==0 (letter O=original)

      size = parseInt(size);                 // convert to integer type
      inc  = parseInt(inc);                  // convert to integer type
      if (action=="+") size = size + inc;
      if (action=="-") size = size - inc;
      if (action=="R") size = origSize;

      if (size < 0 )  { size = 0; }
      if (size > 12 ) { size = 12; }
      initSize = size;

      //*** save the font size to cookie
      createCookie('textsize',size,7)

      //if (parent.frames.length != 0) { getBody = parent.ABC_Body_Left.transcript_content.document.getElementsByTagName('body')[0]; }
      //if (parent.frames.length != 0) { getBody = parent.transcript_content.document.getElementsByTagName('body')[0]; }
      if (parent.frames.length != 0) { getBody = parent.Index_Village_Chapel.transcript_content.document.getElementsByTagName('body')[0]; }
      else { getBody = document.getElementsByTagName('body')[0]; }

      for (i = 0 ; i < tags.length ; i++ ) {
          getallTags = getBody.getElementsByTagName(tags[i]);
          for (k = 0 ; k < getallTags.length ; k++)
              { getallTags[k].style.fontSize = (unit=='px') ? pixelArray[size]+unit: emArray[size]+unit; }
      }      // end 1st for loop
   }          // end function

function Nav4Reload(init) {             //reloads the window if Nav4 resized
  if (init==true) with (navigator) { if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=Nav4Reload; } }
  else { if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) { location.reload(); } }
  }     // end function
Nav4Reload(true);

