For each page you can only have one category_id: This identifies the image to load on your page. As I said: this you probably already have in your database.
Place the array in a separate page (e.g., named array_page.php) and use:
require_once("array_page.php")
to load the array.
So you'd get:
array_page.php:
$head_images = array(
0=>"/header2.png",
1=>"/headersurf.png",
2=>"/headerskate.png",
3=>"/headersnow.png",
4=>"/headerwake.png",
5=>"/headerskiing.png",
6=>"/headermtb.png",
7=>"/headerbmx.png",
8=>"/headermotocross.png");
some other page, category = 3:
$category_id = 3;
require_once("array_page.php");
<table class="header" border="0" cellspacing="1" cellpadding="0" width="100%" height="130" style="background-color: #FFFFFF;">
<tr>
<td width="858" colspan="10"
style="background: url(<?=$this->image_url?>".$head_images[$category_id].") no-repeat top left;
padding-right: 35px; font-weight: bold; font-size: .75em;"
valign="middle" align="right">