public static function init()
 {
     // init firebug
     //$firephp = FirePHP::getInstance(true);
     //$firephp->registerErrorHandler();
     //$firephp->registerExceptionHandler();
     //$firephp->registerAssertionHandler();
     $modulePath = 'modules/mod_ecwid_customsearch/';
     $path = str_replace($modulePath, "", JURI::base());
     self::$path = $path . 'modules/mod_ecwid_customsearch/';
     $app =& JFactory::getApplication();
     $params =& $app->getParams("com_rokecwid");
     self::$storeId = $params->get('storeID', 1003);
     // init scripts and styles
     JHTML::script('jquery-1.7.1.min.js', self::$path . 'assets/js/jquery/');
     JHTML::script('jquery-ui-1.8.17.custom.min.js', self::$path . 'assets/js/jquery-ui/js/');
     JHTML::script('jquery.cookie.js', self::$path . 'assets/js/jquery/');
     JHTML::script('jquery.noconflict.js', self::$path . 'assets/js/jquery/');
     JHTML::script('purl.js', self::$path . 'assets/js/');
     JHTML::script('customsearch.js?1.0', self::$path . 'assets/js/');
     JHTML::stylesheet('jquery-ui-1.8.17.custom.css', self::$path . 'assets/js/jquery-ui/css/ui-lightness/');
     JHTML::stylesheet('styles.css', self::$path . 'assets/css/');
     // init inline scripts
     $doc =& JFactory::getDocument();
     $result = "EcwidCustomPlugins.baseUrl = '" . JURI::base() . "';";
     $doc->addScriptDeclaration($result);
 }