var pathJquery = "http://ajax.googleapis.com/ajax/libs/jquery/" + myManifest.Settings.JQueryVersion + "/jquery.min";

requirejs.config({
    baseUrl: 'js',
    urlArgs: "v" + myManifest.getUrlArg(),
    paths: {
        underscore: 'libs/underscore-min',
        backbone: 'libs/backbone-min',
        text: 'libs/text',
        jquery: pathJquery,
        jqxcore: "libs/jqwidgets/jqxcore",
        jqxbuttons: "libs/jqwidgets/jqxbuttons",
        jqxpanel: "libs/jqwidgets/jqxpanel",
        jqxscrollbar: "libs/jqwidgets/jqxscrollbar",
        jqxtree: "libs/jqwidgets/jqxtree",        
        jqxwindow: "libs/jqwidgets/jqxwindow",
        jqxmenu: "libs/jqwidgets/jqxmenu",
        jqxcombobox: "libs/jqwidgets/jqxcombobox",
        jqxdata: "libs/jqwidgets/jqxdata",
        jqxrating: "libs/jqwidgets/jqxrating",
        jqxtabs: "libs/jqwidgets/jqxtabs",
        jqxlistbox: "libs/jqwidgets/jqxlistbox",
        jqxdropdownlist: "libs/jqwidgets/jqxdropdownlist",
        jqxdropdownbutton: "libs/jqwidgets/jqxdropdownbutton",
        jqxeditor: "libs/jqwidgets/jqxeditor",
        jqxcolorpicker: "libs/jqwidgets/jqxcolorpicker",
        jqxgrid: "libs/jqwidgets/jqxgrid",
        jqxgrid_selection: "libs/jqwidgets/jqxgrid.selection",
        jqxgrid_columnsresize: "libs/jqwidgets/jqxgrid.columnsresize",
        jqxgrid_filter: "libs/jqwidgets/jqxgrid.filter",
        jqxinput: "libs/jqwidgets/jqxinput",
        jqxdragdrop: "libs/jqwidgets/jqxdragdrop",
        jqxnumberinput: "libs/jqwidgets/jqxnumberinput"
    },
    shim: {
        "jqxcore": {
            export: "$",
            deps: ['jquery']
        },
        "jqxbuttons": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxwindow": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxpanel": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxscrollbar": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxtree": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxrating": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },        
        "jqxinput": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxtabs": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },        
        "jqxnumberinput": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxdropdownbutton": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxcolorpicker": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxeditor": {
            export: "$",
            deps: ['jquery', "jqxcore", "jqxscrollbar", "jqxcombobox", "jqxwindow", 
                   "jqxcolorpicker", "jqxdropdownbutton", "jqxdropdownlist", "jqxlistbox", "jqxbuttons"]
        },
        "jqxgrid": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxgrid_selection": {
            export: "$",
            deps: ['jquery', "jqxcore", "jqxgrid"]
        },
        "jqxgrid_columnsresize": {
            export: "$",
            deps: ['jquery', "jqxcore", "jqxgrid"]
        },
        "jqxgrid_filter": {
            export: "$",
            deps: ['jquery', "jqxcore", "jqxgrid"]
        },
        "jqxmenu": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxcombobox": {
            export: "$",
            deps: ['jquery', "jqxcore", "jqxlistbox"]
        },
        "jqxdata": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxdragdrop": {
            export: "$",
            deps: ['jquery', "jqxcore"]
        },
        "jqxlistbox": {
            export: "$",
            deps: ['jquery', "jqxcore", "jqxscrollbar", "jqxdragdrop"]
        },
        "jqxdropdownlist": {
            export: "$",
            deps: ['jquery', "jqxcore", "jqxlistbox"]
        }
    },
    deps:[ "main" ]
});