var cur = function( el ) {
    switch ( el.style.cursor ) {
        case 'pointer': 
            el.style.cursor = 'auto';
            break;
        default:
            el.style.cursor = 'pointer';
            break;
    };
}

var posbg = function( td ) {
    var node = td.offsetParent;
    node.style.backgroundPosition =  ( td.offsetLeft + td.clientWidth - 158 ) + 'px 0';
    cur( td );
    td.firstChild.style.color = '#27547A';
};

var unposbg = function( td ) {
    var node = td.offsetParent;
    node.style.backgroundPosition =  '-900px 0';
    cur( td );
    td.firstChild.style.color = '#BD2252';
}

var setbg = function( td, color ) {
    td.style.backgroundColor = color;
}
