/* hides the new layout */
.layout24 {
    display: none;
}

/* display only if the class exists in the body  */
body.layout24,
body.layout24 .layout24 {
    display: block;
}

body.layout24 .layout24-old {
    display: none;
}