/**
  * Loads and displays a template file.
  *
  * @param string $template Template filename relative
  *                         to template dir
  * @param array  $vars     Array of template variables.
  *                         The current theme object will be added
  *                         automatically with name "theme".
  *
  * @return SemanticScuttle_Model_Template Template object
  */
 public function loadTemplate($template, $vars = null)
 {
     if (substr($template, -4) != '.php') {
         $template .= '.php';
     }
     $oldIncPath = get_include_path();
     set_include_path($this->basedir . $this->theme->getName() . PATH_SEPARATOR . $this->basedir . 'default' . PATH_SEPARATOR . $oldIncPath);
     $vars['theme'] = $this->theme;
     $tpl = new SemanticScuttle_Model_Template($template, $vars, $this);
     $tpl->parse();
     set_include_path($oldIncPath);
     return $tpl;
 }
<?php

$GLOBALS['saveInLastUrl'] = false;
$httpContentType = 'text/javascript';
require_once 'www-header.php';
require_once 'SemanticScuttle/functions.php';
$theme = new SemanticScuttle_Model_Theme($GLOBALS['theme']);
$player_root = ROOT . 'includes/player/';
?>

function _playerAdd(anchor) {
    var url = anchor.href;
    var code = '<object type="application/x-shockwave-flash" data="<?php 
echo $player_root;
?>
musicplayer_f6.swf?song_url=' + url +'&amp;b_bgcolor=ffffff&amp;b_fgcolor=000000&amp;b_colors=0000ff,0000ff,ff0000,ff0000&buttons=<?php 
echo $player_root;
?>
load.swf,<?php 
echo $player_root;
?>
play.swf,<?php 
echo $player_root;
?>
stop.swf,<?php 
echo $player_root;
?>
error.swf" width="14" height="14">';
    var code = code + '<param name="movie" value="<?php 
echo $player_root;
?>