        /*  CSS Code file: itnix_style.css */
        /*  Description: Helper functions used on the Site  */
        /*  Version: 1.0 */
        /*  All source code & concepts (c) copyright 2008, 2010 by ItNix, LLC. */
        /*  All rights reserved worldwide. */
        /*  Changed by: Ivan Carrazco */


      /*
       * Resets the font size to the 'size' provided as input
       */
      function setFontSize(size) {
        document.body.style.fontSize = size;
      }

     /*
      * This is a hook function, if the page needs to be initialized, this function must contain all the initializations
      */
      function initPage( event ) {
        initSiteHeight();
      }


     /*
      * This functions initializes the height of the contentWrapper of the site, which allows the container to extend
      * all the way down
      */
      function initSiteHeight() {
        var minHeight = 0;
        var wrapper = document.getElementById( 'contentWrapper' );
        minHeight = getViewPortHeight();
        wrapper.style.minHeight = minHeight + 'px';
        //setResizeListener();
      }
     /*
      * setHeight- this function sets the height of the site in such a way that the content extends all the way down
      */
      function setHeight() {
        //alert('calling set height');
        var minHeight = 0;
        var wrapper = document.getElementById( 'contentWrapper' );
        minHeight = getViewPortHeight();
        wrapper.style.minHeight = minHeight + 'px';
      }

      function setResizeListener() {

        alert('setting resize listener');

        //w3c standard browsers
        if( document.addEventListener ) {
          var bud = document.getElementsByTagName( 'body' )[0];
          bud.addEventListener('resize', function(event) {alert('resizing w3c standard'); setHeight(); }, true );
        }
        //IE browsers
        else if( document.attachEvent ) {
          var bud = document.getElementsByTagName( 'body' )[0];
          bud.attachEvent('onresize', function(event) { alert('resizing IE browser'); setHeight();} );
        }
      }


     /*
      * getViewPortheight- helper function which allows us to figure out the exact height of a given container
      */
      function getViewPortHeight() {
        var viewportheight;
        var retHeight = 600;
        var sub = 130 + 15.4 + 4;

        if (typeof window.innerWidth != 'undefined') {
          viewportheight = window.innerHeight;
        }
        else if (typeof document.documentElement != 'undefined' &&
                  document.documentElement.clientHeight != 0) {
          viewportheight = document.documentElement.clientHeight;
        }
        else {
          alert("Something went terribly wrong");
        }
        retHeight = viewportheight - sub;
        return retHeight;
      }


     /*
      * Test
      */
      function getElemHeight() {
        var elemId = document.getElementById( 'elemId' ).value;
        var ht = 0;
        var elem = document.getElementById( elemId );
        if( elem != '' || elem != null )
          ht = elem.offsetHeight;
        else {
          //alert('element id: ' + elemId + ' doesn\'t seem to exist ');
          return;
        }
        ht = elem.offsetHeight;
        alert("height of " + elemId + ": " + ht );
      }

