<?php
/**
 * (C) CopyRight 2008 MagicToolBox - www.magictoolbox.com - support@magictoolbox.com
 */
require_once(DIR_FS_CATALOG . DIR_WS_MODULES . 'magictoolbox/magictoolbox_addons.php');
$mod = & magictoolboxLoadModule('MagicThumb');
if(ZEN_MAGICTHUMB_STATUS == 'true' && 
  ((intval($_REQUEST['cPath']) > 0 && !$mod->params->checkValue('use-effect-on-category-page', 'No')) || 
   (intval($_REQUEST['products_id']) > 0 && !$mod->params->checkValue('use-effect-on-product-page', 'No')) ||
   ($_REQUEST['main_page'] == 'products_new' && !$mod->params->checkValue('use-effect-on-products-new-page', 'No')) ||
   ($_REQUEST['main_page'] == 'products_all' && !$mod->params->checkValue('use-effect-on-products-all-page', 'No')) ||
   ($_REQUEST['main_page'] == 'advanced_search_result' && !$mod->params->checkValue('use-effect-on-products-search-page', 'No'))
  ))
{
    echo $mod->headers(DIR_WS_CATALOG . DIR_WS_TEMPLATE . 'jscript', DIR_WS_CATALOG . DIR_WS_TEMPLATE . 'css');
    $GLOBALS["MAGICTHUMB_HEADERS_LOADED"] = true;
}
