function findFirst(n,_2,_3){
if(n==null){
return null;
}
if(_3==null){
_3=new RegExp("^"+_2+"$","i");
}
if(n.nodeType==1&&n.nodeName.match(_3)!=null){
return n;
}
var _4=findFirst(n.firstChild,_2,_3);
if(_4){
return _4;
}
return findFirst(n.nextSibling,_2,_3);
}
function findUp(n,_6,_7){
var _7=new RegExp("^"+_6+"$","i");
while(n!=null&&!(n.nodeType==1&&n.nodeName.match(_7)!=null)){
n=n.parentNode;
}
return n;
}
function getElementsByProperty(el,_9,_a){
if(!_a){
_a=new Object();
}
if(el==null){
return null;
}
if(el[_9]){
if(_a[el[_9]]){
if(_a[el[_9]].set==null){
_a[el[_9]].set=new Array(_a[el[_9]],el);
}else{
_a[el[_9]].set.push(el);
}
}else{
_a[el[_9]]=el;
}
}
getElementsByProperty(el.firstChild,_9,_a);
getElementsByProperty(el.nextSibling,_9,_a);
return _a;
}
function getElementsWithProperty(el,_c,_d){
if(!_d){
_d=new Array();
}
if(el==null){
return;
}
if(el[_c]!=null){
_d.push(el);
}
getElementsWithProperty(el.firstChild,_c,_d);
getElementsWithProperty(el.nextSibling,_c,_d);
return _d;
}
function getElementsWithTagName(el,_f,_10,_11){
if(!_10){
_10=new Array();
}
if(el==null){
return _10;
}
if(_11==null){
_11=new RegExp("^"+_f+"$","i");
}
if(el.tagName&&el.tagName.match(_11)!=null){
_10.push(el);
}
for(var i=0;i<el.childNodes.length;i++){
getElementsWithTagName(el.childNodes[i],_f,_10,_11);
}
return _10;
}
function cloneTree(ns,_14,to){
var n=_14.firstChild;
while(n){
if(n.nodeName.match(/#text/i)){
to.appendChild(document.createTextNode(n.nodeValue));
}else{
to.appendChild(document.createElementNS(ns,n.nodeName));
cloneTree(ns,n,to.lastChild);
}
n=n.nextSibling;
}
}
function findPosY(a,_18){
var _19=0;
if(a.offsetParent){
while(a){
_19+=a.offsetTop;
if(!_18){
_19-=a.scrollTop;
}
a=a.offsetParent;
}
}else{
if(a.y){
_19+=a.y;
}
}
return _19;
}
function findPosX(a,_1b){
var _1c=0;
if(a.offsetParent){
while(a){
_1c+=a.offsetLeft;
if(!_1b){
_1c-=a.scrollLeft;
}
a=a.offsetParent;
}
}else{
if(a.x){
_1c+=a.x;
}
}
return _1c;
}
function enumerablePropertyCount(obj){
if(obj==null){
return 0;
}
var c=0;
for(var i in obj){
c++;
}
return c;
}
function extend(_20,_21){
for(var i in _21){
_20[i]=_21[i];
}
_20.base=_21;
}
function wrap(s){
if(s.length>80){
return s.substr(0,80)+"\n"+wrap(s.substr(80));
}
return (s);
}
function JSONtoDOM(n,a,d,ce){
this.doc=d||n.ownerDocument;
this.createElement=ce||function(n){
return this.doc.createElement(n);
};
if(typeof (a)!="object"||!a.length){
a=[a];
}
var nd=n.lastChild;
this.doArray(n,a);
this.dom=(nd!=null?nd.nextSibling:n.firstChild);
}
JSONtoDOM.prototype.doArray=function(n,a){
for(var i=0;a.length>i;i++){
if(typeof (a[i])=="object"){
if(a[i].length!=null){
this.doArray(n,a[i]);
}else{
this.doObject(n,null,a[i]);
}
}else{
n.appendChild(this.doc.createTextNode(decodeURI(a[i])));
}
}
};
JSONtoDOM.prototype.doObject=function(n,_2e,o){
for(var i in o){
if(i==0){
if(typeof (o[i])=="string"){
n.appendChild(this.doc.createTextNode(decodeURI(o[i])));
}else{
this.doArray(n,o[i]);
}
}else{
if(typeof (o[i])=="object"){
if(i=="eventList"){
for(var e in o[i]){
if(window[o[i][e]]!=null){
addEvent(n,e,window[o[i][e]]);
}
}
}else{
var n0=this.createElement(i,this.doc);
if(o[i]!=null){
if(o[i].length!=null){
this.doArray(n0,o[i]);
}else{
this.doObject(n0,i,o[i]);
}
}
n.appendChild(n0);
}
}else{
if(_2e!=null){
if(n.getAttribute(i)!=null){
n.setAttribute(i,o[i]);
}else{
var a=i.split(".");
if(a.length==1){
n[i]=o[i];
}else{
try{
var a0=a.pop();
var n0=n;
while(n0&&n0[a[0]]){
n0=n0[a[0]];
a.shift();
}
while(a.length){
n0[a[0]]={};
n0=n0[a[0]];
a.shift();
}
n0[a0]=o[i];
}
catch(e){
alert(e);
}
}
}
}else{
var n0=this.createElement(i,this.doc);
n0.appendChild(this.doc.createTextNode(decodeURI(o[i])));
n.appendChild(n0);
}
}
}
}
};
function doesInputPaddingExtendSize(){
if(window.paddingExtends==null){
var _35=document.createElementNS("http://www.w3.org/1999/xhtml","input");
_35.type="text";
_35.style.width="10px";
_35.style.padding="2px";
_35.style.visibility="hidden";
var _36=findFirst(document.firstChild,"body");
_36.appendChild(_35);
window.paddingExtends=(_35.offsetWidth!=10);
_36.removeChild(_35);
}
return window.paddingExtends;
}
function escapeQuotes(s){
if(!s){
return s;
}
var s0=s.replace(/\"/g,"\\\"");
return s0.replace(/\n/g,"\\n");
}
Array.prototype.search=function(v){
for(var i=this.length-1;i>=0;i--){
if(this[i]===v){
return true;
}
}
return false;
};
Array.prototype.rangeCompress=function(){
this.sort(function(a,b){
return (a-b);
}).push(0);
var c=this.length;
var r=-1;
var rc=-1;
var out="";
for(var i=0;i<c;i++){
if(this[i]!=null){
if(this[i]-1==r){
r++;
rc++;
}else{
if(rc>0){
out+=",["+(r-rc)+","+rc+"]";
}else{
if(rc==0&&r){
out+=","+r;
}
}
r=this[i];
rc=0;
}
}
}
this.pop();
return "["+out.substr(1)+"]";
};
Array.prototype.rangeUncompress=function(){
var a=new Array();
var r=0;
var c=this.length;
for(var r=0;r<c;r++){
if(typeof (this[r])=="object"){
for(var i=0;i<=this[r][1];i++){
a.push(this[r][0]+i);
}
}else{
a.push(this[r]);
}
}
return a;
};
if(!document.createElementNS){
document.createElementNS=function(NS,_47){
return document.createElement(_47);
};
}
if(!document.getElementsByTagNameNS){
document.getElementsByTagNameNS=function(NS,_49){
return document.getElementsByTagName(_49);
};
}
function addEvent(e,_4b,f,_4d){
if(e.addEventListener){
e.addEventListener(_4b,f,false,_4d);
}else{
if(e.attachEvent){
e.attachEvent("on"+_4b,f);
}else{
if(e.document&&e.document.addEventListener){
e.document.addEventListener(_4b,f,false);
}else{
e["on"+_4b]=f;
}
}
}
}
function removeEvent(e,_4f,f){
if(e.removeEventListener){
e.removeEventListener(_4f,f,false);
}else{
if(e.detachEvent){
e.detachEvent("on"+_4f,f);
}else{
if(e.document&&e.document.removeEventListener){
e.document.removeEventListener(_4f,f,false);
}else{
e["on"+_4f]=null;
}
}
}
}
function getXMLDoc(txt){
var doc;
if(document.implementation.createDocument){
var _53=new DOMParser();
doc=_53.parseFromString(txt,"text/xml");
}else{
if(window.ActiveXObject){
doc=new ActiveXObject("Microsoft.XMLDOM");
doc.async=false;
doc.loadXML(txt);
}
}
return doc;
}
if(JSON==null){
var JSON={};
}
if(JSON.parse==null){
JSON.parse=function(x){
return eval("("+x+")");
};
}

var Animator=new Object();
Animator.work=new Array();
Animator.next=0;
Animator.nextID=1;
Animator.add=function(_1,_2,_3){
var a=new Object();
a.interval=_1;
a.obj=(_2==null?window:_2);
a.method=_3;
a.args=new Array();
for(var i=3;i<arguments.length;i++){
a.args.push(arguments[i]);
}
a.nextAnimate=_1;
a.aID=++Animator.nextID;
Animator.work.push(a);
Animator.next=10000000;
for(var i=0;i<Animator.work.length;i++){
if(Animator.work[i].nextAnimate<Animator.next){
Animator.next=Animator.work[i].nextAnimate;
}
}
if(Animator.next==0){
Animator.next=10;
}
if(Animator.timer){
clearTimeout(Animator.timer);
}
Animator.timer=setTimeout("Animator.intervalCheck()",Animator.next);
return a.aID;
};
Animator.remove=function(_6){
for(var i=0;i<Animator.work.length;i++){
if(Animator.work[i].aID===_6){
if(Animator.work.length>1){
Animator.work[i]=Animator.work.pop();
}else{
Animator.work.pop();
}
}
}
};
Animator.removeObject=function(_8,_9){
for(var i=0;i<Animator.work.length;i++){
if(Animator.work[i].obj===_8&&(_9==null||Animator.work.method===_9)){
if(Animator.work.length>1){
Animator.work[i]=Animator.work.pop();
}else{
Animator.work.pop();
}
}
}
};
Animator.once=function(){
var a=new Array();
a.push(10);
for(var i=0;i<arguments.length;i++){
a.push(arguments[i]);
}
Animator.add.apply(window,a);
};
Animator.intervalCheck=function(){
var i=0;
while(i<Animator.work.length){
Animator.work[i].nextAnimate-=Animator.next;
if(Animator.work[i].nextAnimate<=0){
var ca=false;
try{
ca=Animator.work[i].method.apply(Animator.work[i].obj,Animator.work[i].args);
}
catch(err){
ca=false;
}
if(ca&&Animator.work[i].interval>0){
Animator.work[i].nextAnimate+=(typeof (ca)=="number"?ca:Animator.work[i].interval);
}else{
if(i>0){
Animator.work[i]=Animator.work[0];
}
Animator.work.shift();
i--;
}
}
i++;
}
if(Animator.timer){
clearTimeout(Animator.timer);
}
delete Animator.timer;
if(Animator.work.length>0){
Animator.next=10000000;
for(var i=0;i<Animator.work.length;i++){
if(Animator.work[i].nextAnimate<Animator.next){
Animator.next=Animator.work[i].nextAnimate;
}
}
if(Animator.next==0){
Animator.next=10;
}
Animator.timer=setTimeout("Animator.intervalCheck()",Animator.next);
}
};

var net=new Object();
net.READY_STATE_UNINITIALIZED=0;
net.READY_STATE_LOADING=1;
net.READY_STATE_LOADED=2;
net.READY_STATE_INTERACTIVE=3;
net.READY_STATE_COMPLETE=4;
net.active=new Array();
net.ContentLoader=function(_1){
this.req=null;
for(p in _1){
this[p]=_1[p];
}
this.onerror=this.onerror||this.defaultError;
this.ontimeout=this.ontimeout||this.defaultTimeout;
this.ttl=this.ttl||4;
this.complete=false;
net.active.push(this);
if(!net.ttlTimer){
net.ttlTimer=window.setTimeout(net.ttlCheck,5000);
}
this.loadXMLDoc();
};
net.ContentLoader.prototype.loadXMLDoc=function(){
this.method=this.method||"POST";
if(!this.contentType&&this.method=="POST"){
this.contentType="application/x-www-form-urlencoded";
}
if(window.XMLHttpRequest){
this.req=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
this.req=new ActiveXObject("Microsoft.XMLHTTP");
}
}
if(this.req){
try{
this.indicator=net.getFreeIndicator();
var _2=this;
this.req.onreadystatechange=function(){
net.ContentLoader.onReadyState.call(_2);
};
if(this.indicator){
this.indicator.start(this.ttl*5);
}
this.req.open(this.method,this.url,true);
if(this.contentType){
this.req.setRequestHeader("Content-Type",this.contentType);
}
this.req.send(this.params);
}
catch(err){
this.onerror.call(this);
}
}
};
net.ContentLoader.onReadyState=function(){
var _3=this.req;
var _4=_3.readyState;
if(_4==net.READY_STATE_COMPLETE){
var _5=-1;
try{
_5=_3.status;
}
catch(err){
_5=504;
}
this.complete=true;
if(_5==200||_5==0){
if(this.indicator){
this.indicator.reset();
}
this.onload.call(this);
}else{
if(_5!=504){
if(this.indicator){
this.indicator.error();
}
this.onerror.call(this);
}else{
if(this.indicator){
this.indicator.warning();
}
}
}
}
};
net.ContentLoader.prototype.setTTL=function(s){
this.ttl=(s+4)/5;
};
net.ContentLoader.prototype.setOnTimeout=function(f){
this.ontimeout=f;
};
net.ttlCheck=function(){
var i=0;
while(i<net.active.length){
var _9=net.active[i];
if((--_9.ttl)<=0){
if(!_9.complete){
_9.req.abort();
if(_9.indicator){
_9.indicator.error();
}
_9.ontimeout.call(_9);
}
if(i>0){
net.active[i]=net.active[0];
}
net.active.shift();
i--;
}
i++;
}
if(net.active.length>0){
net.ttlTimer=window.setTimeout(net.ttlCheck,5000);
}else{
delete net.ttlTimer;
}
};
net.ContentLoader.prototype.defaultTimeout=function(){
alert("Request timed out; data source unavailable?");
};
net.ContentLoader.prototype.defaultError=function(){
alert("error fetching data!"+"\n\nreadyState:"+this.req.readyState+"\nstatus: "+this.req.status+"\nheaders: "+this.req.getAllResponseHeaders()+"\nURL: "+this.url);
};
net.configIndicators=function(_a,_b){
if(net.Indicator){
net.indicator=new Array();
for(var i=0;i<_b;i++){
net.indicator[i]=new net.Indicator(i*9+2);
_a.appendChild(net.indicator[i].getElement());
}
}
};
net.getFreeIndicator=function(){
if(!net.indicator){
return null;
}
for(var i=0;i<net.indicator.length;i++){
if(!net.indicator[i].running){
return net.indicator[i];
}
}
return null;
};

function flipRSSDiv(_1){
_1=_1||window.event;
var _2=_1.target||_1.srcElement;
var d=_2.nextSibling;
while(d&&d.nodeName!="DIV"){
d=d.nextSibling;
}
if(d){
d.style.display=(d.style.display=="block"?"none":"block");
if(_2.nodeName=="IMG"){
_2.src=(d.style.display=="block"?"/images/showless.png":"/images/showmore.png");
}
}else{
alert("No d; img is "+_2.nodeName);
}
return false;
}
function flipFieldset(_4,_5){
if(!_4||!_4.firstChild){
_4=_4||window.event;
}
var s=_4.target||_4.srcElement;
if(s===undefined){
s=this;
}
var f=findUp(s,"FIELDSET");
if(f){
var d=f.firstChild;
while(d&&d.nodeName!="DIV"){
d=d.nextSibling;
}
if(d){
if(_5===undefined){
_5=(d.style.display=="none");
}
if(_5){
d.style.display="block";
s.replaceChild(document.createTextNode("(Hide)"),s.firstChild);
}else{
d.style.display="none";
s.replaceChild(document.createTextNode("(Show)"),s.firstChild);
}
}
}
return false;
}

function PortalElement(_1,el,_3){
this.session=_1;
this.element=el;
this.interval=_3||600;
this.reset();
}
PortalElement.prototype.newContent=function(_4,_5,_6){
if(_6=="N"){
this.authId=null;
this.rssId=_4||"nil";
this.src=_5||"rss/";
this.go();
}else{
this.authId=_4;
this.authSrc=_5||"rssAuth.php";
if(this.session&&this.session.sessionCode){
this.go();
}
}
};
PortalElement.prototype.reset=function(){
this.src=this.element.getAttribute("src")||"rss/";
this.rssId=this.element.getAttribute("rssId")||"nil";
this.title=this.element.getAttribute("title");
if(this.title!=null){
this.setTitle(this.title);
}
this.authId=null;
this.authSrc=null;
this.go();
};
PortalElement.prototype.setTitle=function(_7){
var d=this.element.parentNode;
d=findFirst(d.firstChild,"div");
if(d){
d=findFirst(d.firstChild,"span");
}
if(d){
while(d.lastChild){
d.removeChild(d.lastChild);
}
d.appendChild(document.createTextNode(_7||""));
}
};
PortalElement.prototype.go=function(){
if(this.aID){
Animator.remove(this.aID);
}
this.aID=Animator.add(10,this,this.refresh);
};
PortalElement.prototype.refresh=function(){
if(this.authId!=null&&this.session.sessionCode){
this.session.request({url:this.authSrc,data:"rssId=\""+this.authId+"\"",pe:this,callback:this.sreceive,ttl:15,ontimeout:this.error,onerror:this.error});
}else{
if(this.rssId!="nil"){
new net.ContentLoader({url:this.src+"rssId="+this.rssId,method:"GET",ttl:15,pe:this,onload:this.receive,ontimeout:this.error,onerror:this.error});
}else{
while(this.element.firstChild!=null){
this.element.removeChild(this.element.firstChild);
}
}
}
return this.interval*1000;
};
PortalElement.prototype.sreceive=function(m0,_a){
try{
var o=JSON.parse(_a||"\"x\"");
if(typeof (o)=="string"){
if(window.menu&&window.menu.signOff){
window.menu.signOff(true);
}
}else{
if(typeof (o.title)=="string"&&this.pe.title!=null){
this.pe.setTitle(o.title);
}
if(typeof (o.content)=="object"){
while(this.pe.element.firstChild!=null){
this.pe.element.removeChild(this.pe.element.firstChild);
}
new JSONtoDOM(this.pe.element,o.content,null,this.pe.element.createElement);
}
}
}
catch(err){
alert("Error parsing response: "+err+"\n"+_a);
}
};
PortalElement.prototype.receive=function(){
var _c=this.req.responseText;
try{
var o=JSON.parse(_c||"\"x\"");
if(typeof (o)=="string"){
if(o.length>1){
alert(_c);
}
}else{
if(typeof (o.title)=="string"&&this.pe.title!=null){
this.pe.setTitle(o.title);
}
if(typeof (o.content)=="object"){
while(this.pe.element.firstChild!=null){
this.pe.element.removeChild(this.pe.element.firstChild);
}
new JSONtoDOM(this.pe.element,o.content,null,this.pe.element.createElement);
}
}
}
catch(err){
alert("Error parsing response: "+err+"\n"+_c);
}
};
PortalElement.prototype.error=function(){
alert("error fetching data!"+"\n\nreadyState:"+this.req.readyState+"\nstatus: "+this.req.status+"\nheaders: "+this.req.getAllResponseHeaders()+"\nURL: "+this.url);
};
PortalElement.printMap={v:"div",row:"div",trow:"div",l:"div",r:"div",c:"div"};
PortalElement.prototype.createElement=function(_e,d){
if(!_e.match){
alert("bad parse at "+_e+" which is "+typeof (_e));
return;
}
var n=_e.match(/([A-Za-z]+)([0-9\.]+)/);
var n0;
if(n!=null){
if(this.printMap[n[1]]){
n0=d.createElement(this.printMap[n[1]]);
n0.className=n[1];
}else{
n0=d.createElement(n[1]);
}
switch(n[1]){
case "v":
n0.style.height=(Math.floor(parseFloat(n[2])*10-4))+"px";
break;
default:
n0.style.width=(Math.floor(parseFloat(n[2])*10-4))+"px";
}
return n0;
}
if(this.printMap[_e]){
n0=d.createElement(this.printMap[_e]);
n0.className=_e;
return n0;
}
return d.createElement(_e);
};


