// structure that describes columns of the table and their type
var PLAYERSCAPT = [
	{
		'name' : '',
		'type' : STR
	},
	{
		'name' : 'Player',
		'type' : STR
	},
	{
		'name' : '#',
		'type' : NUM
	},
	{
		'name' : 'Games',
		'type' : NUM
	},
	{
		'name' : 'Fouls',
		'type' : NUM
	},
	{
		'name' : 'Fouls/<br />Game',
		'type' : NUM
	},
	{
		'name' : '2\'s',
		'type' : NUM
	},
	{
		'name' : '3\'s',
		'type' : NUM
	},
	{
		'name' : 'FT<br />Tried',
		'type' : NUM
	},
	{
		'name' : 'FT<br />Made',
		'type' : NUM
	},
	{
		'name' : 'FT<br />%',
		'type' : NUM
	},
	{
		'name' : 'Total<br />Points',
		'type' : NUM
	},
	{
		'name' : 'Points/<br />Game',
		'type' : NUM
	},
	{
		'name' : '% of<br />Points',
		'type' : NUM
	},
	{
		'name' : 'Reb/<br />Game',
		'type' : NUM
	},
	{
		'name' : 'Assist/<br />Game',
		'type' : NUM
	},
	{
		'name' : 'Steal/<br />Game',
		'type' : NUM
	},
	{
		'name' : 'Turn/<br />Game',
		'type' : NUM
	},
	{
		'name' : 'Shoot<br />%',
		'type' : NUM
	},
	{
		'name' : 'Best<br />Game',
		'type' : NUM
	}
];

// structure that describes visual aspects of the table
var PLAYERSLOOK = {
	// 0 - caption,
	// 1 - header,
	// 2 - body,
	// 3 - footer,
	// 4 - paging,
	// 5 - filters
	'structure' : [4, 0, 2, 3],
	'params' : [2, 0], // [cellpadding,cellspacing]
	'colors' : {
		'even'    : 'white',
		'odd': '#E5EBFB', //'#FFF9EA'
		'hovered': '#f5e7c0',
		'marked'  : '#C5FFBF'
	},
	'freeze' : [0,1], // how many rows to skip [at_the_top, at_the_bottom] when applying effects
	'paging' : {
		'by' : 0, // page size (0 - no paging)
		'tt' : '<span class="smallcoloredtext1 genericnoprint">Sort the table by clicking the column headings.</span>', /* 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=ttp_files/custom_imgs/red_arrow_bullet_up.gif border=0 alt="Column sorted ascending">',
		// HTML for descending sorted state icon (text)
		//'ds' : '<img src=ttp_files/custom_imgs/red_arrow_bullet_down.gif border=0 alt="Column sorted decending">',
		// HTML for unsorted state icon (text)
		//'no' : '<img src=ttp_files/custom_imgs/red_x_bullet.gif border=0 alt="Column unsorted">'
		'cl' : 0,
		'or' : 0

	},
	'filter' : {
		'type': 1 // filter 0 - off, 1 - substring, 2 - match, 4 - regexp filter (e.g. 1+2+4 means all filters on)
	},
	'css' : {
		'main'     : 'tabPlayersTable0',
		'body'     : ['tabPlayersBody0Col0','tabPlayersBody0Col1','tabPlayersBody0Col2','tabPlayersBody0Col3','tabPlayersBody0Col4','tabPlayersBody0Col5','tabPlayersBody0Col6','tabPlayersBody0Col7','tabPlayersBody0Col8','tabPlayersBody0Col9','tabPlayersBody0Col10','tabPlayersBody0Col11','tabPlayersBody0Col12','tabPlayersBody0Col13','tabPlayersBody0Col14','tabPlayersBody0Col15','tabPlayersBody0Col16','tabPlayersBody0Col17','tabPlayersBody0Col18','tabPlayersBody0Col19','tabPlayersBody0Col20'],
		'captCell' : 'tabPlayersCaptionCell0',
		'captText' : 'tabPlayersCaptionText0',
		'head'     : 'tabHeadCell1',
		'foot'     : 'tabPlayersFootCell0',
		'pagnCell' : 'tabPaging1',
		'pagnText' : 'tabPagingText1',
		'pagnPict' : 'tabPagingArrowCell1',
		'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."
};

