/*
   Add the following to your CSS file should you wish the cursor to
   "wait" while the script is processing the sort
*/

table.sortable sort-active *
        {
        cursor:wait;
        }



table.sortable
        {
		width: 100%;
        padding: 0;
        margin: 0 auto 1.5em auto;
        border-left: 1px solid #C1DAD7;
        border-collapse:collapse;
	
        }
table.sortable .cs1
        {
        width:30em;
        }
table.sortable .cs2
        {
        width:20em;
        }
table.sortable .cs1 td,
table.sortable .cs2 td,
table.sortable #scientificNotation
        {
        text-align:right;
        }
table.sortable caption
        {
        padding: 0 0 5px 0;
        margin:0 auto;
        width:auto;
        font: 12px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
        text-align: center;
		color:  #4f6b72;
        }
table.sortable th
        {
        font: bold 10px/22px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
        color: #4f6b72;
        border-right: 1px solid #C1DAD7;
        border-bottom: 1px solid #C1DAD7;
        border-top: 1px solid #C1DAD7;
        letter-spacing: 1px;
        text-transform: uppercase;
        text-align: left;
        padding: 8px 12px 4px 12px;
        background: #CAE8EA url(../media/bg_header.jpg) no-repeat;
        vertical-align:middle;
        }
table.sortable td.total
        {
        border-top: 0;
        border-left: 0;
        border-right: 1px solid #C1DAD7;
        background: #fff;
        text-align:right;
        font-weight:bold;
        text-transform:uppercase;
        letter-spacing:1px;
        }
table.sortable th.sortable,
table.sortable th.sortable-text,
table.sortable th.sortable-date,
table.sortable th.sortable-keep,
table.sortable th.sortable-date-dmy,
table.sortable th.sortable-numeric,
table.sortable th.sortable-currency,
table.sortable th.sortable-sortByTwelveHourTimestamp,
table.sortable th.sortable-sortIPAddress,
table.sortable th.sortable-sortEnglishLonghandDateFormat,
table.sortable th.sortable-sortScientificNotation,
table.sortable th.sortable-sortImage,
table.sortable th.sortable-sortFileSize,
table.sortable th.sortable-sortAlphaNumeric,
table.sortable th.sortable-sortEnglishDateTime

        {
        cursor:pointer;
        background: #CAE8EA url(../media/bg_header_sortable.jpg) no-repeat;
        padding: 8px 12px 4px 16px;
        }
table.sortable th.forwardSort
        {
        background:#CAE8EA url(../media/bg_header_down.jpg) no-repeat 0 0;
        }
table.sortable th.reverseSort
        {
        background:#CAE8EA url(../media/bg_header_up.jpg) no-repeat 0 0;
        }
table.sortable  thead th.forwardSort a,
table.sortable  thead th.reverseSort a
        {
        color:#000;
        text-decoration:none;
        }
/*
These styles should be added when very long tables are expected
th.sort-active
        {
        background:#CAE8EA url(../media/bg_header_sorting.jpg) no-repeat 0 0;
        cursor:wait;
        }
th.sort-active a
        {
        color:#a80000 !important;
        cursor:wait;
        }
*/
table.sortable th a
        {
        text-decoration:none;
        color: #4f6b72;
        background:transparent;
        }
table.sortable td a
        {
        text-decoration:none;
        color:#239;
        background:transparent;
        }
table.sortable td img
        {
        margin:0 auto;
        border:3px solid #ddd;
        }
table.sortable td a:hover
        {
        color:#a84444;
       /* border-bottom:1px dotted #a80000;*/
        background:transparent;
        }
table.sortable td
        {
        font: normal 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
        border-right: 1px solid #C1DAD7;
        border-bottom: 1px solid #C1DAD7;
        padding: 6px 12px 6px 12px;
        color: #4f6b72;
background:#fff;
        }
table.sortable td.lft
        {
        text-align:left;
        }
table.sortable tr.alt
        {
        background: #F5FAFA;
        color: #797268;
        }

/* Poor old Internet Explorer 6 has a bug that means we can't use background images for the table rows
   as it trys to download the image each and every time that it is used (which means a 1000 row table
   will produce 1000 http requests for the image in question) */
table.sortable tr[class="alt"] td
        {
        background: #F5FAFA url(../media/td_alt.jpg) no-repeat;
        }
table.sortable td[class~="alt"]
        {
        background: #edf3f3 url(../media/col_alt.jpg) no-repeat !important;
        }
/* Poor old Internet Explorer won't see the next two rules either as it doesn't get :first-child */
table.sortable tbody tr.alt td:first-child
        {
        background: #F5FAFA url(../media/bullet2.gif) no-repeat;
        font-weight:bold;
        }
table.sortable tbody tr td:first-child
        {
        background: #fff url(../media/bullet1.gif) no-repeat;
        font-weight:bold;
        }
/* Image free rules for Internet Explorer < 7 */
* html table.sortable tr.alt td
        {
        background-color:#F5FAFA;
        }
* html table.sortable tr td.alt,
* html table.sortable tr.alt td.alt
        {
        background-color:#edf3f3;
        }
