// structure that describes columns of the table and their type
var TABLE_CAPT = [
	{
		'name' : 'Year-Plant', // columns titles
		'type' : STR, // standard types (STR, NUM) or custom compare function
		'hide' : true
	},
	{
		'name' : 'Seq-No', // columns titles
		'type' : STR // standard types (STR, NUM) or custom compare function
	},
	{
		'name' : 'VIN', // columns titles
		'type' : STR
	},
	{
	  	'name' : 'Description', // columns titles
	  	'format' : function (n_cast, n_orig) {
	  	
	  		if (n_cast.indexOf("Item mailed") >=0)
				return ('tabBodyFound') 
			else if (n_cast.indexOf("** ") >=0)
				return ("tabBodyParted")			
			else 	return (null)
			
			}

	 }  	
];

// structure that describes visual aspects of the table
var TABLE_LOOK = {
	// 0 - caption,
	// 1 - header,
	// 2 - body,
	// 3 - footer,
	// 4 - paging,
	// 5 - filters
	'structure' : [0, 1, 2, 3, 4],
	'params' : [3, 1], // [cellpadding,cellspacing]
	'colors' : {
		'even'    : 'white',
		'odd'     : 'white',
		'hovered' : '#ff8000',
		'marked'  : '#ff4500'
	},
	'freeze' : [0, 0], // how many rows to skip [at_the_top, at_the_bottom] when applying effects
	'paging' : {
		'by' : 50, // page size (0 - no paging)
		'pp' : '&nbsp;<b>&laquo;</b>', // html for previous page link
		'pn' : '<b>&raquo;</b>&nbsp;', // html for next page link
		'tt' : '[%rcs matching records] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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
												*/
		'sh' : true
	},
	'sorting' : {
		'cl' : 2,
		'or' : false,
		// HTML for ascending sorted state icon (text)
		'as' : '<img src=img/asc.gif border=0 height=4 width=8 alt="sort descending">',
		// HTML for descending sorted state icon (text)
		'ds' : '<img src=img/desc.gif border=0 height=4 width=8 alt="sort ascending">',
		// HTML for unsorted state icon (text)
		'no' : '<img src=img/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'
	}
};
