function $O(id){
	if(m = document.getElementById(id))
		return m;
	return false;
}

$(function () {
	return;
    /*
        Image backgrounds in content, although served as images, need to be 
        moved to be a background in CSS, so that rounded corners would work 
        correctly.
    */
 

    $('#homepage img.background, #intro img.background').each(function () {
        var $img = $(this);
        var $parent = $img.parent('div');
        $img.attr('src', $img.attr('src'));
        $img.load(function () {
            $img.hide();
            $parent.css({ background: 'url('+ $img.attr('src') +') no-repeat left top', height: $img.height() });
        });
    });
    
    $('img.roundedCorners').each(function () {
        var $img = $(this);
        $img.load(function () {
            $img.after(
                $('<span></span>')
                .css({ 
                    width: $img.width(), 
                    height: $img.height(), 
                    display: 'block', 
                    background: 'url('+ $img.attr('src') +') no-repeat left top'
                })
                .addClass('roundedCorners')
            );
            $img.remove();
        });
        $img.attr('src', $img.attr('src'));
    });
    

});

