I think I have what you are doing, using peekfresh as my template.
In their case, a config file associated with the template controls the header image. Code snippet below:
// ***Header Images Configuration*** IMAGES MUST HAVE THIS SIZE: 464x84
// don't screw this up if you don't know what you're doing!!
// All header images must be placed on templates/peekfresh/images/ directory, use your ftp client to upload your custom pictures.
$headerimage = "header_picture.jpg"; // your default image
switch ($Itemid) {
case 1:
$headerimage = "header_picture.jpg";
break;
case 2:
$headerimage = "header_picture_news.gif";
break;
case 25:
$headerimage = "header_picture_faq.gif";
break;
case 3:
$headerimage = "header_picture_contact.gif";
break;
case 4:
$headerimage = "header_picture_links.gif";
break;
case 53:
$headerimage = "calendar_picture.jpg";
break;
Hope this helps, my website in development is below which illustrates.
http://www.newhopefellowship.org/mam...tpage&Itemid=1