<?php
/**
* @version $Id: vm_transmenu.php 1761 2009-05-07 06:35:36Z Aravot $
* @package VirtueMart
* @copyright (C) 2005 MamboTheme.com
* @license http://www.mambotheme.com
* 
*/

if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );

/**
/* Loads main class file
*/	
global $mosConfig_live_site, $mosConfig_absolute_path;

if( vmIsJoomla('1.5')) {
	$live_module_dir = $mosConfig_live_site.'/modules/mod_virtuemart';
	$absolute_module_dir = $mosConfig_absolute_path.'/modules/mod_virtuemart';
} else {
	$live_module_dir = $mosConfig_live_site.'/modules';
	$absolute_module_dir = $mosConfig_absolute_path.'/modules';
}

$params->set( 'module_name', 'ShopMenu' );
$params->set( 'module', 'vm_transmenu' );
$params->set( 'absPath', $absolute_module_dir . '/' . $params->get( 'module' ) );
$params->set( 'LSPath', $live_module_dir . '/' . $params->get( 'module' ) );

include_once( $params->get( 'absPath' ) .'/Shop_Menu.php' );

global $my, $db;
$db = new ps_DB();
$mbtmenu= new Shop_Menu($db, $params);

$mbtmenu->genMenu();

?>