function Timer(_1,_2,_3){
this.name=_1;
if(typeof Timer.Timers!="object"){
Timer.Timers={};
}
Timer.Timers[_1]=this;
this.delay=_2;
this.callback=_3;
}
Timer.getTimer=function(_4){
if(typeof Timer.Timers=="object"){
return Timer.Timers[_4];
}else{
return false;
}
};
Timer.prototype.start=function(){
if(this.handle){
this.cancel();
}
this.handle=window.setTimeout(this.callback,this.delay);
};
Timer.prototype.cancel=function(){
this.handle=window.clearTimeout(this.handle);
};
var DHTML=(document.getElementById||document.all||document.layers);
var num=0;
function _(_5){
return encodeURIComponent(_5);
}
function linkTo(_6,_7){
if(!objExist(_7)){
alert("Unable to link to ("+_7+").");
return false;
}
divDsp(_7,"inline");
var _8=new hollerBack("GET","/ajax.php"+_6,"",_7);
return _8;
}
function linkToRaw(_9,_a){
if(!objExist(_a)){
alert("Unable to link to ("+_a+").");
return false;
}
divDsp(_a,"inline");
var _b=new hollerBack("GET",_9,"",_a);
return _b;
}
function removeEntity(_c,_d,_e){
if(!objExist(_d)){
alert("Unable to remove ("+_d+").");
return false;
}
var _f=confirm(_e);
if(_f){
var _10=new holler("POST","/ajax.php",_c,divDsp(_d));
}
return _f;
}
function submitTo(_11,_12,div,url){
if(!objExist(div)){
alert("Unable to submit this form "+div);
return false;
}
var _15=new hollerAtMe("POST",_11,"/ajax.php?layout=blank&action="+_12+"&"+url,div);
return _15;
}
function IsNumeric(_16){
var _17="0123456789.";
var _18=true;
var _19;
for(i=0;i<_16.length&&_18==true;i++){
_19=_16.charAt(i);
if(_17.indexOf(_19)==-1){
_18=false;
}
}
return _18;
}
function redirect(url){
window.location.href=url;
}
function getObj(_1b){
if(typeof (_1b)=="object"){
this.obj=_1b;
}else{
if(document.getElementById){
this.obj=document.getElementById(_1b);
}else{
if(document.all){
this.obj=document.all[_1b];
}else{
if(document.layers){
this.obj=document.layers[_1b];
}
}
}
}
return this.obj;
}
function objExist(_1c){
if(typeof (_1c)=="object"){
return true;
}else{
if(document.getElementById){
this.obj=document.getElementById(_1c);
}else{
if(document.all){
this.obj=document.all[_1c];
}else{
if(document.layers){
this.obj=document.layers[_1c];
}
}
}
if(this.obj){
return true;
}else{
return false;
}
}
}
function divDsp(el,_1e){
if(!DHTML){
return;
}
if(typeof (el)=="object"){
x=el;
}else{
var x=new getObj(el);
}
if(x&&x.style){
x.style.display=(_1e)?(_1e=="inline"?"":_1e):(x.style.display=="inline"||x.style.display=="")?"none":"";
}
}
function popup(_20,_21,_22,_23){
if(!_23){
_23="none";
}
var _24="height="+_22+",width="+_21+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,dependent=1,top=100,left=100";
win=window.open(_20,_23,_24);
if(win){
win.focus();
}
return false;
}
function selectAll(_25){
for(var i=0;i<_25.options.length;i++){
_25.options[i].selected=true;
}
return;
}
function unSelectAll(_27){
for(var i=0;i<_27.options.length;i++){
_27.options[i].selected=false;
}
return;
}
function selectAllChecked(_29){
for(var i=0;i<_29.length;i++){
_29[i].checked=true;
}
return;
}
function unSelectAllChecked(_2b){
for(var i=0;i<_2b.length;i++){
_2b[i].checked=false;
}
return;
}
function numOnly(el){
var tmp=el.value.replace(/[^0-9.]/g,"");
var _2f=numOnly.arguments;
if(_2f.length==2){
if(tmp.length>=_2f[1]){
el.form[(getIndex(el)+1)%el.form.length].focus();
}
}
return el.value=tmp;
}
function getIndex(_30){
var _31=-1,i=0,_33=false;
while(i<_30.form.length&&_31==-1){
if(_30.form[i]==_30){
_31=i;
}else{
i++;
}
}
return _31;
}
function checkAll(_34){
for(var i=0;i<_34.length;i++){
_34[i].checked=true;
}
return;
}
function unCheckAll(_36){
for(var i=0;i<_36.length;i++){
_36[i].checked=false;
}
return;
}
function holler(_38,url,_3a,_3b){
var _38=_38.toUpperCase();
try{
if(window.XMLHttpRequest){
var _3c=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
try{
var _3c=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try{
var _3c=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
}
}
}
}
if(_38=="POST"){
_3c.open(_38,url,true);
_3c.setRequestHeader("Content-type","application/x-www-form-urlencoded");
_3c.setRequestHeader("Content-length",_3a.length);
_3c.setRequestHeader("Connection","close");
_3c.send(_3a);
}else{
_3c.open(_38,url+"&"+_3a,true);
_3c.send(null);
}
}
catch(e){
alert("Error occurred while trying to process your request");
return;
}
_3c.onreadystatechange=function(){
if(_3c.readyState==4||_3c.readyState=="complete"){
if(_3c.status==200){
if(typeof _3b=="function"){
_3b(_3c);
}else{
eval(_3b);
}
}else{
alert("An error occurred while trying to return your request. \nError "+_3c.status+": "+_3c.statusText);
return;
}
}
};
}
function hollerBack(_3d,url,_3f,_40,_41){
if(typeof console!="undefined"){
if(console&&console.log){
console.log("hollerBack",_3d,url,_3f,_40,_41);
}
}
var _42=null;
var _3d=_3d.toUpperCase();
var _43=this;
try{
if(window.XMLHttpRequest){
var _42=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
try{
var _42=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try{
var _42=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){
}
}
}
}
if(_3d=="POST"){
_42.open(_3d,url,true);
_42.setRequestHeader("Content-type","application/x-www-form-urlencoded");
_42.setRequestHeader("Content-length",_3f.length);
_42.setRequestHeader("Connection","close");
_42.send(_3f);
}else{
_42.open(_3d,url+"&"+_3f,true);
_42.setRequestHeader("Pragma","no-cache");
_42.send(null);
}
}
catch(e){
alert("Error occurred while trying to process your request");
return;
}
if(objExist(_40)){
var x=new getObj(_40);
}else{
if(typeof _40!="string"){
var x=_40;
}
}
if(_41){
x.innerHTML="<div>"+_41+"</div>";
}else{
if(x.clientHeight&&x.clientHeight<220){
x.innerHTML="<div><img src=\"/images/icon.indicator.gif\" alt=\"\" width=\"16\" height=\"16\" border=\"0\" /></div>";
}else{
x.innerHTML="<div><img src=\"/images/loading.gif\" alt=\"\" width=\"220\" height=\"19\" border=\"0\" /></div>";
}
}
_42.onreadystatechange=function(){
if(_42.readyState==4||_42.readyState=="complete"){
try{
x.innerHTML=_42.responseText;
if(_43&&(typeof _43.onload=="function")){
_43.onload(_42);
}
}
catch(e){
alert("An error occurred while trying to return your request. \nError "+e.description);
}
if(_42.status!=200){
alert("An error occurred while trying to return your request. \nError "+_42.status+": "+_42.statusText);
return;
}
}else{
return;
}
};
}
function hollerAtMe(_45,_46,url,_48){
if(typeof console!="undefined"){
if(console&&console.log){
console.log("hollerAtMe",_45,_46,url,_48);
}
}
this.uniqueId=new Date().getTime();
this.frameName="frame_"+this.uniqueId;
var _49=this;
try{
var _4a=document.createElement("DIV");
_4a.style.display="none";
document.body.appendChild(_4a);
_4a.innerHTML="<iframe name=\""+this.frameName+"\" id=\""+this.frameName+"\" src=\"about:blank\" onload=\"loadFrame(this,'"+_48+"')\"></iframe>";
}
catch(e){
alert("Error occurred while trying to create frame");
return;
}
var _4b=function(){
try{
var _4c=_46.getAttribute("action");
var _4d=_46.getAttribute("method");
var _4e=_46.getAttribute("target");
_46.setAttribute("action",url);
_46.setAttribute("method",_45);
_46.setAttribute("target",_49.frameName);
_46.submit();
_46.setAttribute("action",_4c);
_46.setAttribute("method",_4d);
_46.setAttribute("target",_4e);
}
catch(e){
alert("Error occurred while trying to submit form: "+e.toJSONString());
window.setTimeout(_4b,250);
return;
}
};
_4b();
if(objExist(_48)){
var x=new getObj(_48);
x.innerHTML="<div><img src=\"/images/loading.gif\" alt=\"\" width=\"220\" height=\"19\" border=\"0\" /></div>";
}
}
function loadFrame(_50,_51){
if(typeof console!="undefined"){
if(console&&console.log){
console.log("loadFrame",_50,_51);
}
}
try{
frameName=_50.id;
var x=new getObj(_51);
x.innerHTML="<div><img src=\"/images/loading.gif\" alt=\"\" width=\"220\" height=\"19\" border=\"0\" /></div>";
x.innerHTML=window.frames[frameName].document.body.innerHTML;
}
catch(e){
alert("Error occurred while trying to load data from frame");
return;
}
}
function maxlength(obj,len){
if(obj.value.length>=len){
obj.value=obj.value.substr(0,len);
}
}
function URLEncode(_55){
var _56="0123456789"+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"-_.!~*'()";
var HEX="0123456789ABCDEF";
var _58="";
for(var i=0;i<_55.length;i++){
var ch=_55.charAt(i);
if(ch==" "){
_58+="+";
}else{
if(_56.indexOf(ch)!=-1){
_58+=ch;
}else{
var _5b=ch.charCodeAt(0);
if(_5b>255){
alert("Unicode Character '"+ch+"' cannot be encoded using standard URL encoding.\n"+"(URL encoding only supports 8-bit characters.)\n"+"A space (+) will be substituted.");
_58+="+";
}else{
_58+="%";
_58+=HEX.charAt((_5b>>4)&15);
_58+=HEX.charAt(_5b&15);
}
}
}
}
return _58;
}
function URLDecode(_5c){
var _5d="0123456789ABCDEFabcdef";
var _5e="";
var i=0;
while(i<_5c.length){
var ch=_5c.charAt(i);
if(ch=="+"){
_5e+=" ";
i++;
}else{
if(ch=="%"){
if(i<(_5c.length-2)&&_5d.indexOf(_5c.charAt(i+1))!=-1&&_5d.indexOf(_5c.charAt(i+2))!=-1){
_5e+=unescape(_5c.substr(i,3));
i+=3;
}else{
alert("Bad escape combination near ..."+_5c.substr(i));
_5e+="%[ERROR]";
i++;
}
}else{
_5e+=ch;
i++;
}
}
}
return _5e;
}
Array.prototype.toJSONString=function(){
var a=["["],b,i,l=this.length,v;
function p(s){
if(b){
a.push(",");
}
a.push(s);
b=true;
}
for(i=0;i<l;i+=1){
v=this[i];
switch(typeof v){
case "undefined":
case "function":
case "unknown":
break;
case "object":
if(v){
if(typeof v.toJSONString==="function"){
p(v.toJSONString());
}
}else{
p("null");
}
break;
default:
p(v.toJSONString());
}
}
a.push("]");
return a.join("");
};
Boolean.prototype.toJSONString=function(){
return String(this);
};
Date.prototype.toJSONString=function(){
function f(n){
return n<10?"0"+n:n;
}
return "\""+this.getFullYear()+"-"+f(this.getMonth()+1)+"-"+f(this.getDate())+"T"+f(this.getHours())+":"+f(this.getMinutes())+":"+f(this.getSeconds())+"\"";
};
Number.prototype.toJSONString=function(){
return isFinite(this)?String(this):"null";
};
Object.prototype.toJSONString=function(){
var a=["{"],b,i,v;
function p(s){
if(b){
a.push(",");
}
a.push(i.toJSONString(),":",s);
b=true;
}
for(i in this){
if(this.hasOwnProperty(i)){
v=this[i];
switch(typeof v){
case "undefined":
case "function":
case "unknown":
break;
case "object":
if(v){
if(typeof v.toJSONString==="function"){
p(v.toJSONString());
}
}else{
p("null");
}
break;
default:
p(v.toJSONString());
}
}
}
a.push("}");
return a.join("");
};
(function(s){
var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\"":"\\\"","\\":"\\\\"};
s.parseJSON=function(_6f){
try{
if(/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(this)){
var j=eval("("+this+")");
if(typeof _6f==="function"){
function walk(v){
if(v&&typeof v==="object"){
for(var i in v){
if(v.hasOwnProperty(i)){
v[i]=walk(v[i]);
}
}
}
return _6f(v);
}
return walk(j);
}
return j;
}
}
catch(e){
}
throw new SyntaxError("parseJSON");
};
s.toJSONString=function(){
if(/["\\\x00-\x1f]/.test(this)){
return "\""+this.replace(/([\x00-\x1f\\"])/g,function(a,b){
var c=m[b];
if(c){
return c;
}
c=b.charCodeAt();
return "\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);
})+"\"";
}
return "\""+this+"\"";
};
})(String.prototype);
var unsizeBlocks=function(){
var _76=document.getElementsByTagName("div");
for(var i=0;i<_76.length;i++){
if(_76[i].className.match(/width-onethird|width-half|width-twothirds/)){
_76[i].style.height="auto";
}
}
};
var resizeBlocks=function(){
var _78=document.getElementsByTagName("div");
var _79={};
var _7a=[];
var _7b=0;
var _7c=0;
var _7d=function(y){
for(var i=0;i<_7a.length;i++){
if(y==_7a[i]){
return true;
}
}
return false;
};
var _80=function(_81){
var _82=0;
for(var i=0;i<_81.length;i++){
if(_81[i].clientHeight>_82){
_82=_81[i].clientHeight;
}
}
return _82+"px";
};
for(var i=0;i<_78.length;i++){
if(_78[i].className.match(/width-onethird|width-half|width-twothirds/)){
if(typeof _79[_78[i].offsetTop]!=typeof []){
_79[_78[i].offsetTop]=[];
}
_79[_78[i].offsetTop].push(_78[i]);
if(_78[i].offsetTop>_7b){
_7c=_78[i].offsetTop;
_7b=_78[i].clientHeight+_78[i].offsetTop;
}
if(_78[i].clientHeight+_78[i].offsetTop>_7b){
_7b=_78[i].clientHeight+_78[i].offsetTop;
}
if((_78[i].offsetTop<_7b)&&(_78[i].offsetTop!=_7c)){
var _85=_7a.pop();
}
_7a.push(_78[i]);
}
}
for(var i in _79){
var _86=_80(_79[i]);
$A(_79[i]).each(function(x){
if(_7d(x)){
x.style.height=_86;
}
});
}
};
var showMenu;
(function(){
var _88;
var _89=false;
showMenu=function(sec,el){
if(!_89){
_89=$("SectionNav").getElementsByTagName("div");
}
var _8c=_89;
for(var i=0;i<_8c.length;i++){
divDsp(_8c[i],"none");
}
divDsp(_8c[sec],"inline");
if(el&&el.parentNode&&el.parentNode.parentNode){
$A(el.parentNode.parentNode.getElementsByTagName("a")).each(function(x){
x.className=x.className.replace(/selected/,"");
});
el.className+=" selected";
}
};
var _8f=function(){
if(typeof showMenu=="function"){
showMenu("section_group_"+_88,$("group_"+_88));
}
};
var _90=window.onload;
window.onload=function(){
if(_90){
_90();
}
$$(".selected").each(function(x){
if(x.id.match(/group_/)){
_88=x.id.replace(/[^\d]/g,"");
}
});
if($("group_"+_88)){
$("group_"+_88).className+=" highlighted";
}
if($("TopMenu")){
var _92=new Timer("menu_nav_revert",2000,_8f);
$("TopMenu").onmouseout=function(e){
_92.start();
};
$("TopMenu").onmouseover=function(e){
_92.cancel();
};
}
};
})();
function toggleFontSize(){
unsizeBlocks();
document.body.className=(document.body.className!="bigger"?"bigger":"");
resizeBlocks();
holler("post","/?action=toggle_body_font_size","");
}
var old_onload=window.onload;
window.onload=function(){
if(old_onload){
old_onload();
}
resizeBlocks();
if(!Tooltip.ready){
Tooltip.init();
}
};
var Effect={fade:function(){
return true;
},highlight:function(){
return true;
}};
var dw_event={add:function(obj,_96,fp,cap){
cap=cap||false;
if(obj.addEventListener){
obj.addEventListener(_96,fp,cap);
}else{
if(obj.attachEvent){
obj.attachEvent("on"+_96,fp);
}
}
},remove:function(obj,_9a,fp,cap){
cap=cap||false;
if(obj.removeEventListener){
obj.removeEventListener(_9a,fp,cap);
}else{
if(obj.detachEvent){
obj.detachEvent("on"+_9a,fp);
}
}
},DOMit:function(e){
e=e?e:window.event;
e.tgt=e.srcElement?e.srcElement:e.target;
if(!e.preventDefault){
e.preventDefault=function(){
return false;
};
}
if(!e.stopPropagation){
e.stopPropagation=function(){
if(window.event){
window.event.cancelBubble=true;
}
};
}
return e;
}};
viewport={getWinWidth:function(){
this.width=0;
if(window.innerWidth){
this.width=window.innerWidth-18;
}else{
if(document.documentElement&&document.documentElement.clientWidth){
this.width=document.documentElement.clientWidth;
}else{
if(document.body&&document.body.clientWidth){
this.width=document.body.clientWidth;
}
}
}
},getWinHeight:function(){
this.height=0;
if(window.innerHeight){
this.height=window.innerHeight-18;
}else{
if(document.documentElement&&document.documentElement.clientHeight){
this.height=document.documentElement.clientHeight;
}else{
if(document.body&&document.body.clientHeight){
this.height=document.body.clientHeight;
}
}
}
},getScrollX:function(){
this.scrollX=0;
if(typeof window.pageXOffset=="number"){
this.scrollX=window.pageXOffset;
}else{
if(document.documentElement&&document.documentElement.scrollLeft){
this.scrollX=document.documentElement.scrollLeft;
}else{
if(document.body&&document.body.scrollLeft){
this.scrollX=document.body.scrollLeft;
}else{
if(window.scrollX){
this.scrollX=window.scrollX;
}
}
}
}
},getScrollY:function(){
this.scrollY=0;
if(typeof window.pageYOffset=="number"){
this.scrollY=window.pageYOffset;
}else{
if(document.documentElement&&document.documentElement.scrollTop){
this.scrollY=document.documentElement.scrollTop;
}else{
if(document.body&&document.body.scrollTop){
this.scrollY=document.body.scrollTop;
}else{
if(window.scrollY){
this.scrollY=window.scrollY;
}
}
}
}
},getAll:function(){
this.getWinWidth();
this.getWinHeight();
this.getScrollX();
this.getScrollY();
}};
var Tooltip={followMouse:true,offX:8,offY:12,ready:false,t1:null,t2:null,tipID:"tipDiv",tip:null,init:function(){
if(document.createElement&&document.body&&typeof document.body.appendChild!="undefined"){
var el=document.createElement("DIV");
el.className="tooltip";
el.id=this.tipID;
document.body.appendChild(el);
this.ready=true;
}
},show:function(e,msg){
if(this.t1){
clearTimeout(this.t1);
}
if(this.t2){
clearTimeout(this.t2);
}
this.tip=document.getElementById(this.tipID);
if(this.followMouse){
dw_event.add(document,"mousemove",this.trackMouse,true);
}
this.writeTip("");
this.writeTip(msg);
viewport.getAll();
this.positionTip(e);
this.t1=setTimeout("document.getElementById('"+Tooltip.tipID+"').style.visibility = 'visible'",200);
},writeTip:function(msg){
if(this.tip&&typeof this.tip.innerHTML!="undefined"){
this.tip.innerHTML=msg;
}
},positionTip:function(e){
var x=e.pageX?e.pageX:e.clientX+viewport.scrollX;
var y=e.pageY?e.pageY:e.clientY+viewport.scrollY;
if(x+this.tip.offsetWidth+this.offX>viewport.width+viewport.scrollX){
x=x-this.tip.offsetWidth-this.offX;
}else{
x=x+this.offX;
}
if(y+this.tip.offsetHeight+this.offY>viewport.height+viewport.scrollY){
y=(y-this.tip.offsetHeight-this.offY>viewport.scrollY)?y-this.tip.offsetHeight-this.offY:viewport.height+viewport.scrollY-this.tip.offsetHeight;
}else{
y=y+this.offY;
}
this.tip.style.left=x+"px";
this.tip.style.top=y+"px";
},hide:function(){
if(this.t1){
clearTimeout(this.t1);
}
if(this.t2){
clearTimeout(this.t2);
}
this.t2=setTimeout("document.getElementById('"+this.tipID+"').style.visibility = 'hidden'",200);
if(this.followMouse){
dw_event.remove(document,"mousemove",this.trackMouse,true);
}
this.tip=null;
},trackMouse:function(e){
e=dw_event.DOMit(e);
Tooltip.positionTip(e);
}};
Tooltip.init();
var Tooltip={followMouse:true,offX:8,offY:12,ready:false,t1:null,t2:null,tipID:"tipDiv",tip:null,init:function(){
if(document.createElement&&document.body&&(typeof document.body.appendChild!="undefined")){
var el=document.createElement("DIV");
el.className="tooltip";
el.id=this.tipID;
document.body.appendChild(el);
this.ready=true;
}
},show:function(e,msg){
if(this.t1){
clearTimeout(this.t1);
}
if(this.t2){
clearTimeout(this.t2);
}
this.tip=document.getElementById(this.tipID);
if(this.followMouse){
dw_event.add(document,"mousemove",this.trackMouse,true);
}
this.writeTip("");
this.writeTip(msg);
viewport.getAll();
this.positionTip(e);
this.t1=setTimeout("document.getElementById('"+Tooltip.tipID+"').style.visibility = 'visible'",200);
},writeTip:function(msg){
if(this.tip&&typeof this.tip.innerHTML!="undefined"){
this.tip.innerHTML=msg;
}
},positionTip:function(e){
var x=e.pageX?e.pageX:e.clientX+viewport.scrollX;
var y=e.pageY?e.pageY:e.clientY+viewport.scrollY;
if(x+this.tip.offsetWidth+this.offX>viewport.width+viewport.scrollX){
x=x-this.tip.offsetWidth-this.offX;
}else{
x=x+this.offX;
}
if(y+this.tip.offsetHeight+this.offY>viewport.height+viewport.scrollY){
y=(y-this.tip.offsetHeight-this.offY>viewport.scrollY)?y-this.tip.offsetHeight-this.offY:viewport.height+viewport.scrollY-this.tip.offsetHeight;
}else{
y=y+this.offY;
}
this.tip.style.left=x+"px";
this.tip.style.top=y+"px";
},hide:function(){
if(this.t1){
clearTimeout(this.t1);
}
if(this.t2){
clearTimeout(this.t2);
}
this.t2=setTimeout("document.getElementById('"+this.tipID+"').style.visibility = 'hidden'",200);
if(this.followMouse){
dw_event.remove(document,"mousemove",this.trackMouse,true);
}
this.tip=null;
},trackMouse:function(e){
e=dw_event.DOMit(e);
Tooltip.positionTip(e);
}};
Tooltip.init();
function doTooltip(e,msg){
if(typeof Tooltip=="undefined"||!Tooltip.ready){
return;
}
Tooltip.show(e,msg);
}
function hideTip(){
if(typeof Tooltip=="undefined"||!Tooltip.ready){
return;
}
Tooltip.hide();
}

