    // This function, when called with 'left' or 'right' as a parameter, will toggle the
    // left or right blocks, respectively.  It will also set a cookie so that your browser
    // remembers which blocks the user has collapsed.
    function toggleBlocks(side)
    {
        // There are two variables here since the SmoothBlue theme uses two elements to display
	// the blocks on each side.  You may need more or less depending on your theme.
	var blocks1;
        var blocks2;
	
        var arrowImg;
        var cookieName = 'displaySideBlocks';
        var cookieVal = xGetCookie(cookieName);
        var sideArrowSrc;
        var show = false;

        if (side == 'left')
        {
            blocks1 = xGetElementById("leftBlocksContent1");
            blocks2 = xGetElementById("leftBlocksContent2");
            arrowImg = xGetElementById("leftBlocksArrow");
            sideArrowSrc = "http://www.okanagangirlz.com/layout/OKG_Orange/interface/rightarrow.gif";
        }
        else
        {
            blocks1 = xGetElementById("rightBlocksContent1");
            blocks2 = xGetElementById("rightBlocksContent2");
            arrowImg = xGetElementById("rightBlocksArrow");
            sideArrowSrc = "http://www.okanagangirlz.com/layout/OKG_Orange/interface/leftarrow.gif";
        }

        // Check to see if these blocks are hidden.  If so, we want to 'show' them.
        if (blocks1.style.display == 'none')
        {
            show = true;
        }
        if (show)
        {
            blocks1.style.display = '';
            blocks2.style.display = '';
            arrowImg.src = "http://www.okanagangirlz.com/layout/OKG_Orange/interface/downarrow.gif";

            if (cookieVal == 'none')
	    {
	        cookieVal = side;
	    }
	    else
	    {
	        cookieVal = 'both';
	    }
        }
        else
        {
            blocks1.style.display = 'none';
            blocks2.style.display = 'none';
            arrowImg.src = sideArrowSrc;

            if (cookieVal == 'both')
	    {
	        if (side == 'right')
		{
		    cookieVal = 'left';
		}
		else
		{
		    cookieVal = 'right';
		}
	    }
	    else
	    {
	        cookieVal = 'none';
	    }
        }

        var expireDate = new Date();
        expireDate.setTime(expireDate.getTime() + 30 * 24 * 3600 * 1000);  // Set the cookie to expire in 30 days
	xSetCookie(cookieName, cookieVal, expireDate, '/');
    }
