// structure that describes columns of the table and their type
var TABLE_CAPT = [
	{
		'name' : 'Program ID', // columns titles
		'type' : STR // standard types (STR, NUM) or custom compare function
	},
	{
		'name' : 'PI', // columns titles
		'type' : STR // standard types (STR, NUM) or custom compare function
	},
	{
		'name' : 'Instrument(s)', // columns titles
		'type' : STR // standard types (STR, NUM) or custom compare function
	},
	{
		'name' : '% Ph2', // columns titles
		'type' : NUM, // standard types (STR, NUM) or custom compare function
		'format' : function (n) {
					return n > 0 ? 'tabBody0ColFlag' : null
				}
	},
	{
		'name' : '% For Rev', // columns titles
		'type' : NUM, // standard types (STR, NUM) or custom compare function
		'format' : function (n) {
					return n > 0 ? 'tabBody0ColFlag' : null
				}
	},
	{
		'name' : '% For Activ', // columns titles
		'type' : NUM, // standard types (STR, NUM) or custom compare function
		'format' : function (n) {
					return n > 0 ? 'tabBody0ColFlag' : null
				}
	},
	{
		'name' : '% On Hold', // columns titles
		'type' : NUM // standard types (STR, NUM) or custom compare function
	},
	{
		'name' : '% Inactive', // columns titles
		'type' : NUM // standard types (STR, NUM) or custom compare function
	},
	{
		'name' : '% Ready', // columns titles
		'type' : NUM // standard types (STR, NUM) or custom compare function
	},
	{
		'name' : '% Exec', // columns titles
		'type' : NUM // standard types (STR, NUM) or custom compare function
	},
	{
		'name' : 'NGO email', // columns titles
		'type' : STR // standard types (STR, NUM) or custom compare function
	},
	{
		'name' : 'Gemini CS', // columns titles
		'type' : STR // standard types (STR, NUM) or custom compare function
	},
	{
		'name' : 'Full NGO email', // columns titles
		'type' : STR, // standard types (STR, NUM) or custom compare function
		'hide' : true
	}
];
// 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' : 0,
	'key' : 0,
	'structure' : [0, 1, 2, 3, 4, 5],
	'params' : [3, 1], // [cellpadding,cellspacing]
	'colors' : {
		'even'    : '#FFFFFF',
		'odd'     : '#CCCCCC',
		'hovered' : '#AAFFAA',
		'marked'  : '#FFFF00'
	},
	'multy_mark' : true,
	'freeze' : [0, 0], // how many rows to skip [at_the_top, at_the_bottom] when applying effects
	'paging' : {
		'by' : 25, // page size (0 - no paging)
		'pp' : '&nbsp;&nbsp;<img src="img/prev.gif" alt="prev page" width="4" height="8" border=0>', // previous page link
		'pf' : '<img src="img/first.gif" alt="first page" width="9" height="8" border=0>', // first page link
		'pn' : '<img src="img/next.gif" alt="next page" width="4" height="8" border=0>&nbsp;&nbsp;', // next page link
		'pl' : '<img src="img/last.gif" alt="last page" width="9" height="8" border=0>', // html for last page link
		'tt' : '&nbsp;Page %ind of %pgs&nbsp;' /* in this line you can use the following variables 1-bazed:
													%pgs total pages index
													%ind current page index
													%rcs total records found
												*/
	},
	'sorting' : {
		// HTML for ascending sorted state icon
		'as' : '<img src=img/asc.gif border=0 height=4 width=8 alt="sort descending">',
		// HTML for descending sorted state icon
		'ds' : '<img src=img/desc.gif border=0 height=4 width=8 alt="sort ascending">',
		'cl' : null,
		// Order of sorted: true - ascending sorted, false descending sorted
		'or' : false

	},
	'filter' : {
		// filter 0 - off, 1 - substring, 2 - match, 4 - regexp filter (e.g. 1 + 2 + 4 means all filters on)
		'type' : 1, 
		'btn_ok' : '&nbsp;<img src=img/yes.gif width="16" height="16" border=0 alt="Apply filter" align="absmiddle">',
		'btn_no' : '<img src=img/no.gif width="16" height="16" border=0 alt="Clear filter" align="absmiddle">'
	},
	'css' : {
		'main'     : 'tabTable0',
		'body'     :['tabBody0Col0','tabBody0Col1','tabBody0Col2','tabBody0Colpc','tabBody0Colpc', 'tabBody0Colpc','tabBody0Colpc','tabBody0Colpc','tabBody0Colpc'],
		'captCell' : 'tabCaptionCell0',
		'captText' : 'tabCaptionLink0',
		'head'     : 'tabHeadCell0',
		'foot'     : 'tabFootCell0',
		'pagnCell' : 'tabPaging0',
		'pagnText' : 'tabPagingText0',
		'pagnPict' : 'tabPagingArrowCell0',
		'filtCell' : 'tabFilter0',
		'filtPatt' : 'tabFilterPattern0',
		'filtSelc' : 'tabFilterSelect0'
	}
};

var ARR_STRINGS = {
	'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"',
	'not_meet' : "Notice : Input date does not meet input date format."
};
