         function Is() {
            var agent = navigator.userAgent.toLowerCase();
            this.major = parseInt(navigator.userAgent.substring(agent.indexOf("msie")+5,agent.indexOf("msie")+6));
            this.minor = parseFloat(navigator.appVersion);
            this.ie = (agent.indexOf("msie") != -1);
            this.ie3 = (this.ie && (this.major == 2));
            this.ie6 = (this.ie && (this.major == 6));
            this.ie7 = (this.ie && (this.major == 7));
            this.ie4up = (this.ie && (this.major >= 4));
            if (agent.indexOf("firefox") > 0)
            {
                this.fx = true;
                this.minor = agent.substring(agent.indexOf("firefox")+8,agent.indexOf("firefox")+9);
            }
            else
                this.fx = false;
        }
        var is = new Is();
        function adjustMargin()
        {
            if (!is.ie7)
            {
               document.getElementById("body").style.marginLeft = "18px";
            }
            
            if (is.fx)
            {
                if (is.minor != 2)
                    document.getElementById("body").style.marginLeft = "19px";
            }
            else if (!is.ie)
            {
                    document.getElementById("body").style.marginLeft = "15px";
            }
        }

navThembaOff = new Image()
navThembaOff.src  = "graphics/design/homepage/btn_thembatrust_off.gif"
navThembaOn = new Image()
navThembaOn.src  = "graphics/design/homepage/btn_thembatrust_on.gif"

navErinBodeOff = new Image()
navErinBodeOff.src  = "graphics/design/homepage/btn_ErinBode_off.gif"
navErinBodeOn = new Image()
navErinBodeOn.src  = "graphics/design/homepage/btn_ErinBode_on.gif"

navtheCDOff = new Image()
navtheCDOff.src  = "graphics/design/homepage/btn_theCD_off.gif"
navtheCDOn = new Image()
navtheCDOn.src  = "graphics/design/homepage/btn_theCD_on.gif"

navgalleryOff = new Image()
navgalleryOff.src  = "graphics/design/homepage/btn_gallery_off.gif"
navgalleryOn = new Image()
navgalleryOn.src  = "graphics/design/homepage/btn_gallery_on.gif"

navLCMSOff = new Image()
navLCMSOff.src  = "graphics/design/homepage/btn_LCMS_off.gif"
navLCMSOn = new Image()
navLCMSOn.src  = "graphics/design/homepage/btn_LCMS_on.gif"

navdonateOff = new Image()
navdonateOff.src  = "graphics/design/homepage/btn_donate_off.gif"
navdonateOn = new Image()
navdonateOn.src  = "graphics/design/homepage/btn_donate_on.gif"



navDPThembaOff = new Image()
navDPThembaOff.src  = "graphics/design/detail/btn_thembatrust_off_dp.gif"
navDPThembaOn = new Image()
navDPThembaOn.src  = "graphics/design/detail/btn_thembatrust_on_dp.gif"

navDPErinBodeOff = new Image()
navDPErinBodeOff.src  = "graphics/design/detail/btn_ErinBode_off_dp.gif"
navDPErinBodeOn = new Image()
navDPErinBodeOn.src  = "graphics/design/detail/btn_ErinBode_on_dp.gif"

navDPtheCDOff = new Image()
navDPtheCDOff.src  = "graphics/design/detail/btn_theCD_off_dp.gif"
navDPtheCDOn = new Image()
navDPtheCDOn.src  = "graphics/design/detail/btn_theCD_on_dp.gif"

navDPgalleryOff = new Image()
navDPgalleryOff.src  = "graphics/design/detail/btn_gallery_off_dp.gif"
navDPgalleryOn = new Image()
navDPgalleryOn.src  = "graphics/design/detail/btn_gallery_on_dp.gif"

navDPLCMSOff = new Image()
navDPLCMSOff.src  = "graphics/design/detail/btn_LCMS_off_dp.gif"
navDPLCMSOn = new Image()
navDPLCMSOn.src  = "graphics/design/detail/btn_LCMS_on_dp.gif"

function switchimage(imgDocID,imgObjName) 
{
	
	document[imgDocID].src = eval(imgObjName + ".src");

}

function fixBanner()
{
    curContent = parent.frames['content'].location.href;
    index = curContent.indexOf('detail.asp');
    if (index > 0)
        document.getElementById('bannertopimage').src='graphics/design/detail/hpTopMidlogo2.jpg';
    else
        document.getElementById('bannertopimage').src='graphics/design/homepage/hpTopMidlogo.jpg';
}