Then you must be doing something wrong. Here is a copy of the whole default.php with the modifications I suggested (I've tested it and it works for me)
<?php
/**
* Hotspots - Frontend
* @package Joomla!
* @Copyright (C) 2010 Daniel Dimitrov - compojoom.com
* @All rights reserved
* @Joomla! is Free Software
* @Released under GNU/GPL License : http://www.gnu.org/copyleft/gpl.html
* @version $Revision: 0.9.3 beta $
**/
defined( '_JEXEC' ) or die ( 'Restricted access' );
JHTML::_('behavior.mootools');
JHTML::_('stylesheet', 'hotspots.css', 'media/com_hotspots/css/');
JHTML::_('script', 'hotspots.js', 'media/com_hotspots/js/');
$params = &$mainframe->getParams();
$xmlconfig = &JComponentHelper::getParams('com_hotspots');
// Adding Template Styles & js
$doc =& JFactory::getDocument();
$domready = "window.addEvent('domready', function(){ \n";
$domready .= hotspotsUtils::maptype();
$domready .= hotspotsUtils::gmcontrols();
$domready .= hotspotsUtils::getJSVariables();
$domready .= " effects();
if (addhs_map) {
addspot();
}
if(otherCat != '') {
hsload(otherCat);
} else {
hsload(hs_startcat);
}
});";
$doc->addScriptDeclaration($domready);
if (HotspotsHelper::getSettings('show_componentheading', 1) == 1)
{
?>
<!-- START Hotspots by compojoom.com -->
<div class="componentheading<?php echo $params->get('pageclass_sfx')?>"><?php echo $this->escape($params->get('page_title')); ?></div>
<?php
}
$appl = JFactory::getApplication();
$messages = $appl->getMessageQueue();
if($messages) {
$messagessplit = $messages[0];
if ($messagessplit['message'] != "")
{
echo "<div class=\"hs_error\">";
echo $messagessplit['message'];
echo "</div><br />";
}
}
if ($xmlconfig->get( 'addhs_front', 1 ) == 1)
{
$pane =& JPane::getInstance( 'tabs', array('startOffset'=>0));
echo $pane->startPane( 'pane' );
echo $pane->startPanel( JText::_( 'Map' ), 'base' );
}
?>
<br />
<div id="hs_cont" style="height: <?php echo HotspotsHelper::getSettings('category_height', 100); ?>px; <?php if ($xmlconfig->get( 'hs_show_menu', 1 ) == 0) echo "display:none;"?>">
<?php if (HotspotsHelper::getSettings('show_topright_menu', 1) == 1) : ?>
<div id="small_menu"><?php hotspotsUtils::hs_showsmallcategories(); ?></div>
<?php endif; ?>
<?php hotspotsUtils::hs_catinfo(); ?>
<div id="hs_topmenu">
<?php hotspotsUtils::hs_showcategories(); ?>
</div>
</div>
<div id="map_cont" style="height: <?php echo (HotspotsHelper::getSettings('map_height', 600) + 10); ?>px;">
<div id="map_canvas" class="map_canvas" style="width: <?php if (HotspotsHelper::getSettings('map_border_watcher', 0) == 1) { echo "98"; } else { echo "100"; } ?>%; height: <?php echo HotspotsHelper::getSettings('map_height', 600);?>px;"></div>
<?php
// Suggested border colors: white= cdcdcc, blue=7a98c9, red 8d2827, yellow= cbc276, black: 272726;
$map_overlay_bg = 'map_overlay_' . HotspotsHelper::getSettings('map_overlay_bg', 'white') . '.png';
$map_overlay_border = HotspotsHelper::getSettings('map_overlay_border', '4px solid #cdcdcc');
?>
<div id="map_overlay_cont" style="background: url('media/com_hotspots/images/utils/<?php echo $map_overlay_bg; ?>') repeat; border-top: <?php echo $map_overlay_border; ?>; <?php if (HotspotsHelper::getSettings('map_overlay_div', 1) == 0) { echo " display: none;"; } ?>">
<div id="map_overlay_close">
<a id="close_mapoverlay" href="#" onclick="document.getElementById('map_overlay_cont').style.display = 'none'; return false;">
<?php echo JText::_('Close'); ?>
</a>
</div>
<div id="map_overlay"></div>
</div>
<?php echo $this->loadTemplate('routenplaner'); ?>
<?php echo $this->loadTemplate('menu'); ?>
</div>
<?php if (HotspotsHelper::getSettings('routenplaner', 1)) : ?>
<div id="routenplaner">
<p align="right"><a href="javascript:routeplan_close();"><?php echo JText::_('Close'); ?></a></p>
</div>
<?php endif; ?>
<?php if(HotspotsHelper::getSettings('show_welcome_text', 1) == "1") : ?>
<div id="hswelcome" onclick="hswelcomeClose();">
<div style="margin:10px;">
<div style="float:right;">
<img src="media/com_hotspots/images/utils/close.gif" width="14" height="13" alt="close"/>
</div>
<div class="hs_welcome"></div>
<?php echo HotspotsHelper::getSettings('welcome_text', 'You should not see this'); ?>
</div>
</div>
<?php endif; ?>
<div id="hsloading">
<div style="width:60px; height:60px; margin-left: auto; margin-right: auto; margin-top: 90px; text-align: center; vertical-align:middle;">
<img src="media/com_hotspots/images/utils/loader.gif" alt="<?php echo JTEXT::_('Loading');?>" />
<br /><?php echo JTEXT::_('Loading');?>
</div>
</div>
<?php
// DEBUG FUNKTION
if (HotspotsHelper::getSettings('debug', 0) == 1) {
echo "<div id=\"message\"></div>\n";
}
?>
<script type='text/javascript'>
/* <![CDATA[ */
<?php
if ($xmlconfig->get( 'map_centertyp', 1 ) == 0)
{
echo "var Position = new GLatLngBounds();\n";
echo "var centertype = 1;\n";
} else {
echo "var Position = null;\n";
echo "var centertype = 0;\n";
}
?>
/* ]]> */
</script>
<br />
<?php echo $this->loadTemplate('footer_info'); ?>
<?php
// DEBUG FUNKTION
if (HotspotsHelper::getSettings('debug', 0) == 1) {
echo "<input type=\"button\" id=\"mybutton\" name=\"mybutton\" value=\"Click Me\" onclick=\"hsload(1)\" />\n";
}
echo $pane->endPanel();
echo $pane->startPanel( JText::_( 'test' ), 'test' );
echo 'test';
echo $pane->endPanel();
if ($xmlconfig->get( 'addhs_front', 1 ) == 1)
{
echo $pane->endPanel();
echo $pane->startPanel( JText::_( 'Add Hotspot' ), 'addhotspot' );
// Display the parameters defined in the <params> group with the 'group' attribute of 'GROUP_NAME'
//echo $this->params->render( 'params', 'ADVANCED' );
include(JPATH_COMPONENT.DS.'views'.DS.'all'.DS.'tmpl'.DS.'addspot.php');
echo $pane->endPanel();
echo $pane->endPane();
}
echo $this->loadTemplate('footer');
?>
<!-- End Hotspots by compojoom.com -->