// Images Theme Path
var TTpath_to_images='../Themes/BlueGloss/Images/table/';

// structure that describes columns of the table and their type
var TABLE_CAPT = [
  {
    'name' : '' // columns titles
  },
  {
    'name' : 'Description' // columns titles
  },
  {
    'name' : 'Item Number', // columns titles
    'type' : STR, // standard types (STR, NUM) or custom compare function
    'hide' : true
  },
  {
    'name' : 'Price', // columns titles
    'type' : CURRENCY ,// standard types (STR, NUM) or custom compare function
    'format' : function (n_) {
          return n_ < 0 ? 'tabBody1Col3neg' : null
        }
  }
];

// structure that describes visual aspects of the table
var TABLE_LOOK = {
  // 0 - caption,
  // 1 - header rows to be skipped at the top when applying effects,
  // 2 - body,
  // 3 - footer rows to be skipped at the bottom when applying effects,
  // 4 - paging,
  // 5 - filters
  'onclick' : function (a_row, a_marked) {
    //var strLoc = '../customerscripts/ItemDetail.asp?ITEM=' + a_marked;

    //siteNavigate(strLoc,'','2','');
    //var o_form = document.forms.myForm
    //o_form.row.value = a_row.join(', ')
    //o_form.ind.value = a_marked.join(', ')
  },
  'key' : 2,
  //'structure' : [0,1,2, 3, 4, 5],
  'structure' : [0, 1, 2, 3, 4],
  'params' : [3, 1], // [cellpadding,cellspacing]
  'colors' : {
    'even'    : 'white',
    'odd'     : 'white',
    'hovered' : '#cc9999',
    'marked'  : '#33ffcc'
  },
  'freeze' : [0, 0], // how many rows to skip [at_the_top, at_the_bottom] when applying effects
  'multy_mark' : false,
  'paging' : {
    'by' : 0, // page size (0 - no paging)
    'pp' : '<img src=' + TTpath_to_images + 'prev_sm.gif border=0 height=16 width=16 alt="Previous Page" style="margin-left:5px;">', // html for previous page link
    'pn' : '<img src=' + TTpath_to_images + 'next_sm.gif border=0 height=16 width=16 alt="Next Page" style="margin-right:5px;">', // html for next page link
    'pf' : '<img src=' + TTpath_to_images + 'first_sm.gif border=0 height=16 width=16 alt="First Page">', // html for previous page link
    'pl' : '<img src=' + TTpath_to_images + 'last_sm.gif border=0 height=16 width=16 alt="Last Page">', // html for next page link
    'tt' : '%rcs record(s) found', /* in this line you can use the following variables 1-bazed:
                      %pgs total pages index
                      %ind current page index
                      %rcs total records found
                    */
    'sh' : true
  },
  'sorting' : {
    // HTML for ascending sorted state icon (text)
    'as' : '<img src=' + TTpath_to_images + 'asc.gif border=0 height=4 width=8 alt="sort descending">',
    // HTML for descending sorted state icon (text)
    'ds' : '<img src=' + TTpath_to_images + 'desc.gif border=0 height=4 width=8 alt="sort ascending">',
    // HTML for unsorted state icon (text)
    'no' : '<img src=' + TTpath_to_images + 'asds.gif border=0 height=9 width=8 alt="sort ascending">'
  },
  'filter' : {
    'type': 1 // filter 0 - off, 1 - substring, 2 - match, 4 - regexp filter (e.g. 1+2+4 means all filters on)
  },
  'css' : {
    'main'     : 'tabTable1',
    'body'     : ['tabBody1Col0','tabBody1Col1','tabBody1Col2','tabBody1Col3'],
    'captCell' : 'tabCaptionCell1',
    'captText' : 'tabCaptionLink1',
    'head'     : 'tabHeadCell1',
    'foot'     : 'tabFootCell1',
    'pagnCell' : 'tabPaging1',
    'pagnText' : 'tabPagingText1',
    'pagnPict' : 'tabPagingArrowCell1',
    'filtCell' : 'tabFilter1',
    'filtPatt' : 'tabFilterPattern1',
    'filtSelc' : 'tabFilterSelect1'
  }
};

var ARR_STRINGS ={
'WEEKDAYS':["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
'long_days' : ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
'short_days' : ['Sun', 'Mon', 'Tue', 'Wen', 'Thu', 'Fri', 'Sat'],
'long_month' : ['January','February','March','April','May','June','July','August','September','October','November','December',''],
'short_month' : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', ''],
'bad_month':'Parsing error: unknown month "%month_name"',
'bad_date_format':'Unknown date format',
'need_form_name':'Form name is required parameter of draw method.',
'form_not_found':"Form with name '%form_name' can't be found in the document.",
'max_date':'Sorry, dates after %max_date are not allowed.',
'min_date':'Sorry, dates before %min_date are not allowed.',
'not_meet':"Notice : Input date does not meet input date format."
};

