/* Top Level Menu Styles (varies) */

var STYLE_A =
{
    textStyle:[ "background: left bottom repeat-x url(images/nav_about.gif);", "background: left bottom repeat-x url(images/nav_about_o.gif);" ],
    leveloff:[ "+parentItem", 0 ],
    itemFilters:[ "" ]
};

var STYLE_B =
{
    textStyle:[ "background: left bottom repeat-x url(images/nav_tech.gif);", "background: left bottom repeat-x url(images/nav_tech_o.gif);" ],
    leveloff:[ "+parentItem", 0 ],
    itemFilters:[ "" ]
};

var STYLE_C =
{
    textStyle:[ "background: left bottom repeat-x url(images/nav_solut.gif);", "background: left bottom repeat-x url(images/nav_solut_o.gif);" ],
    leveloff:[ "+parentItem", 0 ],
    itemFilters:[ "" ]
};

var STYLE_D =
{
    textStyle:[ "background: left bottom repeat-x url(images/nav_news.gif);", "background: left bottom repeat-x url(images/nav_news_o.gif);" ],
    leveloff:[ "+parentItem", 0 ],
    itemFilters:[ "" ]
};

var STYLE_E =
{
    textStyle:[ "background: left bottom repeat-x url(images/nav_contact.gif);", "background: left bottom repeat-x url(images/nav_contact_o.gif);" ],
    leveloff:[ "+parentItem", 0 ],
    itemFilters:[ "" ]
};

/* Submenu Style (same for all) */

var STYLE_1 =
{
    borderWidth:1,
    borderColor:"#e6e7e8",
    backgroundColor:[ "#e6e7e8", "#e6e7e8" ],
    textStyle:[ "color: #414142; font: 9pt Arial, sans-serif; text-align: left; padding-right: 12px; padding-left: 12px;", "color: #414142; font: 9pt Arial, sans-serif; text-align: left; padding-right: 12px; padding-left: 12px; text-decoration: underline;" ],
    size:[ 24, 147 ],
    itemoff:[ "+previousItem-1px", 0 ],
    itemFilters:"",
    ifFirst:
    {
        size:[ 23, 147 ],
        borderWidth:[ 1, 0, 1, 1 ]
    }
};

var STYLE_2 =
{
    borderWidth:1,
    borderColor:"#e6e7e8",
    backgroundColor:[ "#e6e7e8", "#e6e7e8" ],
    textStyle:[ "color: #414142; font: 9pt Arial, sans-serif; text-align: left; padding-right: 12px; padding-left: 12px;", "color: #414142; font: 9pt Arial, sans-serif; text-align: left; padding-right: 12px; padding-left: 12px; text-decoration: underline;" ],
    size:[ 24, 190 ],
    itemoff:[ "+previousItem-1px", 0 ],
    itemFilters:"",
    ifFirst:
    {
        size:[ 23, 190 ],
        borderWidth:[ 1, 0, 1, 1 ]
    }
};

/* Menu Items (same for all) */

var MENU_ITEMS = [
    {itemoff:[0, 166], format:{size:[25, 10], itemoff:[0,100]}, style:[ STYLE_A, STYLE_1 ], blankImage:"../images/spacer.gif" },
    {code:"<img src=\"../images/spacer.gif\" width=\"149\" height=\"35\" style=\"vertical-align: bottom;\" />", format:{size:[35, 149], itemoff:[0, 0]}, url:"../pv-solar-power-systems/index.shtml",
        sub:[
            {},
            {code:"Overview", /*1{*/url:"../pv-solar-power-systems/index.shtml"/*1}*/},
            {code:"Our Mission", /*1{*/url:"../pv-solar-power-systems/solar-module-manufacturers.shtml"/*1}*/},
            {code:"Our Team", /*1{*/url:"../pv-solar-power-systems/enn-team.shtml"/*1}*/},
            {code:"ENN Group", /*1{*/url:"../pv-solar-power-systems/enn-group.shtml"/*1}*/},
            {code:"Our Partners", /*1{*/url:"../pv-solar-power-systems/pv-energy-systems.shtml"/*1}*/},
            {code:"Our Brochures", /*1{*/url:"../pv-solar-power-systems/brochures.shtml"/*1}*/}
        ]
    },
    {code:"<img src=\"../images/spacer.gif\" width=\"143\" height=\"35\" style=\"vertical-align: bottom;\" />", format:{size:[35, 143], itemoff:[0, 149], style:STYLE_B}, url:"../pv-thin-film/index.shtml",
        sub:[
            {style:STYLE_2},
            {code:"Overview", /*1{*/url:"../pv-thin-film/index.shtml"/*1}*/},
            {code:"EST Series Modules", /*1{*/url:"../pv-thin-film/thin-film-pv-modules.shtml"/*1}*/},
            {code:"Features", /*1{*/url:"../pv-thin-film/silicon-thin-film-pv.shtml"/*1}*/},
            {code:"ENN vs Crystalline Silicon", /*1{*/url:"../pv-thin-film/pv-module-efficiency.shtml"/*1}*/},
            {code:"ENN vs Other Thin Film", /*1{*/url:"../pv-thin-film/solar-pv-thin-film.shtml"/*1}*/}
        ]
    },
    {code:"<img src=\"../images/spacer.gif\" width=\"160\" height=\"35\" style=\"vertical-align: bottom;\" />", format:{size:[35, 160], itemoff:[0, 143], style:STYLE_C}, url:"../solar-farms/index.shtml",
        sub:[
            {style:STYLE_2},
            {code:"Overview", /*1{*/url:"../solar-farms/index.shtml"/*1}*/},
            {code:"Distributors", /*1{*/url:"../solar-farms/distributors.shtml"/*1}*/},
            {code:"System Integrators &amp; EPCs", /*1{*/url:"../solar-farms/integrators.shtml"/*1}*/},
            {code:"Project Developers", /*1{*/url:"../solar-farms/developers.shtml"/*1}*/},
			{code:"Utilities &amp; IPPs", /*1{*/url:"../solar-farms/utilities.shtml"/*1}*/}
        ]
    },
    {code:"<img src=\"../images/spacer.gif\" width=\"109\" height=\"35\" style=\"vertical-align: bottom;\" />", format:{size:[35, 109], itemoff:[0, 160], style:STYLE_D}, url:"../pv-solar-technology-news/index.shtml",
        sub:[
            {style:STYLE_1},
            {code:"Overview", /*1{*/url:"../pv-solar-technology-news/index.shtml"/*1}*/}
        ]
    },
    {code:"<img src=\"../images/spacer.gif\" width=\"98\" height=\"35\" style=\"vertical-align: bottom;\" />", format:{size:[35, 98], itemoff:[0, 109], style:STYLE_E}, url:"../contact/index.shtml",
        sub:[
            {style:STYLE_1},
            {code:"Contact Us", /*1{*/url:"../contact/index.shtml"/*1}*/},
            {code:"Request a Quote", /*1{*/url:"../contact/quote.shtml"/*1}*/}
        ]
    },
];

var menu1 = new COOLjsMenuPRO("menu1", MENU_ITEMS);
menu1.initTop();