//function wI(s,t,c,m){if(isW)document.write("<img src='"+s+"' alt='"+t+"'"+(c!=""?" class='"+c+"'":"")+(m!=""?" usemap='"+m+"'":"")+">");}
//function rT(){if(isW)document.write("<!"+"--");}
//function w(o){if(o&&o.className)o.className=o.className+"W";}
//function e(n){return document.getElementById(n);}
//function rE(n){var o=e(n);if(o)o.parentNode.removeChild(o);}
var tbarr=null;var tbCount=-1;var cTab=-1;var tblMaxHeight=0;var timp=null;var tact=0;var titimer=null;var tirun=false;
function G(i){
ss = document.getElementById(i);
//alert(ss + "   -   " + i);
return ss;
}
function FT(i){var cPh;if(tbarr != null){if(cTab>-1){cPh = G('tbh_' + cTab);cPh.className = 'Normal';}cPh = G('tbc_0');cPh.innerHTML = tbarr[i];cPh = G('tbh_' + i);cPh.className = 'Hilite';cTab = i;}}

//Called from the content file (eg. default.xml)
function TI()
{
    var tabTable = G('tbt');
    if(tabTable != null)
    {
        var node;
        var tmp = 0;
        G('rwph').style.visibility='visible';
        tbarr = new Array();
        timp = new Array();
        tbCount = tabTable.rows.length-2;
        for(var x = 0; x < tbCount; x++)
        {
            node = G('tbh_' + x);
            node.className='Normal';
            node = G('tbc_' + x);
            tbarr[x] = node.innerHTML;
            timp[x] = false;
            node.className = "HideTab";
            node.innerHTML = "";
        }
        node.rowSpan = tabTable.rows.length-1;
        node = G('tbc_0');
        node.rowSpan = tabTable.rows.length-1;
        node.className = 'Content';
        FT(0);
        try
        {
            for(var x = 0; x < tbCount; x++)
            {
                FT(x);
                node = G('tbc_0');
                tblMaxHeight = ((node.offsetHeight > tblMaxHeight) ? node.offsetHeight : tblMaxHeight);
            }
        }
        catch(e){}
        FT(0);
        tblMaxHeight = ((node.offsetHeight > tblMaxHeight) ? node.offsetHeight : tblMaxHeight);
    }
}




function CI(i){if(tact != i){tact = i;if(tirun){clearTimeout(titimer);tirun = false;}if(i > 0){tirun = true;titimer = self.setTimeout("CIT()", 50);}}}
function CIT(){if(timp != null){if(timp[tact] == false){timp[tact] = true;}}}
var ctb = 0;
function KP(o){var k;k=(window.event != null && window.event.keyCode != null) ? window.event.keyCode : e.which;if(k==null && o !=null && o.keyCode !=null)k=o.keyCode;if(k==13||k==32){FT(ctb);CI(ctb);setTimeout("G('mrq_'+ctb).focus()",1);return false;}return k;}