Just two things:
1) When you're posting code to the forums use the [php][/php] tag bucket
2) You're relying on an array which contains certain keys to exist. I would recommend you perform a self check to make sure this is the case and also comment exactly what you're expecting to exist this way when you try to use this six months from how you won't spend a week trying to figure out why it doesn't work.
<?PHP
/*This file expects an array named $aryConfig and a variable named $strPagename to exist. $aryConfig is an associative array and one of the top levels keys must be $strPagename. $aryConfig[$strPagename] must be an associative array in itself and this array must contain the keys Title, CSS, MenuScript, LogoImg, LogoLink, NavImg and LeftColHead. */
//self check code to ensure existence of afforementioned variables
//define an array that contains all the key names
$keys = array('Title','CSS','MenuScript','LogoImg','LogoLink','NavImg','LeftColHead');
//is $strPagename set
if(!isset($strPagename))
die('Page name not defined');
//is $aryConfig defined as an array
if(!is_array($aryConfig))
die('Configuration array not defined.');
//is $aryConfig[$strPagename] defined as an array
elseif(!is_array($aryConfig[$strPagename]))
die('Conficuration of current page not defined.');
//do all of the expected keys exist in $aryConfig[$strPagename]
foreach($keys as $key) {
//does the current key exist
if(!array_key_exists($key,$aryConfig[$strPagename]))
die($key . ' not defined in configuration array.');
//pull the current key out into it's string variable
$varName = 'str' . $key;
$$varName = $aryConfig[$strPagename][$key];
} //end foreach
?>
Note that the above code performs the self check and replaces this code
<?php
$strTitle = $aryConfig[$strPagename]["Title"];
$strCSS = $aryConfig[$strPagename]["CSS"];
$strMenuScript = $aryConfig[$strPagename]["MenuScript"];
$strLogoImg = $aryConfig[$strPagename]["LogoImg"];
$strLogoLink = $aryConfig[$strPagename]["LogoLink"];
$strNavImg = $aryConfig[$strPagename]["NavImg"];
$strLeftColHead = $aryConfig[$strPagename]["LeftColHead"];
?>
Coding in this way, while it looks like overkill in this case, has many benefits. You can add a variable to both the self check and the pull out to variable just by adding it to the keys array. No matter how many variables you add the length of the self check and pull out code never changes. You can easily port the self check and pull out code to other projects. You will never attempt to port this to a system that isn't set up properly and get past the initial page load before you reconfigure the port to work properly.