Hi; I want to change the header image on many different pages and I did not want to have to have a different template for every page. I thought that possibly a php case statement would work as a snippet but it fails.

This is what I tried -
<?php
// Change top header image based on page ID
$curPageNum = $modx->documentIdentifier;
switch($curPageNum){
case "1":div#branding background: url(images/logo1.jpg)no-repeat center;
case:"2":div#branding background: url(images/logo2.jpg)no-repeat center;
case:"3":div#branding background: url(images/logo3.jpg)no-repeat center;
case:"4":div#branding background: url(images/logo4.jpg)no-repeat center;
}
?>
I’m doing something wrong here. Would it be easier to use PHx or?
Any help would be appreciated.

Hal D