//gDDStrings is defined at end of this file from the Strings object contained in this file

netopia.create("nxg").create("dropdown").add({
Strings : $extends(netopia.core.Object,
{
    ctor : function()
    {//todo, populate this from java tag,true
        this.useIEBoxBModel = true;
        this.seperator="_";
        this.dash="-";
        this.absolute = "absolute";
        this.position = "position";
        this.overflow = "overflow";
        this.hidden = "hidden";
        this.relative = "relative";
        this.horizontal = "horizontal";
        this.vertical = "vertical";
        this.flow = "Menu_Flow";
        this.spacing = "Menu_Spacing";
        //this.equals="=";
        this.dblQuote="\"";
        this.styleRuleSeperator=";";
        this.styleNameValueSeperator=":";
        this.copyPrefix = "_Copy_";
        this.floatName="float";
        this.marginRight="margin-right";
        this.marginBottom="margin-bottom";
        this.marginTop="margin-top";
        this.marginLeft="margin-left";
        this.padding="padding";
        this.border="border";
        this.paddingLeft="padding-left";
        this.paddingRight="padding-right";
        this.paddingTop="padding-top";
        this.paddingBottom="padding-bottom";
        this.offsetX="DD_Offset_X";
        this.offsetY="DD_Offset_Y";
        this.margin="margin";
        this.tempNewMTId = "tempNewMTId";
        this.top="top";
        this.left="left";
        this.bottom="bottom";
        this.right="right";
        this.backgroundImage = "background-image";
        this.fontWeight = "_font-weight";
        this.textDecoration = "text-decoration";
        this.fontStyle = "_font-style";
        this.backgroundColor = "background-color";
        this.borderColor = "border-color";
        this.borderWidth = "border-width";
        this.width = "width";
        this.height = "height";
        this.whiteSpace = "white-space";
        this.normal = "normal";
        this.noWrap = "noWrap";
        this.style = "style";
        this.borderStyle = "border-style";
        this.listStyle = "list-style";
        this.display= "display";
        this.inline= "inline";
        this.inline= "block";
        this.none = "none";
        this.solid = "solid";
        this.zIndex = "z-index";
        this.zIndexValue = "100000";
        this.color = "color";
        this.hoverPrefix = "_HOV";
        this.hover =  "_Hover";
        this.pageActivePrefix =  "_PA";
        this.defaultPrefix = "_DEF";
        this.space=" ";
        this.listTag= "UL";
        this.listItemTag="LI";
        this.anchorTag="A";
        this.spanTag="SPAN";
        this.MTPrefix="MT";
        this.MIPrefix="MI";
        this.DDPrefix="DD";
        this.widgetTag="DIV";
        this.cursor="cursor";
        this.hand = "pointer";
        this.tgTag="TGDropdown";
        this.itemPrefix="Item_";
        this.typeSuffix="_Type";
        this.itemWidthType="Item_Width_Type";
        this.itemHeightType="Item_Height_Type";
        this.itemWidth="Item_Width";
        this.itemHeight="Item_Height";
        this.ddBoxWidthType="DD_Width_Type";
        this.ddBoxWidth="DD_Width";
        this.linkUrl = "Link_URL";
        this.linkLabel = "Link_Label";
        this.auto="auto";
        this.bgImage="bgImage";
        this.image="image";
        this.fixed="fixed";
        this.MTClassName = "MT_Class_Name";
        this.MIClassName = "MI_Class_Name";
        this.DDClassName = "DD_Class_Name";
        //adds all of the attributes for the menu item or menu title
        /*
        this.elementTypes = new Array();
        
        this.elementTypes[this.elementTypes.length]= new netopia.nxg.dropdown.Option(this.MTPrefix,this.listItemTag);
        this.elementTypes[this.elementTypes.length]= new netopia.nxg.dropdown.Option(this.MIPrefix,this.listItemTag);
        this.elementTypes[this.elementTypes.length]= new netopia.nxg.dropdown.Option(this.DDPrefix,this.listTag);
        */
     
        //adds all of the attributes for the menu item or menu title
        this.itemAttributes = new Array();
        this.itemAttributes[this.itemAttributes.length]= new netopia.nxg.dropdown.Option(this.linkLabel,"",false);
        this.itemAttributes[this.itemAttributes.length] = new netopia.nxg.dropdown.Option(this.linkUrl,"",false);
        this.itemAttributes[this.itemAttributes.length]= new netopia.nxg.dropdown.Option(this.itemWidthType,"auto",false);
        this.itemAttributes[this.itemAttributes.length]=new netopia.nxg.dropdown.Option(this.itemWidth,"",false);
        this.itemAttributes[this.itemAttributes.length]= new netopia.nxg.dropdown.Option(this.itemHeightType,"fixed",false);
        this.itemAttributes[this.itemAttributes.length]=new netopia.nxg.dropdown.Option(this.itemHeight,"19px",false);  
        
        //adds all of the attributes for the widget (not menu item specific)            
        this.widgetAttributes = new Array();        
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option(this.spacing,"5px",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option(this.flow,"horizontal",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option(this.MTClassName,"",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_border-style","solid",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_border-style","solid",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_DEF_border-style","solid",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_Copy_Border","true",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_Copy_Background","true",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_Copy_Padding","true",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_Copy_Text","false",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option(this.MIClassName,"",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_Copy_Border","true",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_Copy_Background","true",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_Copy_Padding","false",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option(this.ddBoxWidthType,"auto",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option(this.ddBoxWidth,"",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option(this.offsetX,"0",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option(this.offsetY,"0",false);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option(this.DDClassName,"",false); 
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_background-color","#E1F0FF",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_PA_background-color","#E1F0FF",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_HOV_background-color","#E1F0FF",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_background-image","",true); 
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_PA_background-image","",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_HOV_background-image","",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_color","#003878",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_PA_color","#003878",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_HOV_color","#003878",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_border-color","#999999",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_PA_border-color","#999999",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_HOV_border-color","#999999",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_font-family","arial,helvetica,sans-serif",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_font-size","12px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_font-style","",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_font-weight","bold",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_text-align","center",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_text-decoration","",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_border-width","1px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_padding-right","5px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_padding-left","5px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_padding-top","5px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MT_DEF_padding-bottom","0px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_background-color","#E1F0FF",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_PA_background-color","#E1F0FF",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_HOV_background-color","#E1F0FF",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_background-image","",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_PA_background-image","",true); 
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_HOV_background-image","",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_color","#003878",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_PA_color","#003878",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_HOV_color","#003878",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_border-color","#999999",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_PA_border-color","#999999",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_HOV_border-color","#999999",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_font-family","arial,helvetica,sans-serif",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_font-size","12px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_font-style","",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_font-weight","bold",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_text-align","center",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_text-decoration","",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_border-width","1px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_padding-right","5px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_padding-left","5px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_padding-top","4px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("MI_DEF_padding-bottom","0px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_DEF_background-color","#E1F0FF",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_DEF_background-image","",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_DEF_border-color","#003B78",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_DEF_border-width","1px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_DEF_padding-right","5px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_DEF_padding-left","5px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_DEF_padding-top","5px",true);
        this.widgetAttributes[this.widgetAttributes.length]=new netopia.nxg.dropdown.Option("DD_DEF_padding-bottom","5px",true);
    },

    getDefaulItemOptionValue : function(strName)
    {
        for (var i = 0;i < this.itemAttributes.length;i++ )
        {
            var opt = this.itemAttributes[i]; 
            if (opt.name == strName)
            {
                return opt.value;
            }
        }
        return "";
    }
         
})
});

gDDStrings = new netopia.nxg.dropdown.Strings();

