Use settings variables for setting the breakpoints.

The old medium was using hard-coded break points, rather than those set in the settings file.  This change means that using a combination of small-, medium-, large-, hide-on-small, hide-on-medium and hide-on-large will work as expected.