String.prototype.Trim=new Function("return this.replace(/^\\s+|\\s+$/g,'')")
function isString(a0){return typeof a0=='string';}
function Max(a16,a17){if(a16>a17)return a16;return a17;}
function WindowWidth(){return(typeof window.innerWidth=='undefined'?document.body.clientWidth:window.innerWidth);}
function WindowHeight(){return(typeof window.innerHeight=='undefined'?document.body.clientHeight:window.innerHeight);}
function getElementBy(a0){var a1=document.getElementById(a0);if(a1)return a1;var a2=document.getElementsByName(a0);if(a2.length>0)return a2[0];return null;}
function toElem(a0){if(!a0)return a0;if(isString(a0))return getElementBy(a0);else return a0;}
function DocTop(){return(typeof document.body.scrollTop=='undefined'?window.pageYOffset:document.body.scrollTop);}
function DocBot(){return WindowHeight()+DocTop();}
function DocLeft(){return(typeof document.body.scrollLeft=='undefined'?window.pageXOffset:document.body.scrollLeft);}
function DocRight(){return WindowWidth()+DocLeft();}
function GetBox(a0,a1,a2,a3){if(typeof a0=="string")a0=toElem(a0);var a4=new Object;var a5=0;var a6=0;for(var a7=a0;a7;a7=a7.offsetParent){a5+=a7.offsetLeft;a6+=a7.offsetTop;if(a3){a5-=a7.scrollLeft;a6-=a7.scrollTop;}if(!IsGecko()&&!f376()){a5+=a7.clientLeft;a6+=a7.clientTop;}}if(a1){a6-=GetElemTop(a1,null,a2,a3);a5-=GetElemLeft(a1,null,a2,a3);}a4.left=a5;a4.top=a6;a4.right=a5+a0.offsetWidth;a4.bottom=a6+GetElemHeight(a0);return a4;}
function GetElemHeight(a0){if(typeof a0=="string")a0=toElem(a0);if(f376()&&a0.tagName.toUpperCase()=="TD"){var a1=a0.parentNode;return f282(a1);}return a0.offsetHeight;}
function GetElemTop(a0,a1,a2,a3){if(typeof a0=="string")a0=toElem(a0);var a4=0;for(var a5=a0;a5;a5=a5.offsetParent){a4+=a5.offsetTop;if(a3)a4-=a5.scrollTop;if(!IsGecko()&&!f376())a4+=a5.clientTop;}if(a1)a4-=GetElemTop(a1,null,a2,a3);return a4;}
function GetElemWidth(a0){if(typeof a0=="string")a0=toElem(a0);return a0.offsetWidth;}
function GetElemLeft(a0,a1,a2,a3){if(typeof a0=="string")a0=toElem(a0);var a4=0;for(var a5=a0;a5;a5=a5.offsetParent){a4+=a5.offsetLeft;if(a3)a4-=a5.scrollLeft;if(!IsGecko()&&!f376())a4+=a5.clientLeft;}if(a1)a4-=GetElemLeft(a1,null,a2,a3);return a4;}
function f282(a16){if(!f376())return a16.offsetHeight;if(a16.cells[0]){var a17=a16.nextSibling;if(a17==null){var a18=a16.parentNode;var a19=GetElemTop(a18)+GetElemHeight(a18);}else var a19=GetElemTop(a17.cells[0]);return a19-f285(a16);}return 0;}
function f285(a16){if(!f376())return GetElemTop(a16);if(a16.cells[0])return GetElemTop(a16.cells[0]);return 0;}
function f376(){BrowserSniff();return f640;}
function IsGecko(){BrowserSniff();return _isGecko;}
var bsniffed=false;function BrowserSniff(){if(bsniffed)return;var a16=navigator.userAgent.toLowerCase();f640=(a16.indexOf("safari")!=-1);_isGecko=(a16.indexOf('gecko')!=-1)&&!f640;_isMac=(a16.indexOf("mac")!=-1)||f640;_isIE=((a16.indexOf("msie")!=-1)&&(a16.indexOf("opera")==-1));if(_isIE){var a17=a16.indexOf("msie");var a18=a16.indexOf(";",a17);if(a18!=-1&&a17!=-1){a17=a17+4;_IEversion=Number(a16.substr(a17,a18-a17).Trim());}}bsniffed=true;}
var _isGecko;var _isIE;var _isMac;var f640;var _IEversion;

/**********************************************************
*
*         Copyright 1999-2006 Intuit Inc.
*
**********************************************************/


function Scroller(a0,a1,a2,a3,a4,a5,a6)
{
this.table=toElem(a0);
this.container=toElem(a1);
this.lastX=0;
this.lastY=0;
this.insetLeft=0;
this.insetTop=0;
this.hasInsets=(a2?true:false);
this.frozenCol=(typeof a3=="undefined"?1:a3);
this.numFrozenCols=(typeof a4=="undefined"?1:a4);
this.frozenRow=(typeof a5=="undefined"?0:a5);
this.numFrozenRows=(typeof a6=="undefined"?1:a6);
if(this.table&&this.hasInsets)this.AdjustInsets();
}
new Scroller("","");

Scroller.prototype.AdjustFrozenCol=function(a0) 
{
if(IsGecko())return;
var a1=(this.container?this.container.scrollLeft:DocLeft());
if(a1!=this.lastX||a0){var a2=Max(a1-this.insetLeft,0);
this.lastX=a1;
if(this.table){var a3=this.table.rows.length;
for(var a4=0;a4<a3;++a4) {
    for(var a5=this.frozenCol;a5<this.numFrozenCols+this.frozenCol;++a5){if(this.table.rows[a4].cells[a5]){var a6=this.table.rows[a4].cells[a5];
a6.style.left=a2;
if(a6.colSpan>1)a5+=a6.colSpan;
}}}}}}

Scroller.prototype.AdjustFrozenRow=function(a0)
{if(IsGecko())return;
var a1=(this.container?this.container.scrollTop:DocTop());
if(a1!=this.lastY||a0){var a2=Max(a1-this.insetTop,0);
this.lastY=a1;
if(this.table&&this.table.rows.length>0){for(var a3=this.frozenRow;
a3<this.numFrozenRows;
++a3){var a4=this.table.rows[a3];
var a5=a4.cells.length;
for(var a6=0;
a6<a5;
++a6){a4.cells[a6].style.top=a2;
}}}}}

Scroller.prototype.AdjustInsets=function()
{if(!this.hasInsets)return false;
var a0=this.insetTop;
var a1=this.insetLeft;
if(this.table){var a2=GetBox(this.table);
this.insetTop=a2.top+1;
if(this.table.rows.length>0&&this.table.rows[0].cells.length>0){a2=GetBox(this.table.rows[0].cells[this.frozenCol]);
if(a2){this.insetLeft=a2.left;
}}}var a3=(this.insetTop!=a0||this.insetLeft!=a1);
var a4=a3;
this.AdjustFrozenCol(a4);
this.AdjustFrozenRow(a4);
return a3;
}


	var kScroller;

    function ScrollProc (ev)
        {
        if (kScroller)		// sometimes gets called before LoadProc (something to do with the back button)
            {
            kScroller.AdjustFrozenCol();
            kScroller.AdjustFrozenRow();
            }
        }

    function ResizeProc ()
        {
        if (kScroller)	
            kScroller.AdjustInsets();
        }


