function add_class ()
{
    var headings = document.getElementsByTagName( 'h3' );
    for ( var i = 0 , max = headings.length ; i < max ; i += 1 )
    {

		
		
headings[i].className = (i % 2 == 0) ? 'accordion_toggle' : 'accordion_toggle oddy';		
		
    }
}
window.onload = add_class;
var Prototype={Version:"1.5.0",BrowserFeatures:{XPath:!!document.evaluate},ScriptFragment:"(?:<script.*?>)((\n|\r|.)*?)(?:</script>)",emptyFunction:function(){
},K:function(x){
return x;
}};
var Class={create:function(){
return function(){
this.initialize.apply(this,arguments);
};
}};
var Abstract=new Object();
Object.extend=function(_2,_3){
for(var _4 in _3){
_2[_4]=_3[_4];
}
return _2;
};
Object.extend(Object,{inspect:function(_5){
try{
if(_5===undefined){
return "undefined";
}
if(_5===null){
return "null";
}
return _5.inspect?_5.inspect():_5.toString();
}
catch(e){
if(e instanceof RangeError){
return "...";
}
throw e;
}
},keys:function(_6){
var _7=[];
for(var _8 in _6){
_7.push(_8);
}
return _7;
},values:function(_9){
var _a=[];
for(var _b in _9){
_a.push(_9[_b]);
}
return _a;
},clone:function(_c){
return Object.extend({},_c);
}});
Function.prototype.bind=function(){
var _d=this,args=$A(arguments),object=args.shift();
return function(){
return _d.apply(object,args.concat($A(arguments)));
};
};
Function.prototype.bindAsEventListener=function(_e){
var _f=this,args=$A(arguments),_e=args.shift();
return function(_10){
return _f.apply(_e,[(_10||window.event)].concat(args).concat($A(arguments)));
};
};

Object.extend(String.prototype,{gsub:function(_19,_1a){
var _1b="",source=this,match;
_1a=arguments.callee.prepareReplacement(_1a);
while(source.length>0){
if(match=source.match(_19)){
_1b+=source.slice(0,match.index);
_1b+=String.interpret(_1a(match));
source=source.slice(match.index+match[0].length);
}else{
_1b+=source,source="";
}
}
return _1b;
},sub:function(_1c,_1d,_1e){
_1d=this.gsub.prepareReplacement(_1d);
_1e=_1e===undefined?1:_1e;
return this.gsub(_1c,function(_1f){
if(--_1e<0){
return _1f[0];
}
return _1d(_1f);
});
},scan:function(_20,_21){
this.gsub(_20,_21);
return this;
},truncate:function(_22,_23){
_22=_22||30;
_23=_23===undefined?"...":_23;
return this.length>_22?this.slice(0,_22-_23.length)+_23:this;
},strip:function(){
return this.replace(/^\s+/,"").replace(/\s+$/,"");
},stripTags:function(){
return this.replace(/<\/?[^>]+>/gi,"");
},stripScripts:function(){
return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"");
},extractScripts:function(){
var _24=new RegExp(Prototype.ScriptFragment,"img");
var _25=new RegExp(Prototype.ScriptFragment,"im");
return (this.match(_24)||[]).map(function(_26){
return (_26.match(_25)||["",""])[1];
});
},evalScripts:function(){
return this.extractScripts().map(function(_27){
return eval(_27);
});
},escapeHTML:function(){
var div=document.createElement("div");
var _29=document.createTextNode(this);
div.appendChild(_29);
return div.innerHTML;
},unescapeHTML:function(){
var div=document.createElement("div");
div.innerHTML=this.stripTags();
return div.childNodes[0]?(div.childNodes.length>1?$A(div.childNodes).inject("",function(_2b,_2c){
return _2b+_2c.nodeValue;
}):div.childNodes[0].nodeValue):"";
},toQueryParams:function(_2d){
var _2e=this.strip().match(/([^?#]*)(#.*)?$/);
if(!_2e){
return {};
}
return _2e[1].split(_2d||"&").inject({},function(_2f,_30){
if((_30=_30.split("="))[0]){
var _31=decodeURIComponent(_30[0]);
var _32=_30[1]?decodeURIComponent(_30[1]):undefined;
if(_2f[_31]!==undefined){
if(_2f[_31].constructor!=Array){
_2f[_31]=[_2f[_31]];
}
if(_32){
_2f[_31].push(_32);
}
}else{
_2f[_31]=_32;
}
}
return _2f;
});
},toArray:function(){
return this.split("");
},succ:function(){
return this.slice(0,this.length-1)+String.fromCharCode(this.charCodeAt(this.length-1)+1);
},camelize:function(){
var _33=this.split("-"),len=_33.length;
if(len==1){
return _33[0];
}
var _34=this.charAt(0)=="-"?_33[0].charAt(0).toUpperCase()+_33[0].substring(1):_33[0];
for(var i=1;i<len;i++){
_34+=_33[i].charAt(0).toUpperCase()+_33[i].substring(1);
}
return _34;
},capitalize:function(){
return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase();
},underscore:function(){
return this.gsub(/::/,"/").gsub(/([A-Z]+)([A-Z][a-z])/,"#{1}_#{2}").gsub(/([a-z\d])([A-Z])/,"#{1}_#{2}").gsub(/-/,"_").toLowerCase();
},dasherize:function(){
return this.gsub(/_/,"-");
},inspect:function(_36){
var _37=this.replace(/\\/g,"\\\\");
if(_36){
return "\""+_37.replace(/"/g,"\\\"")+"\"";
}else{
return "'"+_37.replace(/'/g,"\\'")+"'";
}
}});
var $break=new Object();
var $continue=new Object();
var Enumerable={each:function(_38){
var _39=0;
try{
this._each(function(_3a){
try{
_38(_3a,_39++);
}
catch(e){
if(e!=$continue){
throw e;
}
}
});
}
catch(e){
if(e!=$break){
throw e;
}
}
return this;
},eachSlice:function(_3b,_3c){
var _3d=-_3b,slices=[],array=this.toArray();
while((_3d+=_3b)<array.length){
slices.push(array.slice(_3d,_3d+_3b));
}
return slices.map(_3c);
},all:function(_3e){
var _3f=true;
this.each(function(_40,_41){
_3f=_3f&&!!(_3e||Prototype.K)(_40,_41);
if(!_3f){
throw $break;
}
});
return _3f;
},any:function(_42){
var _43=false;
this.each(function(_44,_45){
if(_43=!!(_42||Prototype.K)(_44,_45)){
throw $break;
}
});
return _43;
},collect:function(_46){
var _47=[];
this.each(function(_48,_49){
_47.push((_46||Prototype.K)(_48,_49));
});
return _47;
},detect:function(_4a){
var _4b;
this.each(function(_4c,_4d){
if(_4a(_4c,_4d)){
_4b=_4c;
throw $break;
}
});
return _4b;
},findAll:function(_4e){
var _4f=[];
this.each(function(_50,_51){
if(_4e(_50,_51)){
_4f.push(_50);
}
});
return _4f;
},grep:function(_52,_53){
var _54=[];
this.each(function(_55,_56){
var _57=_55.toString();
if(_57.match(_52)){
_54.push((_53||Prototype.K)(_55,_56));
}
});
return _54;
},include:function(_58){
var _59=false;
this.each(function(_5a){
if(_5a==_58){
_59=true;
throw $break;
}
});
return _59;
},inGroupsOf:function(_5b,_5c){
_5c=_5c===undefined?null:_5c;
return this.eachSlice(_5b,function(_5d){
while(_5d.length<_5b){
_5d.push(_5c);
}
return _5d;
});
},inject:function(_5e,_5f){
this.each(function(_60,_61){
_5e=_5f(_5e,_60,_61);
});
return _5e;
},invoke:function(_62){
var _63=$A(arguments).slice(1);
return this.map(function(_64){
return _64[_62].apply(_64,_63);
});
},max:function(_65){
var _66;
this.each(function(_67,_68){
_67=(_65||Prototype.K)(_67,_68);
if(_66==undefined||_67>=_66){
_66=_67;
}
});
return _66;
},min:function(_69){
var _6a;
this.each(function(_6b,_6c){
_6b=(_69||Prototype.K)(_6b,_6c);
if(_6a==undefined||_6b<_6a){
_6a=_6b;
}
});
return _6a;
},partition:function(_6d){
var _6e=[],falses=[];
this.each(function(_6f,_70){
((_6d||Prototype.K)(_6f,_70)?_6e:falses).push(_6f);
});
return [_6e,falses];
},pluck:function(_71){
var _72=[];
this.each(function(_73,_74){
_72.push(_73[_71]);
});
return _72;
},reject:function(_75){
var _76=[];
this.each(function(_77,_78){
if(!_75(_77,_78)){
_76.push(_77);
}
});
return _76;
},sortBy:function(_79){
return this.map(function(_7a,_7b){
return {value:_7a,criteria:_79(_7a,_7b)};
}).sort(function(_7c,_7d){
var a=_7c.criteria,b=_7d.criteria;
return a<b?-1:a>b?1:0;
}).pluck("value");
},toArray:function(){
return this.map();
},zip:function(){
var _7f=Prototype.K,args=$A(arguments);
if(typeof args.last()=="function"){
_7f=args.pop();
}
var _80=[this].concat(args).map($A);
return this.map(function(_81,_82){
return _7f(_80.pluck(_82));
});
},size:function(){
return this.toArray().length;
},inspect:function(){
return "#<Enumerable:"+this.toArray().inspect()+">";
}};
Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});
var $A=Array.from=function(_83){
if(!_83){
return [];
}
if(_83.toArray){
return _83.toArray();
}else{
var _84=[];
for(var i=0,length=_83.length;i<length;i++){
_84.push(_83[i]);
}
return _84;
}
};
Object.extend(Array.prototype,Enumerable);
if(!Array.prototype._reverse){
Array.prototype._reverse=Array.prototype.reverse;
}
Object.extend(Array.prototype,{_each:function(_86){
for(var i=0,length=this.length;i<length;i++){
_86(this[i]);
}
},clear:function(){
this.length=0;
return this;
},first:function(){
return this[0];
},last:function(){
return this[this.length-1];
},compact:function(){
return this.select(function(_88){
return _88!=null;
});
},flatten:function(){
return this.inject([],function(_89,_8a){
return _89.concat(_8a&&_8a.constructor==Array?_8a.flatten():[_8a]);
});
},without:function(){
var _8b=$A(arguments);
return this.select(function(_8c){
return !_8b.include(_8c);
});
},indexOf:function(_8d){
for(var i=0,length=this.length;i<length;i++){
if(this[i]==_8d){
return i;
}
}
return -1;
},reverse:function(_8f){
return (_8f!==false?this:this.toArray())._reverse();
},reduce:function(){
return this.length>1?this:this[0];
},uniq:function(){
return this.inject([],function(_90,_91){
return _90.include(_91)?_90:_90.concat([_91]);
});
},clone:function(){
return [].concat(this);
},size:function(){
return this.length;
},inspect:function(){
return "["+this.map(Object.inspect).join(", ")+"]";
}});
Array.prototype.toArray=Array.prototype.clone;
function $w(_92){
_92=_92.strip();
return _92?_92.split(/\s+/):[];
}
if(window.opera){
Array.prototype.concat=function(){
var _93=[];
for(var i=0,length=this.length;i<length;i++){
_93.push(this[i]);
}
for(var i=0,length=arguments.length;i<length;i++){
if(arguments[i].constructor==Array){
for(var j=0,arrayLength=arguments[i].length;j<arrayLength;j++){
_93.push(arguments[i][j]);
}
}else{
_93.push(arguments[i]);
}
}
return _93;
};
}
var Hash=function(obj){
Object.extend(this,obj||{});
};
Object.extend(Hash.prototype,Enumerable);
Object.extend(Hash.prototype,{_each:function(_98){
for(var key in this){
var _9a=this[key];
if(_9a&&_9a==Hash.prototype[key]){
continue;
}
var _9b=[key,_9a];
_9b.key=key;
_9b.value=_9a;
_98(_9b);
}
},keys:function(){
return this.pluck("key");
},values:function(){
return this.pluck("value");
},merge:function(_9c){
return $H(_9c).inject(this,function(_9d,_9e){
_9d[_9e.key]=_9e.value;
return _9d;
});
},remove:function(){
var _9f;
for(var i=0,length=arguments.length;i<length;i++){
var _a1=this[arguments[i]];
if(_a1!==undefined){
if(_9f===undefined){
_9f=_a1;
}else{
if(_9f.constructor!=Array){
_9f=[_9f];
}
_9f.push(_a1);
}
}
delete this[arguments[i]];
}
return _9f;
},toQueryString:function(){
return Hash.toQueryString(this);
},inspect:function(){
return "#<Hash:{"+this.map(function(_a2){
return _a2.map(Object.inspect).join(": ");
}).join(", ")+"}>";
}});
function $H(_a3){
if(_a3&&_a3.constructor==Hash){
return _a3;
}
return new Hash(_a3);
}
ObjectRange=Class.create();
Object.extend(ObjectRange.prototype,Enumerable);
Object.extend(ObjectRange.prototype,{initialize:function(_a4,end,_a6){
this.start=_a4;
this.end=end;
this.exclusive=_a6;
},_each:function(_a7){
var _a8=this.start;
while(this.include(_a8)){
_a7(_a8);
_a8=_a8.succ();
}
},include:function(_a9){
if(_a9<this.start){
return false;
}
if(this.exclusive){
return _a9<this.end;
}
return _a9<=this.end;
}});
var $R=function(_aa,end,_ac){
return new ObjectRange(_aa,end,_ac);
};
var Ajax={getTransport:function(){
return Try.these(function(){
return new XMLHttpRequest();
},function(){
return new ActiveXObject("Msxml2.XMLHTTP");
},function(){
return new ActiveXObject("Microsoft.XMLHTTP");
})||false;
},activeRequestCount:0};
Ajax.Responders={responders:[],_each:function(_ad){
this.responders._each(_ad);
},register:function(_ae){
if(!this.include(_ae)){
this.responders.push(_ae);
}
},unregister:function(_af){
this.responders=this.responders.without(_af);
},dispatch:function(_b0,_b1,_b2,_b3){
this.each(function(_b4){
if(typeof _b4[_b0]=="function"){
try{
_b4[_b0].apply(_b4,[_b1,_b2,_b3]);
}
catch(e){
}
}
});
}};
function $(_b5){
if(arguments.length>1){
for(var i=0,elements=[],length=arguments.length;i<length;i++){
elements.push($(arguments[i]));
}
return elements;
}
if(typeof _b5=="string"){
_b5=document.getElementById(_b5);
}
return Element.extend(_b5);
}
if(Prototype.BrowserFeatures.XPath){
document._getElementsByXPath=function(_b7,_b8){
var _b9=[];
var _ba=document.evaluate(_b7,$(_b8)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
for(var i=0,length=_ba.snapshotLength;i<length;i++){
_b9.push(_ba.snapshotItem(i));
}
return _b9;
};
}
document.getElementsByClassName=function(_bc,_bd){
if(Prototype.BrowserFeatures.XPath){
var q=".//*[contains(concat(' ', @class, ' '), ' "+_bc+" ')]";
return document._getElementsByXPath(q,_bd);
}else{
var _bf=($(_bd)||document.body).getElementsByTagName("*");
var _c0=[],child;
for(var i=0,length=_bf.length;i<length;i++){
child=_bf[i];
if(Element.hasClassName(child,_bc)){
_c0.push(Element.extend(child));
}
}
return _c0;
}
};
if(!window.Element){
var Element=new Object();
}
Element.extend=function(_c2){
if(!_c2||_nativeExtensions||_c2.nodeType==3){
return _c2;
}
if(!_c2._extended&&_c2.tagName&&_c2!=window){
var _c3=Object.clone(Element.Methods),cache=Element.extend.cache;
if(_c2.tagName=="FORM"){
Object.extend(_c3,Form.Methods);
}
if(["INPUT","TEXTAREA","SELECT"].include(_c2.tagName)){
Object.extend(_c3,Form.Element.Methods);
}
Object.extend(_c3,Element.Methods.Simulated);
for(var _c4 in _c3){
var _c5=_c3[_c4];
if(typeof _c5=="function"&&!(_c4 in _c2)){
_c2[_c4]=cache.findOrStore(_c5);
}
}
}
_c2._extended=true;
return _c2;
};
Element.extend.cache={findOrStore:function(_c6){
return this[_c6]=this[_c6]||function(){
return _c6.apply(null,[this].concat($A(arguments)));
};
}};
Element.Methods={visible:function(_c7){
return $(_c7).style.display!="none";
},toggle:function(_c8){
_c8=$(_c8);
Element[Element.visible(_c8)?"hide":"show"](_c8);
return _c8;
},hide:function(_c9){
$(_c9).style.display="none";
return _c9;
},show:function(_ca){
$(_ca).style.display="";
return _ca;
},remove:function(_cb){
_cb=$(_cb);
_cb.parentNode.removeChild(_cb);
return _cb;
},update:function(_cc,_cd){
_cd=typeof _cd=="undefined"?"":_cd.toString();
$(_cc).innerHTML=_cd.stripScripts();
setTimeout(function(){
_cd.evalScripts();
},10);
return _cc;
},replace:function(_ce,_cf){
_ce=$(_ce);
_cf=typeof _cf=="undefined"?"":_cf.toString();
if(_ce.outerHTML){
_ce.outerHTML=_cf.stripScripts();
}else{
var _d0=_ce.ownerDocument.createRange();
_d0.selectNodeContents(_ce);
_ce.parentNode.replaceChild(_d0.createContextualFragment(_cf.stripScripts()),_ce);
}
setTimeout(function(){
_cf.evalScripts();
},10);
return _ce;
},inspect:function(_d1){
_d1=$(_d1);
var _d2="<"+_d1.tagName.toLowerCase();
$H({"id":"id","className":"class"}).each(function(_d3){
var _d4=_d3.first(),attribute=_d3.last();
var _d5=(_d1[_d4]||"").toString();
if(_d5){
_d2+=" "+attribute+"="+_d5.inspect(true);
}
});
return _d2+">";
},recursivelyCollect:function(_d6,_d7){
_d6=$(_d6);
var _d8=[];
while(_d6=_d6[_d7]){
if(_d6.nodeType==1){
_d8.push(Element.extend(_d6));
}
}
return _d8;
},ancestors:function(_d9){
return $(_d9).recursivelyCollect("parentNode");
},descendants:function(_da){
return $A($(_da).getElementsByTagName("*"));
},immediateDescendants:function(_db){
if(!(_db=$(_db).firstChild)){
return [];
}
while(_db&&_db.nodeType!=1){
_db=_db.nextSibling;
}
if(_db){
return [_db].concat($(_db).nextSiblings());
}
return [];
},previousSiblings:function(_dc){
return $(_dc).recursivelyCollect("previousSibling");
},nextSiblings:function(_dd){
return $(_dd).recursivelyCollect("nextSibling");
},siblings:function(_de){
_de=$(_de);
return _de.previousSiblings().reverse().concat(_de.nextSiblings());
},match:function(_df,_e0){
if(typeof _e0=="string"){
_e0=new Selector(_e0);
}
return _e0.match($(_df));
},up:function(_e1,_e2,_e3){
return Selector.findElement($(_e1).ancestors(),_e2,_e3);
},down:function(_e4,_e5,_e6){
return Selector.findElement($(_e4).descendants(),_e5,_e6);
},previous:function(_e7,_e8,_e9){
return Selector.findElement($(_e7).previousSiblings(),_e8,_e9);
},next:function(_ea,_eb,_ec){
return Selector.findElement($(_ea).nextSiblings(),_eb,_ec);
},getElementsBySelector:function(){
var _ed=$A(arguments),element=$(_ed.shift());
return Selector.findChildElements(element,_ed);
},getElementsByClassName:function(_ee,_ef){
return document.getElementsByClassName(_ef,_ee);
},readAttribute:function(_f0,_f1){
_f0=$(_f0);
if(document.all&&!window.opera){
var t=Element._attributeTranslations;
if(t.values[_f1]){
return t.values[_f1](_f0,_f1);
}
if(t.names[_f1]){
_f1=t.names[_f1];
}
var _f3=_f0.attributes[_f1];
if(_f3){
return _f3.nodeValue;
}
}
return _f0.getAttribute(_f1);
},getHeight:function(_f4){
return $(_f4).getDimensions().height;
},getWidth:function(_f5){
return $(_f5).getDimensions().width;
},classNames:function(_f6){
return new Element.ClassNames(_f6);
},hasClassName:function(_f7,_f8){
if(!(_f7=$(_f7))){
return;
}
var _f9=_f7.className;
if(_f9.length==0){
return false;
}
if(_f9==_f8||_f9.match(new RegExp("(^|\\s)"+_f8+"(\\s|$)"))){
return true;
}
return false;
},addClassName:function(_fa,_fb){
if(!(_fa=$(_fa))){
return;
}
Element.classNames(_fa).add(_fb);
return _fa;
},removeClassName:function(_fc,_fd){
if(!(_fc=$(_fc))){
return;
}
Element.classNames(_fc).remove(_fd);
return _fc;
},toggleClassName:function(_fe,_ff){
if(!(_fe=$(_fe))){
return;
}
Element.classNames(_fe)[_fe.hasClassName(_ff)?"remove":"add"](_ff);
return _fe;
},observe:function(){
Event.observe.apply(Event,arguments);
return $A(arguments).first();
},stopObserving:function(){
Event.stopObserving.apply(Event,arguments);
return $A(arguments).first();
},cleanWhitespace:function(_100){
_100=$(_100);
var node=_100.firstChild;
while(node){
var _102=node.nextSibling;
if(node.nodeType==3&&!/\S/.test(node.nodeValue)){
_100.removeChild(node);
}
node=_102;
}
return _100;
},empty:function(_103){
return $(_103).innerHTML.match(/^\s*$/);
},descendantOf:function(_104,_105){
_104=$(_104),_105=$(_105);
while(_104=_104.parentNode){
if(_104==_105){
return true;
}
}
return false;
},scrollTo:function(_106){
_106=$(_106);
var pos=Position.cumulativeOffset(_106);
window.scrollTo(pos[0],pos[1]);
return _106;
},getStyle:function(_108,_109){
_108=$(_108);
if(["float","cssFloat"].include(_109)){
_109=(typeof _108.style.styleFloat!="undefined"?"styleFloat":"cssFloat");
}
_109=_109.camelize();
var _10a=_108.style[_109];
if(!_10a){
if(document.defaultView&&document.defaultView.getComputedStyle){
var css=document.defaultView.getComputedStyle(_108,null);
_10a=css?css[_109]:null;
}else{
if(_108.currentStyle){
_10a=_108.currentStyle[_109];
}
}
}
if((_10a=="auto")&&["width","height"].include(_109)&&(_108.getStyle("display")!="none")){
_10a=_108["offset"+_109.capitalize()]+"px";
}
if(window.opera&&["left","top","right","bottom"].include(_109)){
if(Element.getStyle(_108,"position")=="static"){
_10a="auto";
}
}
if(_109=="opacity"){
if(_10a){
return parseFloat(_10a);
}
if(_10a=(_108.getStyle("filter")||"").match(/alpha\(opacity=(.*)\)/)){
if(_10a[1]){
return parseFloat(_10a[1])/100;
}
}
return 1;
}
return _10a=="auto"?null:_10a;
},setStyle:function(_10c,_10d){
_10c=$(_10c);
for(var name in _10d){
var _10f=_10d[name];
if(name=="opacity"){
if(_10f==1){
_10f=(/Gecko/.test(navigator.userAgent)&&!/Konqueror|Safari|KHTML/.test(navigator.userAgent))?0.999999:1;
if(/MSIE/.test(navigator.userAgent)&&!window.opera){
_10c.style.filter=_10c.getStyle("filter").replace(/alpha\([^\)]*\)/gi,"");
}
}else{
if(_10f===""){
if(/MSIE/.test(navigator.userAgent)&&!window.opera){
_10c.style.filter=_10c.getStyle("filter").replace(/alpha\([^\)]*\)/gi,"");
}
}else{
if(_10f<0.00001){
_10f=0;
}
if(/MSIE/.test(navigator.userAgent)&&!window.opera){
_10c.style.filter=_10c.getStyle("filter").replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+_10f*100+")";
}
}
}
}else{
if(["float","cssFloat"].include(name)){
name=(typeof _10c.style.styleFloat!="undefined")?"styleFloat":"cssFloat";
}
}
_10c.style[name.camelize()]=_10f;
}
return _10c;
},getDimensions:function(_110){
_110=$(_110);
var _111=$(_110).getStyle("display");
if(_111!="none"&&_111!=null){
return {width:_110.offsetWidth,height:_110.offsetHeight};
}
var els=_110.style;
var _113=els.visibility;
var _114=els.position;
var _115=els.display;
els.visibility="hidden";
els.position="absolute";
els.display="block";
var _116=_110.clientWidth;
var _117=_110.clientHeight;
els.display=_115;
els.position=_114;
els.visibility=_113;
return {width:_116,height:_117};
},makePositioned:function(_118){
_118=$(_118);
var pos=Element.getStyle(_118,"position");
if(pos=="static"||!pos){
_118._madePositioned=true;
_118.style.position="relative";
if(window.opera){
_118.style.top=0;
_118.style.left=0;
}
}
return _118;
},undoPositioned:function(_11a){
_11a=$(_11a);
if(_11a._madePositioned){
_11a._madePositioned=undefined;
_11a.style.position=_11a.style.top=_11a.style.left=_11a.style.bottom=_11a.style.right="";
}
return _11a;
},makeClipping:function(_11b){
_11b=$(_11b);
if(_11b._overflow){
return _11b;
}
_11b._overflow=_11b.style.overflow||"auto";
if((Element.getStyle(_11b,"overflow")||"visible")!="hidden"){
_11b.style.overflow="hidden";
}
return _11b;
},undoClipping:function(_11c){
_11c=$(_11c);
if(!_11c._overflow){
return _11c;
}
_11c.style.overflow=_11c._overflow=="auto"?"":_11c._overflow;
_11c._overflow=null;
return _11c;
}};
Object.extend(Element.Methods,{childOf:Element.Methods.descendantOf});
Element._attributeTranslations={};
Element._attributeTranslations.names={colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",datetime:"dateTime",accesskey:"accessKey",tabindex:"tabIndex",enctype:"encType",maxlength:"maxLength",readonly:"readOnly",longdesc:"longDesc"};
Element._attributeTranslations.values={_getAttr:function(_11d,_11e){
return _11d.getAttribute(_11e,2);
},_flag:function(_11f,_120){
return $(_11f).hasAttribute(_120)?_120:null;
},style:function(_121){
return _121.style.cssText.toLowerCase();
},title:function(_122){
var node=_122.getAttributeNode("title");
return node.specified?node.nodeValue:null;
}};
Object.extend(Element._attributeTranslations.values,{href:Element._attributeTranslations.values._getAttr,src:Element._attributeTranslations.values._getAttr,disabled:Element._attributeTranslations.values._flag,checked:Element._attributeTranslations.values._flag,readonly:Element._attributeTranslations.values._flag,multiple:Element._attributeTranslations.values._flag});
Element.Methods.Simulated={hasAttribute:function(_124,_125){
var t=Element._attributeTranslations;
_125=t.names[_125]||_125;
return $(_124).getAttributeNode(_125).specified;
}};
Object.extend(Element,Element.Methods);
var _nativeExtensions=false;
if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){
["","Form","Input","TextArea","Select"].each(function(tag){
var _128="HTML"+tag+"Element";
if(window[_128]){
return;
}
var _129=window[_128]={};
_129.prototype=document.createElement(tag?tag.toLowerCase():"div").__proto__;
});
}
Element.addMethods=function(_12a){
Object.extend(Element.Methods,_12a||{});
function copy(_12b,_12c,_12d){
_12d=_12d||false;
var _12e=Element.extend.cache;
for(var _12f in _12b){
var _130=_12b[_12f];
if(!_12d||!(_12f in _12c)){
_12c[_12f]=_12e.findOrStore(_130);
}
}
}
if(typeof HTMLElement!="undefined"){
copy(Element.Methods,HTMLElement.prototype);
copy(Element.Methods.Simulated,HTMLElement.prototype,true);
copy(Form.Methods,HTMLFormElement.prototype);
[HTMLInputElement,HTMLTextAreaElement,HTMLSelectElement].each(function(_131){
copy(Form.Element.Methods,_131.prototype);
});
_nativeExtensions=true;
}
};
var Toggle=new Object();
Toggle.display=Element.toggle;
Element.ClassNames=Class.create();
Element.ClassNames.prototype={initialize:function(_132){
this.element=$(_132);
},_each:function(_133){
this.element.className.split(/\s+/).select(function(name){
return name.length>0;
})._each(_133);
},set:function(_135){
this.element.className=_135;
},add:function(_136){
if(this.include(_136)){
return;
}
this.set($A(this).concat(_136).join(" "));
},remove:function(_137){
if(!this.include(_137)){
return;
}
this.set($A(this).without(_137).join(" "));
},toString:function(){
return $A(this).join(" ");
}};
Object.extend(Element.ClassNames.prototype,Enumerable);
var Selector=Class.create();
Selector.prototype={initialize:function(_138){
this.params={classNames:[]};
this.expression=_138.toString().strip();
this.parseExpression();
this.compileMatcher();
},parseExpression:function(){
function abort(_139){
throw "Parse error in selector: "+_139;
}
if(this.expression==""){
abort("empty expression");
}
var _13a=this.params,expr=this.expression,match,modifier,clause,rest;
while(match=expr.match(/^(.*)\[([a-z0-9_:-]+?)(?:([~\|!]?=)(?:"([^"]*)"|([^\]\s]*)))?\]$/i)){
_13a.attributes=_13a.attributes||[];
_13a.attributes.push({name:match[2],operator:match[3],value:match[4]||match[5]||""});
expr=match[1];
}
if(expr=="*"){
return this.params.wildcard=true;
}
while(match=expr.match(/^([^a-z0-9_-])?([a-z0-9_-]+)(.*)/i)){
modifier=match[1],clause=match[2],rest=match[3];
switch(modifier){
case "#":
_13a.id=clause;
break;
case ".":
_13a.classNames.push(clause);
break;
case "":
case undefined:
_13a.tagName=clause.toUpperCase();
break;
default:
abort(expr.inspect());
}
expr=rest;
}
if(expr.length>0){
abort(expr.inspect());
}
},buildMatchExpression:function(){
var _13b=this.params,conditions=[],clause;
if(_13b.wildcard){
conditions.push("true");
}
if(clause=_13b.id){
conditions.push("element.readAttribute(\"id\") == "+clause.inspect());
}
if(clause=_13b.tagName){
conditions.push("element.tagName.toUpperCase() == "+clause.inspect());
}
if((clause=_13b.classNames).length>0){
for(var i=0,length=clause.length;i<length;i++){
conditions.push("element.hasClassName("+clause[i].inspect()+")");
}
}
if(clause=_13b.attributes){
clause.each(function(_13d){
var _13e="element.readAttribute("+_13d.name.inspect()+")";
var _13f=function(_140){
return _13e+" && "+_13e+".split("+_140.inspect()+")";
};
switch(_13d.operator){
case "=":
conditions.push(_13e+" == "+_13d.value.inspect());
break;
case "~=":
conditions.push(_13f(" ")+".include("+_13d.value.inspect()+")");
break;
case "|=":
conditions.push(_13f("-")+".first().toUpperCase() == "+_13d.value.toUpperCase().inspect());
break;
case "!=":
conditions.push(_13e+" != "+_13d.value.inspect());
break;
case "":
case undefined:
conditions.push("element.hasAttribute("+_13d.name.inspect()+")");
break;
default:
throw "Unknown operator "+_13d.operator+" in selector";
}
});
}
return conditions.join(" && ");
},compileMatcher:function(){
this.match=new Function("element","if (!element.tagName) return false;       element = $(element);       return "+this.buildMatchExpression());
},findElements:function(_141){
var _142;
if(_142=$(this.params.id)){
if(this.match(_142)){
if(!_141||Element.childOf(_142,_141)){
return [_142];
}
}
}
_141=(_141||document).getElementsByTagName(this.params.tagName||"*");
var _143=[];
for(var i=0,length=_141.length;i<length;i++){
if(this.match(_142=_141[i])){
_143.push(Element.extend(_142));
}
}
return _143;
},toString:function(){
return this.expression;
}};
Object.extend(Selector,{matchElements:function(_145,_146){
var _147=new Selector(_146);
return _145.select(_147.match.bind(_147)).map(Element.extend);
},findElement:function(_148,_149,_14a){
if(typeof _149=="number"){
_14a=_149,_149=false;
}
return Selector.matchElements(_148,_149||"*")[_14a||0];
},findChildElements:function(_14b,_14c){
return _14c.map(function(_14d){
return _14d.match(/[^\s"]+(?:"[^"]*"[^\s"]+)*/g).inject([null],function(_14e,expr){
var _150=new Selector(expr);
return _14e.inject([],function(_151,_152){
return _151.concat(_150.findElements(_152||_14b));
});
});
}).flatten();
}});
function $$(){
return Selector.findChildElements(document,$A(arguments));
}
var Form={reset:function(form){
$(form).reset();
return form;
},serializeElements:function(_154,_155){
var data=_154.inject({},function(_157,_158){
if(!_158.disabled&&_158.name){
var key=_158.name,value=$(_158).getValue();
if(value!=undefined){
if(_157[key]){
if(_157[key].constructor!=Array){
_157[key]=[_157[key]];
}
_157[key].push(value);
}else{
_157[key]=value;
}
}
}
return _157;
});
return _155?data:Hash.toQueryString(data);
}};
Form.Methods={serialize:function(form,_15b){
return Form.serializeElements(Form.getElements(form),_15b);
},getElements:function(form){
return $A($(form).getElementsByTagName("*")).inject([],function(_15d,_15e){
if(Form.Element.Serializers[_15e.tagName.toLowerCase()]){
_15d.push(Element.extend(_15e));
}
return _15d;
});
},getInputs:function(form,_160,name){
form=$(form);
var _162=form.getElementsByTagName("input");
if(!_160&&!name){
return $A(_162).map(Element.extend);
}
for(var i=0,matchingInputs=[],length=_162.length;i<length;i++){
var _164=_162[i];
if((_160&&_164.type!=_160)||(name&&_164.name!=name)){
continue;
}
matchingInputs.push(Element.extend(_164));
}
return matchingInputs;
},disable:function(form){
form=$(form);
form.getElements().each(function(_166){
_166.blur();
_166.disabled="true";
});
return form;
},enable:function(form){
form=$(form);
form.getElements().each(function(_168){
_168.disabled="";
});
return form;
},findFirstElement:function(form){
return $(form).getElements().find(function(_16a){
return _16a.type!="hidden"&&!_16a.disabled&&["input","select","textarea"].include(_16a.tagName.toLowerCase());
});
},focusFirstElement:function(form){
form=$(form);
form.findFirstElement().activate();
return form;
}};
Object.extend(Form,Form.Methods);
Form.Element={focus:function(_16c){
$(_16c).focus();
return _16c;
},select:function(_16d){
$(_16d).select();
return _16d;
}};
Form.Element.Methods={serialize:function(_16e){
_16e=$(_16e);
if(!_16e.disabled&&_16e.name){
var _16f=_16e.getValue();
if(_16f!=undefined){
var pair={};
pair[_16e.name]=_16f;
return Hash.toQueryString(pair);
}
}
return "";
},getValue:function(_171){
_171=$(_171);
var _172=_171.tagName.toLowerCase();
return Form.Element.Serializers[_172](_171);
},clear:function(_173){
$(_173).value="";
return _173;
},present:function(_174){
return $(_174).value!="";
},activate:function(_175){
_175=$(_175);
_175.focus();
if(_175.select&&(_175.tagName.toLowerCase()!="input"||!["button","reset","submit"].include(_175.type))){
_175.select();
}
return _175;
},disable:function(_176){
_176=$(_176);
_176.disabled=true;
return _176;
},enable:function(_177){
_177=$(_177);
_177.blur();
_177.disabled=false;
return _177;
}};
Object.extend(Form.Element,Form.Element.Methods);
var Field=Form.Element;
var $F=Form.Element.getValue;
Form.Element.Serializers={input:function(_178){
switch(_178.type.toLowerCase()){
case "checkbox":
case "radio":
return Form.Element.Serializers.inputSelector(_178);
default:
return Form.Element.Serializers.textarea(_178);
}
},inputSelector:function(_179){
return _179.checked?_179.value:null;
},textarea:function(_17a){
return _17a.value;
},select:function(_17b){
return this[_17b.type=="select-one"?"selectOne":"selectMany"](_17b);
},selectOne:function(_17c){
var _17d=_17c.selectedIndex;
return _17d>=0?this.optionValue(_17c.options[_17d]):null;
},selectMany:function(_17e){
var _17f,length=_17e.length;
if(!length){
return null;
}
for(var i=0,_17f=[];i<length;i++){
var opt=_17e.options[i];
if(opt.selected){
_17f.push(this.optionValue(opt));
}
}
return _17f;
},optionValue:function(opt){
return Element.extend(opt).hasAttribute("value")?opt.value:opt.text;
}};
Abstract.TimedObserver=function(){
};
Abstract.TimedObserver.prototype={initialize:function(_183,_184,_185){
this.frequency=_184;
this.element=$(_183);
this.callback=_185;
this.lastValue=this.getValue();
this.registerCallback();
},registerCallback:function(){
setInterval(this.onTimerEvent.bind(this),this.frequency*1000);
},onTimerEvent:function(){
var _186=this.getValue();
var _187=("string"==typeof this.lastValue&&"string"==typeof _186?this.lastValue!=_186:String(this.lastValue)!=String(_186));
if(_187){
this.callback(this.element,_186);
this.lastValue=_186;
}
}};
Form.Element.Observer=Class.create();
Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){
return Form.Element.getValue(this.element);
}});
Form.Observer=Class.create();
Form.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{getValue:function(){
return Form.serialize(this.element);
}});
Abstract.EventObserver=function(){
};
Abstract.EventObserver.prototype={initialize:function(_188,_189){
this.element=$(_188);
this.callback=_189;
this.lastValue=this.getValue();
if(this.element.tagName.toLowerCase()=="form"){
this.registerFormCallbacks();
}else{
this.registerCallback(this.element);
}
},onElementEvent:function(){
var _18a=this.getValue();
if(this.lastValue!=_18a){
this.callback(this.element,_18a);
this.lastValue=_18a;
}
},registerFormCallbacks:function(){
Form.getElements(this.element).each(this.registerCallback.bind(this));
},registerCallback:function(_18b){
if(_18b.type){
switch(_18b.type.toLowerCase()){
case "checkbox":
case "radio":
Event.observe(_18b,"click",this.onElementEvent.bind(this));
break;
default:
Event.observe(_18b,"change",this.onElementEvent.bind(this));
break;
}
}
}};
Form.Element.EventObserver=Class.create();
Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){
return Form.Element.getValue(this.element);
}});
Form.EventObserver=Class.create();
Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{getValue:function(){
return Form.serialize(this.element);
}});
if(!window.Event){
var Event=new Object();
}
Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,element:function(_18c){
return _18c.target||_18c.srcElement;
},isLeftClick:function(_18d){
return (((_18d.which)&&(_18d.which==1))||((_18d.button)&&(_18d.button==1)));
},pointerX:function(_18e){
return _18e.pageX||(_18e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));
},pointerY:function(_18f){
return _18f.pageY||(_18f.clientY+(document.documentElement.scrollTop||document.body.scrollTop));
},stop:function(_190){
if(_190.preventDefault){
_190.preventDefault();
_190.stopPropagation();
}else{
_190.returnValue=false;
_190.cancelBubble=true;
}
},findElement:function(_191,_192){
var _193=Event.element(_191);
while(_193.parentNode&&(!_193.tagName||(_193.tagName.toUpperCase()!=_192.toUpperCase()))){
_193=_193.parentNode;
}
return _193;
},observers:false,_observeAndCache:function(_194,name,_196,_197){
if(!this.observers){
this.observers=[];
}
if(_194.addEventListener){
this.observers.push([_194,name,_196,_197]);
_194.addEventListener(name,_196,_197);
}else{
if(_194.attachEvent){
this.observers.push([_194,name,_196,_197]);
_194.attachEvent("on"+name,_196);
}
}
},unloadCache:function(){
if(!Event.observers){
return;
}
for(var i=0,length=Event.observers.length;i<length;i++){
Event.stopObserving.apply(this,Event.observers[i]);
Event.observers[i][0]=null;
}
Event.observers=false;
},observe:function(_199,name,_19b,_19c){
_199=$(_199);
_19c=_19c||false;
if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_199.attachEvent)){
name="keydown";
}
Event._observeAndCache(_199,name,_19b,_19c);
},stopObserving:function(_19d,name,_19f,_1a0){
_19d=$(_19d);
_1a0=_1a0||false;
if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_19d.detachEvent)){
name="keydown";
}
if(_19d.removeEventListener){
_19d.removeEventListener(name,_19f,_1a0);
}else{
if(_19d.detachEvent){
try{
_19d.detachEvent("on"+name,_19f);
}
catch(e){
}
}
}
}});
if(navigator.appVersion.match(/\bMSIE\b/)){
Event.observe(window,"unload",Event.unloadCache,false);
}
var Position={includeScrollOffsets:false,prepare:function(){
this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;
this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
},realOffset:function(_1a1){
var _1a2=0,valueL=0;
do{
_1a2+=_1a1.scrollTop||0;
valueL+=_1a1.scrollLeft||0;
_1a1=_1a1.parentNode;
}while(_1a1);
return [valueL,_1a2];
},cumulativeOffset:function(_1a3){
var _1a4=0,valueL=0;
do{
_1a4+=_1a3.offsetTop||0;
valueL+=_1a3.offsetLeft||0;
_1a3=_1a3.offsetParent;
}while(_1a3);
return [valueL,_1a4];
},positionedOffset:function(_1a5){
var _1a6=0,valueL=0;
do{
_1a6+=_1a5.offsetTop||0;
valueL+=_1a5.offsetLeft||0;
_1a5=_1a5.offsetParent;
if(_1a5){
if(_1a5.tagName=="BODY"){
break;
}
var p=Element.getStyle(_1a5,"position");
if(p=="relative"||p=="absolute"){
break;
}
}
}while(_1a5);
return [valueL,_1a6];
},offsetParent:function(_1a8){
if(_1a8.offsetParent){
return _1a8.offsetParent;
}
if(_1a8==document.body){
return _1a8;
}
while((_1a8=_1a8.parentNode)&&_1a8!=document.body){
if(Element.getStyle(_1a8,"position")!="static"){
return _1a8;
}
}
return document.body;
},within:function(_1a9,x,y){
if(this.includeScrollOffsets){
return this.withinIncludingScrolloffsets(_1a9,x,y);
}
this.xcomp=x;
this.ycomp=y;
this.offset=this.cumulativeOffset(_1a9);
return (y>=this.offset[1]&&y<this.offset[1]+_1a9.offsetHeight&&x>=this.offset[0]&&x<this.offset[0]+_1a9.offsetWidth);
},withinIncludingScrolloffsets:function(_1ac,x,y){
var _1af=this.realOffset(_1ac);
this.xcomp=x+_1af[0]-this.deltaX;
this.ycomp=y+_1af[1]-this.deltaY;
this.offset=this.cumulativeOffset(_1ac);
return (this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+_1ac.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+_1ac.offsetWidth);
},overlap:function(mode,_1b1){
if(!mode){
return 0;
}
if(mode=="vertical"){
return ((this.offset[1]+_1b1.offsetHeight)-this.ycomp)/_1b1.offsetHeight;
}
if(mode=="horizontal"){
return ((this.offset[0]+_1b1.offsetWidth)-this.xcomp)/_1b1.offsetWidth;
}
},page:function(_1b2){
var _1b3=0,valueL=0;
var _1b4=_1b2;
do{
_1b3+=_1b4.offsetTop||0;
valueL+=_1b4.offsetLeft||0;
if(_1b4.offsetParent==document.body){
if(Element.getStyle(_1b4,"position")=="absolute"){
break;
}
}
}while(_1b4=_1b4.offsetParent);
_1b4=_1b2;
do{
if(!window.opera||_1b4.tagName=="BODY"){
_1b3-=_1b4.scrollTop||0;
valueL-=_1b4.scrollLeft||0;
}
}while(_1b4=_1b4.parentNode);
return [valueL,_1b3];
},clone:function(_1b5,_1b6){
var _1b7=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});
_1b5=$(_1b5);
var p=Position.page(_1b5);
_1b6=$(_1b6);
var _1b9=[0,0];
var _1ba=null;
if(Element.getStyle(_1b6,"position")=="absolute"){
_1ba=Position.offsetParent(_1b6);
_1b9=Position.page(_1ba);
}
if(_1ba==document.body){
_1b9[0]-=document.body.offsetLeft;
_1b9[1]-=document.body.offsetTop;
}
if(_1b7.setLeft){
_1b6.style.left=(p[0]-_1b9[0]+_1b7.offsetLeft)+"px";
}
if(_1b7.setTop){
_1b6.style.top=(p[1]-_1b9[1]+_1b7.offsetTop)+"px";
}
if(_1b7.setWidth){
_1b6.style.width=_1b5.offsetWidth+"px";
}
if(_1b7.setHeight){
_1b6.style.height=_1b5.offsetHeight+"px";
}
},absolutize:function(_1bb){
_1bb=$(_1bb);
if(_1bb.style.position=="absolute"){
return;
}
Position.prepare();
var _1bc=Position.positionedOffset(_1bb);
var top=_1bc[1];
var left=_1bc[0];
var _1bf=_1bb.clientWidth;
var _1c0=_1bb.clientHeight;
_1bb._originalLeft=left-parseFloat(_1bb.style.left||0);
_1bb._originalTop=top-parseFloat(_1bb.style.top||0);
_1bb._originalWidth=_1bb.style.width;
_1bb._originalHeight=_1bb.style.height;
_1bb.style.position="absolute";
_1bb.style.top=top+"px";
_1bb.style.left=left+"px";
_1bb.style.width=_1bf+"px";
_1bb.style.height=_1c0+"px";
},relativize:function(_1c1){
_1c1=$(_1c1);
if(_1c1.style.position=="relative"){
return;
}
Position.prepare();
_1c1.style.position="relative";
var top=parseFloat(_1c1.style.top||0)-(_1c1._originalTop||0);
var left=parseFloat(_1c1.style.left||0)-(_1c1._originalLeft||0);
_1c1.style.top=top+"px";
_1c1.style.left=left+"px";
_1c1.style.height=_1c1._originalHeight;
_1c1.style.width=_1c1._originalWidth;
}};
if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){
Position.cumulativeOffset=function(_1c4){
var _1c5=0,valueL=0;
do{
_1c5+=_1c4.offsetTop||0;
valueL+=_1c4.offsetLeft||0;
if(_1c4.offsetParent==document.body){
if(Element.getStyle(_1c4,"position")=="absolute"){
break;
}
}
_1c4=_1c4.offsetParent;
}while(_1c4);
return [valueL,_1c5];
};
}
Element.addMethods();
var Effect={_elementDoesNotExistError:{name:"ElementDoesNotExistError",message:"The specified DOM element does not exist, but is required for this effect to operate"},tagifyText:function(_1c6){
if(typeof Builder=="undefined"){
throw ("Effect.tagifyText requires including script.aculo.us' builder.js library");
}
var _1c7="position:relative";
if(/MSIE/.test(navigator.userAgent)&&!window.opera){
_1c7+=";zoom:1";
}
_1c6=$(_1c6);
$A(_1c6.childNodes).each(function(_1c8){
if(_1c8.nodeType==3){
_1c8.nodeValue.toArray().each(function(_1c9){
_1c6.insertBefore(Builder.node("span",{style:_1c7},_1c9==" "?String.fromCharCode(160):_1c9),_1c8);
});
Element.remove(_1c8);
}
});
},multiple:function(_1ca,_1cb){
var _1cc;
if(((typeof _1ca=="object")||(typeof _1ca=="function"))&&(_1ca.length)){
_1cc=_1ca;
}else{
_1cc=$(_1ca).childNodes;
}
var _1cd=Object.extend({speed:0.1,delay:0},arguments[2]||{});
var _1ce=_1cd.delay;
$A(_1cc).each(function(_1cf,_1d0){
new _1cb(_1cf,Object.extend(_1cd,{delay:_1d0*_1cd.speed+_1ce}));
});
},PAIRS:{"slide":["SlideDown","SlideUp"],"blind":["BlindDown","BlindUp"],"appear":["Appear","Fade"]},toggle:function(_1d1,_1d2){
_1d1=$(_1d1);
_1d2=(_1d2||"appear").toLowerCase();
var _1d3=Object.extend({queue:{position:"end",scope:(_1d1.id||"global"),limit:1}},arguments[2]||{});
Effect[_1d1.visible()?Effect.PAIRS[_1d2][1]:Effect.PAIRS[_1d2][0]](_1d1,_1d3);
}};
var Effect2=Effect;
Effect.Transitions={linear:Prototype.K,sinoidal:function(pos){
return (-Math.cos(pos*Math.PI)/2)+0.5;
},reverse:function(pos){
return 1-pos;
},flicker:function(pos){
return ((-Math.cos(pos*Math.PI)/4)+0.75)+Math.random()/4;
},wobble:function(pos){
return (-Math.cos(pos*Math.PI*(9*pos))/2)+0.5;
},pulse:function(pos,_1d9){
_1d9=_1d9||5;
return (Math.round((pos%(1/_1d9))*_1d9)==0?((pos*_1d9*2)-Math.floor(pos*_1d9*2)):1-((pos*_1d9*2)-Math.floor(pos*_1d9*2)));
},none:function(pos){
return 0;
},full:function(pos){
return 1;
}};
Effect.ScopedQueue=Class.create();
Object.extend(Object.extend(Effect.ScopedQueue.prototype,Enumerable),{initialize:function(){
this.effects=[];
this.interval=null;
},_each:function(_1dc){
this.effects._each(_1dc);
},add:function(_1dd){
var _1de=new Date().getTime();
var _1df=(typeof _1dd.options.queue=="string")?_1dd.options.queue:_1dd.options.queue.position;
switch(_1df){
case "front":
this.effects.findAll(function(e){
return e.state=="idle";
}).each(function(e){
e.startOn+=_1dd.finishOn;
e.finishOn+=_1dd.finishOn;
});
break;
case "with-last":
_1de=this.effects.pluck("startOn").max()||_1de;
break;
case "end":
_1de=this.effects.pluck("finishOn").max()||_1de;
break;
}
_1dd.startOn+=_1de;
_1dd.finishOn+=_1de;
if(!_1dd.options.queue.limit||(this.effects.length<_1dd.options.queue.limit)){
this.effects.push(_1dd);
}
if(!this.interval){
this.interval=setInterval(this.loop.bind(this),15);
}
},remove:function(_1e2){
this.effects=this.effects.reject(function(e){
return e==_1e2;
});
if(this.effects.length==0){
clearInterval(this.interval);
this.interval=null;
}
},loop:function(){
var _1e4=new Date().getTime();
for(var i=0,len=this.effects.length;i<len;i++){
if(this.effects[i]){
this.effects[i].loop(_1e4);
}
}
}});
Effect.Queues={instances:$H(),get:function(_1e6){
if(typeof _1e6!="string"){
return _1e6;
}
if(!this.instances[_1e6]){
this.instances[_1e6]=new Effect.ScopedQueue();
}
return this.instances[_1e6];
}};
Effect.Queue=Effect.Queues.get("global");
Effect.DefaultOptions={transition:Effect.Transitions.sinoidal,duration:1,fps:60,sync:false,from:0,to:1,delay:0,queue:"parallel"};
Effect.Base=function(){
};
Effect.Base.prototype={position:null,start:function(_1e7){
this.options=Object.extend(Object.extend({},Effect.DefaultOptions),_1e7||{});
this.currentFrame=0;
this.state="idle";
this.startOn=this.options.delay*1000;
this.finishOn=this.startOn+(this.options.duration*1000);
this.event("beforeStart");
if(!this.options.sync){
Effect.Queues.get(typeof this.options.queue=="string"?"global":this.options.queue.scope).add(this);
}
},loop:function(_1e8){
if(_1e8>=this.startOn){
if(_1e8>=this.finishOn){
this.render(1);
this.cancel();
this.event("beforeFinish");
if(this.finish){
this.finish();
}
this.event("afterFinish");
return;
}
var pos=(_1e8-this.startOn)/(this.finishOn-this.startOn);
var _1ea=Math.round(pos*this.options.fps*this.options.duration);
if(_1ea>this.currentFrame){
this.render(pos);
this.currentFrame=_1ea;
}
}
},render:function(pos){
if(this.state=="idle"){
this.state="running";
this.event("beforeSetup");
if(this.setup){
this.setup();
}
this.event("afterSetup");
}
if(this.state=="running"){
if(this.options.transition){
pos=this.options.transition(pos);
}
pos*=(this.options.to-this.options.from);
pos+=this.options.from;
this.position=pos;
this.event("beforeUpdate");
if(this.update){
this.update(pos);
}
this.event("afterUpdate");
}
},cancel:function(){
if(!this.options.sync){
Effect.Queues.get(typeof this.options.queue=="string"?"global":this.options.queue.scope).remove(this);
}
this.state="finished";
},event:function(_1ec){
if(this.options[_1ec+"Internal"]){
this.options[_1ec+"Internal"](this);
}
if(this.options[_1ec]){
this.options[_1ec](this);
}
},inspect:function(){
var data=$H();
for(property in this){
if(typeof this[property]!="function"){
data[property]=this[property];
}
}
return "#<Effect:"+data.inspect()+",options:"+$H(this.options).inspect()+">";
}};
Effect.Parallel=Class.create();
Object.extend(Object.extend(Effect.Parallel.prototype,Effect.Base.prototype),{initialize:function(_1ee){
this.effects=_1ee||[];
this.start(arguments[1]);
},update:function(_1ef){
this.effects.invoke("render",_1ef);
},finish:function(_1f0){
this.effects.each(function(_1f1){
_1f1.render(1);
_1f1.cancel();
_1f1.event("beforeFinish");
if(_1f1.finish){
_1f1.finish(_1f0);
}
_1f1.event("afterFinish");
});
}});
Effect.Event=Class.create();
Object.extend(Object.extend(Effect.Event.prototype,Effect.Base.prototype),{initialize:function(){
var _1f2=Object.extend({duration:0},arguments[0]||{});
this.start(_1f2);
},update:Prototype.emptyFunction});
Effect.Opacity=Class.create();
Object.extend(Object.extend(Effect.Opacity.prototype,Effect.Base.prototype),{initialize:function(_1f3){
this.element=$(_1f3);
if(!this.element){
throw (Effect._elementDoesNotExistError);
}
if(/MSIE/.test(navigator.userAgent)&&!window.opera&&(!this.element.currentStyle.hasLayout)){
this.element.setStyle({zoom:1});
}
var _1f4=Object.extend({from:this.element.getOpacity()||0,to:1},arguments[1]||{});
this.start(_1f4);
},update:function(_1f5){
this.element.setOpacity(_1f5);
}});
Effect.Move=Class.create();
Object.extend(Object.extend(Effect.Move.prototype,Effect.Base.prototype),{initialize:function(_1f6){
this.element=$(_1f6);
if(!this.element){
throw (Effect._elementDoesNotExistError);
}
var _1f7=Object.extend({x:0,y:0,mode:"relative"},arguments[1]||{});
this.start(_1f7);
},setup:function(){
this.element.makePositioned();
this.originalLeft=parseFloat(this.element.getStyle("left")||"0");
this.originalTop=parseFloat(this.element.getStyle("top")||"0");
if(this.options.mode=="absolute"){
this.options.x=this.options.x-this.originalLeft;
this.options.y=this.options.y-this.originalTop;
}
},update:function(_1f8){
this.element.setStyle({left:Math.round(this.options.x*_1f8+this.originalLeft)+"px",top:Math.round(this.options.y*_1f8+this.originalTop)+"px"});
}});
Effect.MoveBy=function(_1f9,_1fa,_1fb){
return new Effect.Move(_1f9,Object.extend({x:_1fb,y:_1fa},arguments[3]||{}));
};
Effect.Scale=Class.create();
Object.extend(Object.extend(Effect.Scale.prototype,Effect.Base.prototype),{initialize:function(_1fc,_1fd){
this.element=$(_1fc);
if(!this.element){
throw (Effect._elementDoesNotExistError);
}
var _1fe=Object.extend({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:"box",scaleFrom:100,scaleTo:_1fd},arguments[2]||{});
this.start(_1fe);
},setup:function(){
this.restoreAfterFinish=this.options.restoreAfterFinish||false;
this.elementPositioning=this.element.getStyle("position");
this.originalStyle={};
["top","left","width","height","fontSize"].each(function(k){
this.originalStyle[k]=this.element.style[k];
}.bind(this));
this.originalTop=this.element.offsetTop;
this.originalLeft=this.element.offsetLeft;
var _200=this.element.getStyle("font-size")||"100%";
["em","px","%","pt"].each(function(_201){
if(_200.indexOf(_201)>0){
this.fontSize=parseFloat(_200);
this.fontSizeType=_201;
}
}.bind(this));
this.factor=(this.options.scaleTo-this.options.scaleFrom)/100;
this.dims=null;
if(this.options.scaleMode=="box"){
this.dims=[this.element.offsetHeight,this.element.offsetWidth];
}
if(/^content/.test(this.options.scaleMode)){
this.dims=[this.element.scrollHeight,this.element.scrollWidth];
}
if(!this.dims){
this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth];
}
},update:function(_202){
var _203=(this.options.scaleFrom/100)+(this.factor*_202);
if(this.options.scaleContent&&this.fontSize){
this.element.setStyle({fontSize:this.fontSize*_203+this.fontSizeType});
}
this.setDimensions(this.dims[0]*_203,this.dims[1]*_203);
},finish:function(_204){
if(this.restoreAfterFinish){
this.element.setStyle(this.originalStyle);
}
},setDimensions:function(_205,_206){
var d={};
if(this.options.scaleX){
d.width=Math.round(_206)+"px";
}
if(this.options.scaleY){
d.height=Math.round(_205)+"px";
}
if(this.options.scaleFromCenter){
var topd=(_205-this.dims[0])/2;
var _209=(_206-this.dims[1])/2;
if(this.elementPositioning=="absolute"){
if(this.options.scaleY){
d.top=this.originalTop-topd+"px";
}
if(this.options.scaleX){
d.left=this.originalLeft-_209+"px";
}
}else{
if(this.options.scaleY){
d.top=-topd+"px";
}
if(this.options.scaleX){
d.left=-_209+"px";
}
}
}
this.element.setStyle(d);
}});
Effect.Highlight=Class.create();
Object.extend(Object.extend(Effect.Highlight.prototype,Effect.Base.prototype),{initialize:function(_20a){
this.element=$(_20a);
if(!this.element){
throw (Effect._elementDoesNotExistError);
}
var _20b=Object.extend({startcolor:"#ffff99"},arguments[1]||{});
this.start(_20b);
},setup:function(){
if(this.element.getStyle("display")=="none"){
this.cancel();
return;
}
this.oldStyle={};
if(!this.options.keepBackgroundImage){
this.oldStyle.backgroundImage=this.element.getStyle("background-image");
this.element.setStyle({backgroundImage:"none"});
}
if(!this.options.endcolor){
this.options.endcolor=this.element.getStyle("background-color").parseColor("#ffffff");
}
if(!this.options.restorecolor){
this.options.restorecolor=this.element.getStyle("background-color");
}
this._base=$R(0,2).map(function(i){
return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16);
}.bind(this));
this._delta=$R(0,2).map(function(i){
return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i];
}.bind(this));
},update:function(_20e){
this.element.setStyle({backgroundColor:$R(0,2).inject("#",function(m,v,i){
return m+(Math.round(this._base[i]+(this._delta[i]*_20e)).toColorPart());
}.bind(this))});
},finish:function(){
this.element.setStyle(Object.extend(this.oldStyle,{backgroundColor:this.options.restorecolor}));
}});
Effect.ScrollTo=Class.create();
Object.extend(Object.extend(Effect.ScrollTo.prototype,Effect.Base.prototype),{initialize:function(_212){
this.element=$(_212);
this.start(arguments[1]||{});
},setup:function(){
Position.prepare();
var _213=Position.cumulativeOffset(this.element);
if(this.options.offset){
_213[1]+=this.options.offset;
}
var max=window.innerHeight?window.height-window.innerHeight:document.body.scrollHeight-(document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight);
this.scrollStart=Position.deltaY;
this.delta=(_213[1]>max?max:_213[1])-this.scrollStart;
},update:function(_215){
Position.prepare();
window.scrollTo(Position.deltaX,this.scrollStart+(_215*this.delta));
}});
Element.addMethods();
if (typeof Effect == 'undefined')
throw("accordion.js requires including script.aculo.us' effects.js library!");
var accordion = Class.create();
accordion.prototype = {showAccordion : null,currentAccordion : null,duration : null,effects : [],animating : false,initialize: function(container, options) {this.options = Object.extend({resizeSpeed : 8,classNames : {toggle : 'accordion_toggle',toggleActive : 'accordion_toggle_active',content : 'accordion_content'},defaultSize : {height : null,width : null},direction : 'vertical',onEvent : 'click'}, options || {});	this.duration = ((11-this.options.resizeSpeed)*0.15);var accordions = $$(container+' .'+this.options.classNames.toggle);accordions.each(function(accordion) {Event.observe(accordion, this.options.onEvent, this.activate.bind(this, accordion), false);accordion.onclick = function() {return false;};if (this.options.direction == 'horizontal') {var options = $H({width: '0px'});} else {var options = $H({height: '0px'});}options.merge({display: 'none'});this.currentAccordion = $(accordion.next(0)).setStyle(options);}.bind(this));},activate : function(accordion) {if (this.animating) {return false;}		this.effects = [];	this.currentAccordion = $(accordion.next(0));this.currentAccordion.setStyle({display: 'block'});		if (this.currentAccordion == this.showAccordion) {return false;}		this.currentAccordion.previous(0).addClassName(this.options.classNames.toggleActive);if (this.options.direction == 'horizontal') {var adjustments = $H({scaleX: true,scaleY: false});} else {var adjustments = $H({scaleX: false,scaleY: true});}var options = $H({sync: true,scaleFrom: 0,scaleContent: false,transition: Effect.Transitions.sinoidal,scaleMode: { originalHeight: this.options.defaultSize.height ? this.options.defaultSize.height : this.currentAccordion.scrollHeight,originalWidth: this.options.defaultSize.width ? this.options.defaultSize.width : this.currentAccordion.scrollWidth}});options.merge(adjustments);
this.effects.push(new Effect.Scale(this.currentAccordion, 100, options));if (this.showAccordion) {this.showAccordion.previous(0).removeClassName(this.options.classNames.toggleActive);		options = $H({sync: true,scaleContent: false,transition: Effect.Transitions.sinoidal});options.merge(adjustments);this.effects.push(new Effect.Scale(this.showAccordion, 0, options));}new Effect.Parallel(this.effects, {duration: this.duration, queue: {position: 'end', scope: 'accordionAnimation'},beforeStart: function() {this.animating = true;}.bind(this),afterFinish: function() {if (this.showAccordion) {this.showAccordion.setStyle({display: 'none'});			}this.showAccordion = this.currentAccordion;this.animating = false;}.bind(this)});}}
		Event.observe(window, 'load', loadAccordions, false);
		function loadAccordions() {
			var bottomAccordion = new accordion('#bottom_container');		
			// Open first one
			bottomAccordion.activate($$('#bottom_container .accordion_toggle')[0]);
		}


