Personally, I dropped it under this code:
PHP Code:
// ###################### Start makenavoption #######################
function construct_nav_option($title, $url, $extra = '')
{
// creates an <option> or <a href for the left-panel of index.php
// (depending on value of $cpnavjs)
// NOTE: '&$session[sessionurl]' will be AUTOMATICALLY added to the URL - do not add to your link!
global $session, $options;
static $sessionlink, $bubblefix;
if (!isset($options))
{
$options = array();
if ($session['sessionurl'] == '')
{
$sessionlink = '';
}
else
{
$sessionlink = "&s=$session[sessionhash]";
}
// only include the bubble-fix for IE - ignore when encountering the Konqueror/Safari event model
if (is_browser('ie'))
{
$bubblefix = ' onclick="nobub()"';
}
else
{
$bubblefix = '';
}
}
$options[] = "\t\t<div class=\"navlink-normal\" onclick=\"nav_goto('$url$sessionlink');\" onmouseover=\"this.className='navlink-hover';\" onmouseout=\"this.className='navlink-normal'\"><a href=\"$url$sessionlink\"$bubblefix>$title</a>$_extra</div>\n";
}
and it works perfectly.