{% include javascript/global %}

{% if global.module == 'home' %}

{% include javascript/homepage %}

{% elsif global.module == 'product' %}

{% if global.view == 'home' %}
{% include javascript/product_list %}
{% endif %}

{% include javascript/product_form %}

{% elsif global.module == 'deal' %}

{% include javascript/product_form %}

{% elsif global.module == 'brand' %}

{% include javascript/brand %}

{% elsif global.module == 'report' %}

{% include javascript/visitor %}

{% elsif global.module == 'system' %}

{% include javascript/system %}

{% endif %}