<!--

function removeBRtags(elementID)
{
    var element = document.getElementById(elementID);
    var elementBRtags;
    
    if (element && element.getElementsByTagName &&
    document.createTextNode) 
    {
        elementBRtags = element.getElementsByTagName('br');
        while (elementBRtags.length) 
        {
            var br = elementBRtags[elementBRtags.length - 1];
            var replacement = document.createTextNode(" ");
            br.parentNode.replaceChild(replacement, br);
        }
    }
}
/* 
****************************************************************************************************************************************************************************
**************************************************************************************************************************************************************************** 
Center Site Functions
****************************************************************************************************************************************************************************
Centers site on load, refresh or window resize

@author Francis Bezooyen, with credits to Mark Wilton-Jones for his
script to find the width and height of the viewing area.  Found at:
http://www.howtocreate.co.uk/tutorials/javascript/browserwindow

*/
        
    //gets width and height of client viewing area
    function getWidthHeight() 
    {
        if (typeof( window.innerWidth ) == 'number' ) 
        {
                //Non-IE
                myWidth = window.innerWidth;
                myHeight = window.innerHeight;
        }   else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
            {
                //IE 6+ in 'standards compliant mode'
                myWidth = document.documentElement.clientWidth;
                myHeight = document.documentElement.clientHeight;
            }   else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
                {
                    //IE 4 compatible
                    myWidth = document.body.clientWidth;
                    myHeight = document.body.clientHeight;
                } 
    } // End getWidthHeight function
   
  
    function centerSite() 
    { 
            getWidthHeight();

            var diffCenterBG_Hor;
            var diffCenterBG_Vert = (myHeight - heightBG)/2;
            var diffCenterWrapC_Hor;
            
            if (myWidth > bgWidthMin) 
            {
                diffCenterBG_Hor = (myWidth - widthBG)/2;
                diffCenterWrapC_Hor = (myWidth - widthC)/2;
                
            }   else 
                {
                    diffCenterBG_Hor = bgMarginLimitHor;
                    diffCenterWrapC_Hor = (bgWidthMin - widthC)/2;
                }

            document.getElementById('SiteBG_Globe').style.width = myWidth + 'px';
            document.getElementById('SiteBG_Globe').style.backgroundPosition = diffCenterBG_Hor + 'px';

            document.getElementById('SiteBG_BannerBG').style.width = myWidth + 'px';
            document.getElementById('SiteBG_BannerBG').style.backgroundPosition = diffCenterBG_Hor + 'px';

    }
/* 
****************************************************************************************************************************************************************************
END Center Site Functions
****************************************************************************************************************************************************************************
****************************************************************************************************************************************************************************
*/     


-->

