/// <reference path="jquery-1.4.1.js" />

/**
* Definit un espace de nom pour l'application
*/
/*
var CC = window.CC || {

    Version: '1.0',

    UrlBase: '/js/',

    imports: [
        'CCNotifier',
        'CCUtils',
        'CCGameManager',
        'CCCookieManager',
        'CCPopinManager',
        'CCCokeManager',
        'CCRemoter',
        'CCSubscriber',
        'CCFormVal',
        'CCFacade'
    ]

};

for (var iFile = 0, iCount = CC.imports.length; iFile < iCount; iFile++) {
    document.write([
        '<script type="text/javascript" src="',
        CC.UrlBase,
        CC.imports[iFile],
        '.js"><' + '/script>'
    ].join(''));
}
*/


//if(false)
(function($) {

    /// $.CC namespace.
    window.CC = $.CC = window.CC || $.CC ||
    {
        Version: '1.0',
        UrlBase: '/js/',
        imports: [
            'jquery.cc.Notifier',
            'jquery.cc.Utils',
            'jquery.cc.WaitingManager',
            //'jquery.cc.GameManager',
            'jquery.cc.CookieManager',
            'jquery.cc.PopinManager',
            'jquery.cc.CokeManager',
            'jquery.cc.Remoter',
            'jquery.cc.CokeUserManager',
            'jquery.cc.Facade',
            // Addons
            'optf'
        ]
    };

    /// js files components pushs
    if ($.CC) {
        var urlBase = $.CC.UrlBase;
        $.each(
            $.CC.imports || [],
            function(index, value)
            {
                document.write(['<script type="text/javascript" src="', urlBase, value, '.js', '?v=', $.CC.Version, '"><' + '/script>'].join(''));
            }
        );
    }

} (jQuery));


