function at_display(x){
win=window.open();
for(var i in x){
win.document.write(i+" = "+x[i]+"<br>");
}
}
function at_show_aux(_3,_4){
var p=document.getElementById(_3);
var c=document.getElementById(_4);
var _7=(c["at_position"]=="y")?p.offsetHeight+2:0;
var _8=(c["at_position"]=="x")?p.offsetWidth+2:0;
for(;p;p=p.offsetParent){
_7+=p.offsetTop;
_8+=p.offsetLeft;
}
c.style.position="absolute";
c.style.top=_7+"px";
c.style.left=_8+"px";
c.style.visibility="visible";
}
function at_show(){
p=document.getElementById(this["at_parent"]);
c=document.getElementById(this["at_child"]);
at_show_aux(p.id,c.id);
clearTimeout(c["at_timeout"]);
}
function at_hide(){
c=document.getElementById(this["at_child"]);
c["at_timeout"]=setTimeout("document.getElementById('"+c.id+"').style.visibility = 'hidden'",333);
}
function at_click(){
p=document.getElementById(this["at_parent"]);
c=document.getElementById(this["at_child"]);
if(c.style.visibility!="visible"){
at_show_aux(p.id,c.id);
}else{
c.style.visibility="hidden";
}
return false;
}
function at_attach(_9,_a,_b,_c,_d){
p=document.getElementById(_9);
c=document.getElementById(_a);
p["at_parent"]=p.id;
c["at_parent"]=p.id;
p["at_child"]=c.id;
c["at_child"]=c.id;
p["at_position"]=_c;
c["at_position"]=_c;
c.style.position="absolute";
c.style.visibility="hidden";
if(_d!=undefined){
p.style.cursor=_d;
}
switch(_b){
case "click":
p.onclick=at_click;
p.onmouseout=at_hide;
c.onmouseover=at_show;
c.onmouseout=at_hide;
break;
case "hover":
p.onmouseover=at_show;
p.onmouseout=at_hide;
c.onmouseover=at_show;
c.onmouseout=at_hide;
break;
}
}
function NumberFormat(_e,_f){
this.VERSION="Number Format v1.5.4";
this.COMMA=",";
this.PERIOD=".";
this.DASH="-";
this.LEFT_PAREN="(";
this.RIGHT_PAREN=")";
this.LEFT_OUTSIDE=0;
this.LEFT_INSIDE=1;
this.RIGHT_INSIDE=2;
this.RIGHT_OUTSIDE=3;
this.LEFT_DASH=0;
this.RIGHT_DASH=1;
this.PARENTHESIS=2;
this.NO_ROUNDING=-1;
this.num;
this.numOriginal;
this.hasSeparators=false;
this.separatorValue;
this.inputDecimalValue;
this.decimalValue;
this.negativeFormat;
this.negativeRed;
this.hasCurrency;
this.currencyPosition;
this.currencyValue;
this.places;
this.roundToPlaces;
this.truncate;
this.setNumber=setNumberNF;
this.toUnformatted=toUnformattedNF;
this.setInputDecimal=setInputDecimalNF;
this.setSeparators=setSeparatorsNF;
this.setCommas=setCommasNF;
this.setNegativeFormat=setNegativeFormatNF;
this.setNegativeRed=setNegativeRedNF;
this.setCurrency=setCurrencyNF;
this.setCurrencyPrefix=setCurrencyPrefixNF;
this.setCurrencyValue=setCurrencyValueNF;
this.setCurrencyPosition=setCurrencyPositionNF;
this.setPlaces=setPlacesNF;
this.toFormatted=toFormattedNF;
this.toPercentage=toPercentageNF;
this.getOriginal=getOriginalNF;
this.moveDecimalRight=moveDecimalRightNF;
this.moveDecimalLeft=moveDecimalLeftNF;
this.getRounded=getRoundedNF;
this.preserveZeros=preserveZerosNF;
this.justNumber=justNumberNF;
this.expandExponential=expandExponentialNF;
this.getZeros=getZerosNF;
this.moveDecimalAsString=moveDecimalAsStringNF;
this.moveDecimal=moveDecimalNF;
this.addSeparators=addSeparatorsNF;
if(_f==null){
this.setNumber(_e,this.PERIOD);
}else{
this.setNumber(_e,_f);
}
this.setCommas(true);
this.setNegativeFormat(this.LEFT_DASH);
this.setNegativeRed(false);
this.setCurrency(false);
this.setCurrencyPrefix("$");
this.setPlaces(2);
}
function setInputDecimalNF(val){
this.inputDecimalValue=val;
}
function setNumberNF(num,_12){
if(_12!=null){
this.setInputDecimal(_12);
}
this.numOriginal=num;
this.num=this.justNumber(num);
}
function toUnformattedNF(){
return (this.num);
}
function getOriginalNF(){
return (this.numOriginal);
}
function setNegativeFormatNF(_13){
this.negativeFormat=_13;
}
function setNegativeRedNF(_14){
this.negativeRed=_14;
}
function setSeparatorsNF(isC,_16,_17){
this.hasSeparators=isC;
if(_16==null){
_16=this.COMMA;
}
if(_17==null){
_17=this.PERIOD;
}
if(_16==_17){
this.decimalValue=(_17==this.PERIOD)?this.COMMA:this.PERIOD;
}else{
this.decimalValue=_17;
}
this.separatorValue=_16;
}
function setCommasNF(isC){
this.setSeparators(isC,this.COMMA,this.PERIOD);
}
function setCurrencyNF(isC){
this.hasCurrency=isC;
}
function setCurrencyValueNF(val){
this.currencyValue=val;
}
function setCurrencyPrefixNF(cp){
this.setCurrencyValue(cp);
this.setCurrencyPosition(this.LEFT_OUTSIDE);
}
function setCurrencyPositionNF(cp){
this.currencyPosition=cp;
}
function setPlacesNF(p,tr){
this.roundToPlaces=!(p==this.NO_ROUNDING);
this.truncate=(tr!=null&&tr);
this.places=(p<0)?0:p;
}
function addSeparatorsNF(_1f,inD,_21,sep){
_1f+="";
var _23=_1f.indexOf(inD);
var _24="";
if(_23!=-1){
_24=_21+_1f.substring(_23+1,_1f.length);
_1f=_1f.substring(0,_23);
}
var rgx=/(\d+)(\d{3})/;
while(rgx.test(_1f)){
_1f=_1f.replace(rgx,"$1"+sep+"$2");
}
return _1f+_24;
}
function toFormattedNF(){
var pos;
var _27=this.num;
var _28;
var _29=new Array(2);
if(this.roundToPlaces){
_27=this.getRounded(_27);
_28=this.preserveZeros(Math.abs(_27));
}else{
_28=this.expandExponential(Math.abs(_27));
}
if(this.hasSeparators){
_28=this.addSeparators(_28,this.PERIOD,this.decimalValue,this.separatorValue);
}else{
_28=_28.replace(new RegExp("\\"+this.PERIOD),this.decimalValue);
}
var c0="";
var n0="";
var c1="";
var n1="";
var n2="";
var c2="";
var n3="";
var c3="";
var _32=(this.negativeFormat==this.PARENTHESIS)?this.LEFT_PAREN:this.DASH;
var _33=(this.negativeFormat==this.PARENTHESIS)?this.RIGHT_PAREN:this.DASH;
if(this.currencyPosition==this.LEFT_OUTSIDE){
if(_27<0){
if(this.negativeFormat==this.LEFT_DASH||this.negativeFormat==this.PARENTHESIS){
n1=_32;
}
if(this.negativeFormat==this.RIGHT_DASH||this.negativeFormat==this.PARENTHESIS){
n2=_33;
}
}
if(this.hasCurrency){
c0=this.currencyValue;
}
}else{
if(this.currencyPosition==this.LEFT_INSIDE){
if(_27<0){
if(this.negativeFormat==this.LEFT_DASH||this.negativeFormat==this.PARENTHESIS){
n0=_32;
}
if(this.negativeFormat==this.RIGHT_DASH||this.negativeFormat==this.PARENTHESIS){
n3=_33;
}
}
if(this.hasCurrency){
c1=this.currencyValue;
}
}else{
if(this.currencyPosition==this.RIGHT_INSIDE){
if(_27<0){
if(this.negativeFormat==this.LEFT_DASH||this.negativeFormat==this.PARENTHESIS){
n0=_32;
}
if(this.negativeFormat==this.RIGHT_DASH||this.negativeFormat==this.PARENTHESIS){
n3=_33;
}
}
if(this.hasCurrency){
c2=this.currencyValue;
}
}else{
if(this.currencyPosition==this.RIGHT_OUTSIDE){
if(_27<0){
if(this.negativeFormat==this.LEFT_DASH||this.negativeFormat==this.PARENTHESIS){
n1=_32;
}
if(this.negativeFormat==this.RIGHT_DASH||this.negativeFormat==this.PARENTHESIS){
n2=_33;
}
}
if(this.hasCurrency){
c3=this.currencyValue;
}
}
}
}
}
_28=c0+n0+c1+n1+_28+n2+c2+n3+c3;
if(this.negativeRed&&_27<0){
_28="<font color=\"red\">"+_28+"</font>";
}
return (_28);
}
function toPercentageNF(){
nNum=this.num*100;
nNum=this.getRounded(nNum);
return nNum+"%";
}
function getZerosNF(_34){
var _35="";
var i;
for(i=0;i<_34;i++){
_35+="0";
}
return _35;
}
function expandExponentialNF(_37){
if(isNaN(_37)){
return _37;
}
var _38=parseFloat(_37)+"";
var _39=_38.toLowerCase().indexOf("e");
if(_39!=-1){
var _3a=_38.toLowerCase().indexOf("+");
var _3b=_38.toLowerCase().indexOf("-",_39);
var _3c=_38.substring(0,_39);
if(_3b!=-1){
var _3d=_38.substring(_3b+1,_38.length);
_3c=this.moveDecimalAsString(_3c,true,parseInt(_3d));
}else{
if(_3a==-1){
_3a=_39;
}
var _3d=_38.substring(_3a+1,_38.length);
_3c=this.moveDecimalAsString(_3c,false,parseInt(_3d));
}
_38=_3c;
}
return _38;
}
function moveDecimalRightNF(val,_3f){
var _40="";
if(_3f==null){
_40=this.moveDecimal(val,false);
}else{
_40=this.moveDecimal(val,false,_3f);
}
return _40;
}
function moveDecimalLeftNF(val,_42){
var _43="";
if(_42==null){
_43=this.moveDecimal(val,true);
}else{
_43=this.moveDecimal(val,true,_42);
}
return _43;
}
function moveDecimalAsStringNF(val,_45,_46){
var _47=(arguments.length<3)?this.places:_46;
if(_47<=0){
return val;
}
var _48=val+"";
var _49=this.getZeros(_47);
var re1=new RegExp("([0-9.]+)");
if(_45){
_48=_48.replace(re1,_49+"$1");
var re2=new RegExp("(-?)([0-9]*)([0-9]{"+_47+"})(\\.?)");
_48=_48.replace(re2,"$1$2.$3");
}else{
var _4c=re1.exec(_48);
if(_4c!=null){
_48=_48.substring(0,_4c.index)+_4c[1]+_49+_48.substring(_4c.index+_4c[0].length);
}
var re2=new RegExp("(-?)([0-9]*)(\\.?)([0-9]{"+_47+"})");
_48=_48.replace(re2,"$1$2$4.");
}
_48=_48.replace(/\.$/,"");
return _48;
}
function moveDecimalNF(val,_4e,_4f){
var _50="";
if(_4f==null){
_50=this.moveDecimalAsString(val,_4e);
}else{
_50=this.moveDecimalAsString(val,_4e,_4f);
}
return parseFloat(_50);
}
function getRoundedNF(val){
val=this.moveDecimalRight(val);
if(this.truncate){
val=val>=0?Math.floor(val):Math.ceil(val);
}else{
val=Math.round(val);
}
val=this.moveDecimalLeft(val);
return val;
}
function preserveZerosNF(val){
var i;
val=this.expandExponential(val);
if(this.places<=0){
return val;
}
var _54=val.indexOf(".");
if(_54==-1){
val+=".";
for(i=0;i<this.places;i++){
val+="0";
}
}else{
var _55=(val.length-1)-_54;
var _56=this.places-_55;
for(i=0;i<_56;i++){
val+="0";
}
}
return val;
}
function justNumberNF(val){
newVal=val+"";
var _58=false;
if(newVal.indexOf("%")!=-1){
newVal=newVal.replace(/\%/g,"");
_58=true;
}
var re=new RegExp("[^\\"+this.inputDecimalValue+"\\d\\-\\+\\(\\)eE]","g");
newVal=newVal.replace(re,"");
var _5a=new RegExp("["+this.inputDecimalValue+"]","g");
var _5b=_5a.exec(newVal);
if(_5b!=null){
var _5c=newVal.substring(_5b.index+_5b[0].length);
newVal=newVal.substring(0,_5b.index)+this.PERIOD+_5c.replace(_5a,"");
}
if(newVal.charAt(newVal.length-1)==this.DASH){
newVal=newVal.substring(0,newVal.length-1);
newVal="-"+newVal;
}else{
if(newVal.charAt(0)==this.LEFT_PAREN&&newVal.charAt(newVal.length-1)==this.RIGHT_PAREN){
newVal=newVal.substring(1,newVal.length-1);
newVal="-"+newVal;
}
}
newVal=parseFloat(newVal);
if(!isFinite(newVal)){
newVal=0;
}
if(_58){
newVal=this.moveDecimalLeft(newVal,2);
}
return newVal;
}
var BrowserDetect={init:function(){
this.browser=this.searchString(this.dataBrowser)||"An unknown browser";
this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";
this.OS=this.searchString(this.dataOS)||"an unknown OS";
},searchString:function(_5d){
for(var i=0;i<_5d.length;i++){
var _5f=_5d[i].string;
var _60=_5d[i].prop;
this.versionSearchString=_5d[i].versionSearch||_5d[i].identity;
if(_5f){
if(_5f.indexOf(_5d[i].subString)!=-1){
return _5d[i].identity;
}
}else{
if(_60){
return _5d[i].identity;
}
}
}
},searchVersion:function(_61){
var _62=_61.indexOf(this.versionSearchString);
if(_62==-1){
return;
}
return parseFloat(_61.substring(_62+this.versionSearchString.length+1));
},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};
BrowserDetect.init();
function $import(src){
var _64=document.createElement("script");
_64.setAttribute("src",src);
_64.setAttribute("type","text/javascript");
document.getElementsByTagName("head")[0].appendChild(_64);
}
function $importNoCache(src){
var ms=new Date().getTime().toString();
var _67="?"+ms;
$import(src+_67);
}
function $importGzip(src){
var _69=src+".gz";
if(BrowserDetect.browser=="Explorer"&&BrowserDetect.version<7){
$import(src);
}else{
$import(_69);
}
}
function urlDecode(str){
str=str.replace(new RegExp("\\+","g")," ");
return unescape(str);
}
function urlEncode(str){
str=escape(str);
str=str.replace(new RegExp("\\+","g"),"%2B");
return str.replace(new RegExp("%20","g"),"+");
}
var END_OF_INPUT=-1;
var base64Chars=new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/");
var reverseBase64Chars=new Array();
for(var i=0;i<base64Chars.length;i++){
reverseBase64Chars[base64Chars[i]]=i;
}
var base64Str;
var base64Count;
function setBase64Str(str){
base64Str=str;
base64Count=0;
}
function readBase64(){
if(!base64Str){
return END_OF_INPUT;
}
if(base64Count>=base64Str.length){
return END_OF_INPUT;
}
var c=base64Str.charCodeAt(base64Count)&255;
base64Count++;
return c;
}
function encodeBase64(str){
setBase64Str(str);
var _6f="";
var _70=new Array(3);
var _71=0;
var _72=false;
while(!_72&&(_70[0]=readBase64())!=END_OF_INPUT){
_70[1]=readBase64();
_70[2]=readBase64();
_6f+=(base64Chars[_70[0]>>2]);
if(_70[1]!=END_OF_INPUT){
_6f+=(base64Chars[((_70[0]<<4)&48)|(_70[1]>>4)]);
if(_70[2]!=END_OF_INPUT){
_6f+=(base64Chars[((_70[1]<<2)&60)|(_70[2]>>6)]);
_6f+=(base64Chars[_70[2]&63]);
}else{
_6f+=(base64Chars[((_70[1]<<2)&60)]);
_6f+=("=");
_72=true;
}
}else{
_6f+=(base64Chars[((_70[0]<<4)&48)]);
_6f+=("=");
_6f+=("=");
_72=true;
}
_71+=4;
if(_71>=76){
_6f+=("\n");
_71=0;
}
}
return _6f;
}
function encodeBase64ForURL(str){
var str=encodeBase64(str).replace(/=/g,"").replace(/\+/g,"*").replace(/\//g,"-");
str=str.replace(/\s/g,"");
return str;
}
function decodeBase64ForURL(str){
return decodeBase64(str.replace(/\*/g,"+").replace(/-/g,"/"));
}
function readReverseBase64(){
if(!base64Str){
return END_OF_INPUT;
}
while(true){
if(base64Count>=base64Str.length){
return END_OF_INPUT;
}
var _75=base64Str.charAt(base64Count);
base64Count++;
if(reverseBase64Chars[_75]){
return reverseBase64Chars[_75];
}
if(_75=="A"){
return 0;
}
}
return END_OF_INPUT;
}
function ntos(n){
n=n.toString(16);
if(n.length==1){
n="0"+n;
}
n="%"+n;
return unescape(n);
}
function decodeBase64(str){
setBase64Str(str);
var _78="";
var _79=new Array(4);
var _7a=false;
while(!_7a&&(_79[0]=readReverseBase64())!=END_OF_INPUT&&(_79[1]=readReverseBase64())!=END_OF_INPUT){
_79[2]=readReverseBase64();
_79[3]=readReverseBase64();
_78+=ntos((((_79[0]<<2)&255)|_79[1]>>4));
if(_79[2]!=END_OF_INPUT){
_78+=ntos((((_79[1]<<4)&255)|_79[2]>>2));
if(_79[3]!=END_OF_INPUT){
_78+=ntos((((_79[2]<<6)&255)|_79[3]));
}else{
_7a=true;
}
}else{
_7a=true;
}
}
return _78;
}
var digitArray=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");
function toHex(n){
var _7c="";
var _7d=true;
for(var i=32;i>0;){
i-=4;
var _7f=(n>>i)&15;
if(!_7d||_7f!=0){
_7d=false;
_7c+=digitArray[_7f];
}
}
return (_7c==""?"0":_7c);
}
function pad(str,len,pad){
var _83=str;
for(var i=str.length;i<len;i++){
_83=pad+_83;
}
return _83;
}
function encodeHex(str){
var _86="";
for(var i=0;i<str.length;i++){
_86+=pad(toHex(str.charCodeAt(i)&255),2,"0");
}
return _86;
}
function decodeHex(str){
str=str.replace(new RegExp("s/[^0-9a-zA-Z]//g"));
var _89="";
var _8a="";
for(var i=0;i<str.length;i++){
_8a+=str.charAt(i);
if(_8a.length==2){
_89+=ntos(eval("0x"+_8a));
_8a="";
}
}
return _89;
}
var Utf8={encode:function(_8c){
_8c=_8c.replace(/\r\n/g,"\n");
var _8d="";
for(var n=0;n<_8c.length;n++){
var c=_8c.charCodeAt(n);
if(c<128){
_8d+=String.fromCharCode(c);
}else{
if((c>127)&&(c<2048)){
_8d+=String.fromCharCode((c>>6)|192);
_8d+=String.fromCharCode((c&63)|128);
}else{
_8d+=String.fromCharCode((c>>12)|224);
_8d+=String.fromCharCode(((c>>6)&63)|128);
_8d+=String.fromCharCode((c&63)|128);
}
}
}
return _8d;
},decode:function(_90){
var _91="";
var i=0;
var c=c1=c2=0;
while(i<_90.length){
c=_90.charCodeAt(i);
if(c<128){
_91+=String.fromCharCode(c);
i++;
}else{
if((c>191)&&(c<224)){
c2=_90.charCodeAt(i+1);
_91+=String.fromCharCode(((c&31)<<6)|(c2&63));
i+=2;
}else{
c2=_90.charCodeAt(i+1);
c3=_90.charCodeAt(i+2);
_91+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));
i+=3;
}
}
}
return _91;
}};
function JSONscriptRequest(_94){
this.fullUrl=_94;
this.noCacheIE="?noCacheIE="+(new Date()).getTime();
this.headLoc=document.getElementsByTagName("head").item(0);
this.scriptId="JscriptId"+JSONscriptRequest.scriptCounter++;
}
JSONscriptRequest.scriptCounter=1;
JSONscriptRequest.prototype.buildScriptTag=function(){
this.scriptObj=document.createElement("script");
this.scriptObj.setAttribute("type","text/javascript");
this.scriptObj.setAttribute("charset","utf-8");
this.scriptObj.setAttribute("src",this.fullUrl+this.noCacheIE);
this.scriptObj.setAttribute("id",this.scriptId);
};
JSONscriptRequest.prototype.removeScriptTag=function(){
this.headLoc.removeChild(this.scriptObj);
};
JSONscriptRequest.prototype.addScriptTag=function(){
this.headLoc.appendChild(this.scriptObj);
};
Inflector={Inflections:{plural:[[/(quiz)$/i,"$1zes"],[/^(ox)$/i,"$1en"],[/([m|l])ouse$/i,"$1ice"],[/(matr|vert|ind)ix|ex$/i,"$1ices"],[/(x|ch|ss|sh)$/i,"$1es"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/(hive)$/i,"$1s"],[/(?:([^f])fe|([lr])f)$/i,"$1$2ves"],[/sis$/i,"ses"],[/([ti])um$/i,"$1a"],[/(buffal|tomat)o$/i,"$1oes"],[/(bu)s$/i,"$1ses"],[/(alias|status)$/i,"$1es"],[/(octop|vir)us$/i,"$1i"],[/(ax|test)is$/i,"$1es"],[/s$/i,"s"],[/$/,"s"]],singular:[[/(quiz)zes$/i,"$1"],[/(matr)ices$/i,"$1ix"],[/(vert|ind)ices$/i,"$1ex"],[/^(ox)en/i,"$1"],[/(alias|status)es$/i,"$1"],[/(octop|vir)i$/i,"$1us"],[/(cris|ax|test)es$/i,"$1is"],[/(shoe)s$/i,"$1"],[/(o)es$/i,"$1"],[/(bus)es$/i,"$1"],[/([m|l])ice$/i,"$1ouse"],[/(x|ch|ss|sh)es$/i,"$1"],[/(m)ovies$/i,"$1ovie"],[/(s)eries$/i,"$1eries"],[/([^aeiouy]|qu)ies$/i,"$1y"],[/([lr])ves$/i,"$1f"],[/(tive)s$/i,"$1"],[/(hive)s$/i,"$1"],[/([^f])ves$/i,"$1fe"],[/(^analy)ses$/i,"$1sis"],[/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i,"$1$2sis"],[/([ti])a$/i,"$1um"],[/(n)ews$/i,"$1ews"],[/s$/i,""]],irregular:[["move","moves"],["sex","sexes"],["child","children"],["man","men"],["person","people"]],irregular_object:{move:"moves",sex:"sexes",child:"children",man:"men",person:"people"},uncountable:["sheep","fish","series","species","money","rice","information","equipment"]},ordinalize:function(_95){
if(11<=parseInt(_95)%100&&parseInt(_95)%100<=13){
return _95+"th";
}else{
switch(parseInt(_95)%10){
case 1:
return _95+"st";
case 2:
return _95+"nd";
case 3:
return _95+"rd";
default:
return _95+"th";
}
}
},pluralize:function(_96){
for(var i=0;i<Inflector.Inflections.uncountable.length;i++){
var _98=Inflector.Inflections.uncountable[i];
if(_96.toLowerCase==_98){
return _98;
}
}
for(var i=0;i<Inflector.Inflections.irregular.length;i++){
var _99=Inflector.Inflections.irregular[i][0];
var _9a=Inflector.Inflections.irregular[i][1];
if((_96.toLowerCase==_99)||(_96==_9a)){
return _9a;
}
}
for(var i=0;i<Inflector.Inflections.plural.length;i++){
var _9b=Inflector.Inflections.plural[i][0];
var _9c=Inflector.Inflections.plural[i][1];
if(_9b.test(_96)){
return _96.replace(_9b,_9c);
}
}
}};
function ordinalize(_9d){
return Inflector.ordinalize(_9d);
}
function pluralize(_9e){
return _9e.count+" "+(1==parseInt(_9e.count)?_9e.singular:_9e.plural||Inflector.pluralize(_9e.singular));
}
var Class={create:function(){
return function(){
this.initialize.apply(this,arguments);
};
}};
Object.extend=function(_9f,_a0){
for(property in _a0){
_9f[property]=_a0[property];
}
return _9f;
};
Function.prototype.bind=function(_a1){
var _a2=this;
return function(){
return _a2.apply(_a1,arguments);
};
};
Function.prototype.bindAsEventListener=function(_a3){
var _a4=this;
return function(_a5){
_a4.call(_a3,_a5||window.event);
};
};
function $(){
if(arguments.length==1){
return get$(arguments[0]);
}
var _a6=[];
$c(arguments).each(function(el){
_a6.push(get$(el));
});
return _a6;
function get$(el){
if(typeof el=="string"){
el=document.getElementById(el);
}
return el;
}
}
if(!window.Element){
var Element=new Object();
}
Object.extend(Element,{remove:function(_a9){
_a9=$(_a9);
_a9.parentNode.removeChild(_a9);
},hasClassName:function(_aa,_ab){
_aa=$(_aa);
if(!_aa){
return;
}
var _ac=false;
_aa.className.split(" ").each(function(cn){
if(cn==_ab){
_ac=true;
}
});
return _ac;
},addClassName:function(_ae,_af){
_ae=$(_ae);
Element.removeClassName(_ae,_af);
_ae.className+=" "+_af;
},removeClassName:function(_b0,_b1){
_b0=$(_b0);
if(!_b0){
return;
}
var _b2="";
_b0.className.split(" ").each(function(cn,i){
if(cn!=_b1){
if(i>0){
_b2+=" ";
}
_b2+=cn;
}
});
_b0.className=_b2;
},cleanWhitespace:function(_b5){
_b5=$(_b5);
$c(_b5.childNodes).each(function(_b6){
if(_b6.nodeType==3&&!/\S/.test(_b6.nodeValue)){
Element.remove(_b6);
}
});
},find:function(_b7,_b8){
_b7=$(_b7)[_b8];
while(_b7.nodeType!=1){
_b7=_b7[_b8];
}
return _b7;
}});
var Position={cumulativeOffset:function(_b9){
var _ba=0,_bb=0;
do{
_ba+=_b9.offsetTop||0;
_bb+=_b9.offsetLeft||0;
_b9=_b9.offsetParent;
}while(_b9);
return [_bb,_ba];
}};
document.getElementsByClassName=function(_bc){
var _bd=document.getElementsByTagName("*")||document.all;
var _be=[];
$c(_bd).each(function(_bf){
if(Element.hasClassName(_bf,_bc)){
_be.push(_bf);
}
});
return _be;
};
Array.prototype.iterate=function(_c0){
for(var i=0;i<this.length;i++){
_c0(this[i],i);
}
};
if(!Array.prototype.each){
Array.prototype.each=Array.prototype.iterate;
}
function $c(_c2){
var _c3=[];
for(var i=0;i<_c2.length;i++){
_c3.push(_c2[i]);
}
return _c3;
}
var Fx=fx={};
Fx.Base=function(){
};
Fx.Base.prototype={setOptions:function(_c5){
this.options=Object.extend({onStart:function(){
},onComplete:function(){
},transition:Fx.Transitions.sineInOut,duration:500,unit:"px",wait:true,fps:50},_c5||{});
},step:function(){
var _c6=new Date().getTime();
if(_c6<this.time+this.options.duration){
this.cTime=_c6-this.time;
this.setNow();
}else{
setTimeout(this.options.onComplete.bind(this,this.element),10);
this.clearTimer();
this.now=this.to;
}
this.increase();
},setNow:function(){
this.now=this.compute(this.from,this.to);
},compute:function(_c7,to){
var _c9=to-_c7;
return this.options.transition(this.cTime,_c7,_c9,this.options.duration);
},clearTimer:function(){
clearInterval(this.timer);
this.timer=null;
return this;
},_start:function(_ca,to){
if(!this.options.wait){
this.clearTimer();
}
if(this.timer){
return;
}
setTimeout(this.options.onStart.bind(this,this.element),10);
this.from=_ca;
this.to=to;
this.time=new Date().getTime();
this.timer=setInterval(this.step.bind(this),Math.round(1000/this.options.fps));
return this;
},custom:function(_cc,to){
return this._start(_cc,to);
},set:function(to){
this.now=to;
this.increase();
return this;
},hide:function(){
return this.set(0);
},setStyle:function(e,p,v){
if(p=="opacity"){
if(v==0&&e.style.visibility!="hidden"){
e.style.visibility="hidden";
}else{
if(e.style.visibility!="visible"){
e.style.visibility="visible";
}
}
if(window.ActiveXObject){
e.style.filter="alpha(opacity="+v*100+")";
}
e.style.opacity=v;
}else{
e.style[p]=v+this.options.unit;
}
}};
Fx.Style=Class.create();
Fx.Style.prototype=Object.extend(new Fx.Base(),{initialize:function(el,_d3,_d4){
this.element=$(el);
this.setOptions(_d4);
this.property=_d3.camelize();
},increase:function(){
this.setStyle(this.element,this.property,this.now);
}});
Fx.Styles=Class.create();
Fx.Styles.prototype=Object.extend(new Fx.Base(),{initialize:function(el,_d6){
this.element=$(el);
this.setOptions(_d6);
this.now={};
},setNow:function(){
for(p in this.from){
this.now[p]=this.compute(this.from[p],this.to[p]);
}
},custom:function(obj){
if(this.timer&&this.options.wait){
return;
}
var _d8={};
var to={};
for(p in obj){
_d8[p]=obj[p][0];
to[p]=obj[p][1];
}
return this._start(_d8,to);
},increase:function(){
for(var p in this.now){
this.setStyle(this.element,p,this.now[p]);
}
}});
Fx.Transitions={linear:function(t,b,c,d){
return c*t/d+b;
},sineInOut:function(t,b,c,d){
return -c/2*(Math.cos(Math.PI*t/d)-1)+b;
}};

