//keywords
var code="code";var url="url";var sub="sub";
//styles
var defcolor = {"border":"#666666", "shadow":"#DBD8D1", "bgON":"white","bgOVER":"#B6BDD2", "imagebg":"#DBD8D1", "oimagebg":"#B6BDD2"};
var defcss = {"ON":"clsCMTopOn", "OVER":"clsCMTopOver"};
var TOP_LEFT = {"border":1, "borders":[1,1,0,1], "shadow":2, "color":defcolor, "css":defcss};
var TOP_MIDDLE = {"border":1, "borders":[0,1,0,1], "shadow":2, "color":defcolor, "css":defcss};
var TOP_RIGHT = {"border":1, "borders":[0,1,1,1],"shadow":2, "color":defcolor, "css":defcss};
var STYLE1 = {"border":1, "borders":[1,0,1,0], "shadow":2, "color":defcolor, "css":defcss};
var STYLE_TOP = {"border":1, "borders":[1,1,1,0], "shadow":2, "color":defcolor, "css":defcss};
var STYLE_BOTT = {"border":1, "borders":[1,0,1,1], "shadow":2, "color":defcolor, "css":defcss};

var MENU_ITEMS = [
	{"pos":"relative", "size":[22,80], "itemoff":[0,80], "imgsize":[16,27], "leveloff":[0,0], "delay":600, "image":"img/blank.gif", "imgsize":[20,24], "arrow":"img/arrow.gif", "arrsize":[13,13],  "style":TOP_MIDDLE},
    {code:"Home", url:"/index.shtml", "format":{"arrow":null, "image":null, "style":TOP_LEFT},
        sub:[
            {"size":[22,180], "itemoff":[21,0], "leveloff":[21,0], "style":STYLE1},
            {code:"CoolDev.Com", url:"http://www.cooldev.com", "format":{"image":"img/home.gif", "oimage":"img/ohome.gif", "style":STYLE_TOP}},
            {code:"JavaScript.CoolDev.Com", url:"http://javascript.cooldev.com", "format":{"image":"img/home.gif", "oimage":"img/ohome.gif", "style":STYLE_BOTT}}
			]
	},
    {code:"Scripts", "format":{"arrow":null, "image":null},
    sub:[
        {"size":[22,150], "itemoff":[21,0], "leveloff":[21,0], "arrow":"img/arrow.gif", "oarrow":"img/oarrow.gif", "style":STYLE1, "image":"img/b.gif"},
        {code:"COOLjsMenu",  "format":{"image":"img/menu.gif", "oimage":"img/omenu.gif", "style":STYLE_TOP},
        sub:[
            {"size":[22,150], "itemoff":[21,0], "leveloff":[3,147], "image":"img/b.gif", "oimage":"img/b.gif", "style":STYLE1},
            {code:"Overview", url:"http://javascript.cooldev.com/scripts/coolmenu/", "format":{"style":STYLE_TOP}},
            {code:"Demos", url:"http://javascript.cooldev.com/scripts/coolmenu/demos/"},
            {code:"Documentation", url:"http://javascript.cooldev.com/scripts/coolmenu/docs/", "format":{"style":STYLE_BOTT}}
            ]
        },
        {code:"COOLjsTree", "format":{"image":"img/tree.gif", "oimage":"img/otree.gif"},
        sub:[
            {"size":[22,150], "itemoff":[21,0], "leveloff":[3,147],"image":"img/b.gif", "oimage":"img/b.gif", "style":STYLE1},
            {code:"Overview", url:"http://javascript.cooldev.com/scripts/cooltree/index.shtml", "format":{"style":STYLE_TOP}},
            {code:"Demos",
            sub:[
                {"size":[22,150], "itemoff":[21,0], "style":STYLE1},
                {code:"Simple Tree", url:"http://javascript.cooldev.com/scripts/cooltree/demos/simple/index.shtml", "format":{"style":STYLE_TOP}},
                {code:"Site Map", url:"http://javascript.cooldev.com/scripts/cooltree/demos/menu1/index.shtml"},
                {code:"Different Styles", url:"http://javascript.cooldev.com/scripts/cooltree/demos/styles/index.shtml"},
                {code:"Collapsable Forms", url:"http://javascript.cooldev.com/scripts/cooltree/demos/forms/index.shtml"},
                {code:"Cool Tree", url:"http://javascript.cooldev.com/scripts/cooltree/demos/cool/index.shtml", "format":{"style":STYLE_BOTT}}
                ]
            },
            {code:"Documentation", url:"http://javascript.cooldev.com/scripts/cooltree/docs/", "format":{"style":STYLE_BOTT}}
            ]
        },
        {code:"COOLjsMenu Pro", "format":{"image":"img/menup.gif", "oimage":"img/omenup.gif"},
        sub:[
            {"size":[22,150], "itemoff":[21,0], "leveloff":[3,147], "image":"img/b.gif", "oimage":"img/b.gif", "style":STYLE1},
            {code:"Overview", url:"index.html", "format":{"style":STYLE_TOP}},
            {code:"Demos", url:"demos/index.html"},
            {code:"Documentation", url:"docs/index.html", "format":{"style":STYLE_BOTT}}
            ]
        },
        {code:"COOLjsTree Pro", "format":{"image":"img/treep.gif", "oimage":"img/otreep.gif"},
        sub:[
            {"size":[22,150], "itemoff":[21,0], "leveloff":[3,147], "image":"img/b.gif", "oimage":"img/b.gif", "style":STYLE1},
            {code:"Overview", url:"http://javascript.cooldev.com/scripts/cooltreepro/", "format":{"style":STYLE_TOP}},
            {code:"Demos",
            sub:[
                {"size":[22,150], "itemoff":[21,0], "style":STYLE1},
                {code:"Relative", url:"http://javascript.cooldev.com/scripts/cooltreepro/demos/relative.shtml", "target":"_blank", "format":{"style":STYLE_TOP}},
                {code:"Placed in TD", url:"http://javascript.cooldev.com/scripts/cooltreepro/demos/intdtag.shtml", "target":"_blank"},
                {code:"Different images", url:"http://javascript.cooldev.com/scripts/cooltreepro/demos/diffimages.shtml", "target":"_blank", "format":{"style":STYLE_BOTT}}
                ]
            },
            {code:"Documentation", url:"http://javascript.cooldev.com/scripts/cooltreepro/docs/", "format":{"style":STYLE_BOTT}}
            ]
        },
        {code:"Download/Order", url:"http://javascript.cooldev.com/scripts/pricing.shtml",  "format":{"image":"img/download.gif", "oimage":"img/odownload.gif", "style":STYLE_BOTT}}
        ]
    },
    {code:"Visual builders", "format":{"size":[22,120], "arrow":null, "image":null},
    sub:[
        {"size":[22,150], "itemoff":[21,0], "leveloff":[21,0], "arrow":"img/arrow.gif", "style":STYLE1, "image":"img/b.gif"},
        {code:"COOLjsTree builder", url:"http://javascript.cooldev.com/scripts/utils/cooltreebuilder.shtml", "format":{"style":STYLE_TOP}},
        {code:"COOLjsMenu builder", url:"http://javascript.cooldev.com/scripts/utils/coolmenubuilder.shtml", "format":{"style":STYLE_BOTT}}
        ]
    },
    {code:"Contacts", "format":{"itemoff":[0,120], "arrow":null, "image":null, "style":TOP_RIGHT},
    sub:[
        {"size":[22,150], "itemoff":[21,0], "leveloff":[21,0], "image":"img/email.gif", "oimage":"img/oemail.gif", "style":STYLE1, "image":"img/b.gif"},
        {code:"General", url:"mailto:jsinfo@cooldev.com", "format":{"image":"img/email.gif", "style":STYLE_TOP}},
        {code:"Support", url:"mailto:jssupport@cooldev.com", "format":{"image":"img/email.gif"}}, 
        {code:"Sales", url:"mailto:jssales@cooldev.com", "format":{"image":"img/email.gif", "style":STYLE_BOTT}}
        ]
    }
];

