

//---
//1-prototype.js
//---

var Prototype={Version:"1.5.0_rc1",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(Number.prototype,{toColorPart:function(){
var _11=this.toString(16);
if(this<16){
return "0"+_11;
}
return _11;
},succ:function(){
return this+1;
},times:function(_12){
$R(0,this,true).each(_12);
return this;
}});
var Try={these:function(){
var _13;
for(var i=0;i<arguments.length;i++){
var _15=arguments[i];
try{
_13=_15();
break;
}
catch(e){
}
}
return _13;
}};
var PeriodicalExecuter=Class.create();
PeriodicalExecuter.prototype={initialize:function(_16,_17){
this.callback=_16;
this.frequency=_17;
this.currentlyExecuting=false;
this.registerCallback();
},registerCallback:function(){
this.timer=setInterval(this.onTimerEvent.bind(this),this.frequency*1000);
},stop:function(){
if(!this.timer){
return;
}
clearInterval(this.timer);
this.timer=null;
},onTimerEvent:function(){
if(!this.currentlyExecuting){
try{
this.currentlyExecuting=true;
this.callback(this);
}
finally{
this.currentlyExecuting=false;
}
}
}};
Object.extend(String.prototype,{gsub:function(_18,_19){
var _1a="",source=this,match;
_19=arguments.callee.prepareReplacement(_19);
while(source.length>0){
if(match=source.match(_18)){
_1a+=source.slice(0,match.index);
_1a+=(_19(match)||"").toString();
source=source.slice(match.index+match[0].length);
}else{
_1a+=source,source="";
}
}
return _1a;
},sub:function(_1b,_1c,_1d){
_1c=this.gsub.prepareReplacement(_1c);
_1d=_1d===undefined?1:_1d;
return this.gsub(_1b,function(_1e){
if(--_1d<0){
return _1e[0];
}
return _1c(_1e);
});
},scan:function(_1f,_20){
this.gsub(_1f,_20);
return this;
},truncate:function(_21,_22){
_21=_21||30;
_22=_22===undefined?"...":_22;
return this.length>_21?this.slice(0,_21-_22.length)+_22: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 _23=new RegExp(Prototype.ScriptFragment,"img");
var _24=new RegExp(Prototype.ScriptFragment,"im");
return (this.match(_23)||[]).map(function(_25){
return (_25.match(_24)||["",""])[1];
});
},evalScripts:function(){
return this.extractScripts().map(function(_26){
return eval(_26);
});
},escapeHTML:function(){
var div=document.createElement("div");
var _28=document.createTextNode(this);
div.appendChild(_28);
return div.innerHTML;
},unescapeHTML:function(){
var div=document.createElement("div");
div.innerHTML=this.stripTags();
return div.childNodes[0]?div.childNodes[0].nodeValue:"";
},toQueryParams:function(){
var _2a=this.match(/^\??(.*)$/)[1].split("&");
return _2a.inject({},function(_2b,_2c){
var _2d=_2c.split("=");
var _2e=_2d[1]?decodeURIComponent(_2d[1]):undefined;
_2b[decodeURIComponent(_2d[0])]=_2e;
return _2b;
});
},toArray:function(){
return this.split("");
},camelize:function(){
var _2f=this.split("-");
if(_2f.length==1){
return _2f[0];
}
var _30=this.indexOf("-")==0?_2f[0].charAt(0).toUpperCase()+_2f[0].substring(1):_2f[0];
for(var i=1,len=_2f.length;i<len;i++){
var s=_2f[i];
_30+=s.charAt(0).toUpperCase()+s.substring(1);
}
return _30;
},inspect:function(_33){
var _34=this.replace(/\\/g,"\\\\");
if(_33){
return "\""+_34.replace(/"/g,"\\\"")+"\"";
}else{
return "'"+_34.replace(/'/g,"\\'")+"'";
}
}});
String.prototype.gsub.prepareReplacement=function(_35){
if(typeof _35=="function"){
return _35;
}
var _36=new Template(_35);
return function(_37){
return _36.evaluate(_37);
};
};
String.prototype.parseQuery=String.prototype.toQueryParams;
var Template=Class.create();
Template.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;
Template.prototype={initialize:function(_38,_39){
this.template=_38.toString();
this.pattern=_39||Template.Pattern;
},evaluate:function(_3a){
return this.template.gsub(this.pattern,function(_3b){
var _3c=_3b[1];
if(_3c=="\\"){
return _3b[2];
}
return _3c+(_3a[_3b[3]]||"").toString();
});
}};
var $break=new Object();
var $continue=new Object();
var Enumerable={each:function(_3d){
var _3e=0;
try{
this._each(function(_3f){
try{
_3d(_3f,_3e++);
}
catch(e){
if(e!=$continue){
throw e;
}
}
});
}
catch(e){
if(e!=$break){
throw e;
}
}
},all:function(_40){
var _41=true;
this.each(function(_42,_43){
_41=_41&&!!(_40||Prototype.K)(_42,_43);
if(!_41){
throw $break;
}
});
return _41;
},any:function(_44){
var _45=false;
this.each(function(_46,_47){
if(_45=!!(_44||Prototype.K)(_46,_47)){
throw $break;
}
});
return _45;
},collect:function(_48){
var _49=[];
this.each(function(_4a,_4b){
_49.push(_48(_4a,_4b));
});
return _49;
},detect:function(_4c){
var _4d;
this.each(function(_4e,_4f){
if(_4c(_4e,_4f)){
_4d=_4e;
throw $break;
}
});
return _4d;
},findAll:function(_50){
var _51=[];
this.each(function(_52,_53){
if(_50(_52,_53)){
_51.push(_52);
}
});
return _51;
},grep:function(_54,_55){
var _56=[];
this.each(function(_57,_58){
var _59=_57.toString();
if(_59.match(_54)){
_56.push((_55||Prototype.K)(_57,_58));
}
});
return _56;
},include:function(_5a){
var _5b=false;
this.each(function(_5c){
if(_5c==_5a){
_5b=true;
throw $break;
}
});
return _5b;
},inject:function(_5d,_5e){
this.each(function(_5f,_60){
_5d=_5e(_5d,_5f,_60);
});
return _5d;
},invoke:function(_61){
var _62=$A(arguments).slice(1);
return this.collect(function(_63){
return _63[_61].apply(_63,_62);
});
},max:function(_64){
var _65;
this.each(function(_66,_67){
_66=(_64||Prototype.K)(_66,_67);
if(_65==undefined||_66>=_65){
_65=_66;
}
});
return _65;
},min:function(_68){
var _69;
this.each(function(_6a,_6b){
_6a=(_68||Prototype.K)(_6a,_6b);
if(_69==undefined||_6a<_69){
_69=_6a;
}
});
return _69;
},partition:function(_6c){
var _6d=[],falses=[];
this.each(function(_6e,_6f){
((_6c||Prototype.K)(_6e,_6f)?_6d:falses).push(_6e);
});
return [_6d,falses];
},pluck:function(_70){
var _71=[];
this.each(function(_72,_73){
_71.push(_72[_70]);
});
return _71;
},reject:function(_74){
var _75=[];
this.each(function(_76,_77){
if(!_74(_76,_77)){
_75.push(_76);
}
});
return _75;
},sortBy:function(_78){
return this.collect(function(_79,_7a){
return {value:_79,criteria:_78(_79,_7a)};
}).sort(function(_7b,_7c){
var a=_7b.criteria,b=_7c.criteria;
return a<b?-1:a>b?1:0;
}).pluck("value");
},toArray:function(){
return this.collect(Prototype.K);
},zip:function(){
var _7e=Prototype.K,args=$A(arguments);
if(typeof args.last()=="function"){
_7e=args.pop();
}
var _7f=[this].concat(args).map($A);
return this.map(function(_80,_81){
return _7e(_7f.pluck(_81));
});
},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(_82){
if(!_82){
return [];
}
if(_82.toArray){
return _82.toArray();
}else{
var _83=[];
for(var i=0;i<_82.length;i++){
_83.push(_82[i]);
}
return _83;
}
};
Object.extend(Array.prototype,Enumerable);
if(!Array.prototype._reverse){
Array.prototype._reverse=Array.prototype.reverse;
}
Object.extend(Array.prototype,{_each:function(_85){
for(var i=0;i<this.length;i++){
_85(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(_87){
return _87!=undefined||_87!=null;
});
},flatten:function(){
return this.inject([],function(_88,_89){
return _88.concat(_89&&_89.constructor==Array?_89.flatten():[_89]);
});
},without:function(){
var _8a=$A(arguments);
return this.select(function(_8b){
return !_8a.include(_8b);
});
},indexOf:function(_8c){
for(var i=0;i<this.length;i++){
if(this[i]==_8c){
return i;
}
}
return -1;
},reverse:function(_8e){
return (_8e!==false?this:this.toArray())._reverse();
},reduce:function(){
return this.length>1?this:this[0];
},uniq:function(){
return this.inject([],function(_8f,_90){
return _8f.include(_90)?_8f:_8f.concat([_90]);
});
},inspect:function(){
return "["+this.map(Object.inspect).join(", ")+"]";
}});
var Hash={_each:function(_91){
for(var key in this){
var _93=this[key];
if(typeof _93=="function"){
continue;
}
var _94=[key,_93];
_94.key=key;
_94.value=_93;
_91(_94);
}
},keys:function(){
return this.pluck("key");
},values:function(){
return this.pluck("value");
},merge:function(_95){
return $H(_95).inject($H(this),function(_96,_97){
_96[_97.key]=_97.value;
return _96;
});
},toQueryString:function(){
return this.map(function(_98){
return _98.map(encodeURIComponent).join("=");
}).join("&");
},inspect:function(){
return "#<Hash:{"+this.map(function(_99){
return _99.map(Object.inspect).join(": ");
}).join(", ")+"}>";
}};
function $H(_9a){
var _9b=Object.extend({},_9a||{});
Object.extend(_9b,Enumerable);
Object.extend(_9b,Hash);
return _9b;
}
ObjectRange=Class.create();
Object.extend(ObjectRange.prototype,Enumerable);
Object.extend(ObjectRange.prototype,{initialize:function(_9c,end,_9e){
this.start=_9c;
this.end=end;
this.exclusive=_9e;
},_each:function(_9f){
var _a0=this.start;
while(this.include(_a0)){
_9f(_a0);
_a0=_a0.succ();
}
},include:function(_a1){
if(_a1<this.start){
return false;
}
if(this.exclusive){
return _a1<this.end;
}
return _a1<=this.end;
}});
var $R=function(_a2,end,_a4){
return new ObjectRange(_a2,end,_a4);
};
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(_a5){
this.responders._each(_a5);
},register:function(_a6){
if(!this.include(_a6)){
this.responders.push(_a6);
}
},unregister:function(_a7){
this.responders=this.responders.without(_a7);
},dispatch:function(_a8,_a9,_aa,_ab){
this.each(function(_ac){
if(_ac[_a8]&&typeof _ac[_a8]=="function"){
try{
_ac[_a8].apply(_ac,[_a9,_aa,_ab]);
}
catch(e){
}
}
});
}};
Object.extend(Ajax.Responders,Enumerable);
Ajax.Responders.register({onCreate:function(){
Ajax.activeRequestCount++;
},onComplete:function(){
Ajax.activeRequestCount--;
}});
Ajax.Base=function(){
};
Ajax.Base.prototype={setOptions:function(_ad){
this.options={method:"post",asynchronous:true,contentType:"application/x-www-form-urlencoded",parameters:""};
Object.extend(this.options,_ad||{});
},responseIsSuccess:function(){
return this.transport.status==undefined||this.transport.status==0||(this.transport.status>=200&&this.transport.status<300);
},responseIsFailure:function(){
return !this.responseIsSuccess();
}};
Ajax.Request=Class.create();
Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];
Ajax.Request.prototype=Object.extend(new Ajax.Base(),{initialize:function(url,_af){
this.transport=Ajax.getTransport();
this.setOptions(_af);
this.request(url);
},request:function(url){
var _b1=this.options.parameters||"";
if(_b1.length>0){
_b1+="&_=";
}
if(this.options.method!="get"&&this.options.method!="post"){
_b1+=(_b1.length>0?"&":"")+"_method="+this.options.method;
this.options.method="post";
}
try{
this.url=url;
if(this.options.method=="get"&&_b1.length>0){
this.url+=(this.url.match(/\?/)?"&":"?")+_b1;
}
Ajax.Responders.dispatch("onCreate",this,this.transport);
this.transport.open(this.options.method,this.url,this.options.asynchronous);
if(this.options.asynchronous){
setTimeout(function(){
this.respondToReadyState(1);
}.bind(this),10);
}
this.transport.onreadystatechange=this.onStateChange.bind(this);
this.setRequestHeaders();
var _b2=this.options.postBody?this.options.postBody:_b1;
this.transport.send(this.options.method=="post"?_b2:null);
if(!this.options.asynchronous&&this.transport.overrideMimeType){
this.onStateChange();
}
}
catch(e){
this.dispatchException(e);
}
},setRequestHeaders:function(){
var _b3=["X-Requested-With","XMLHttpRequest","X-Prototype-Version",Prototype.Version,"Accept","text/javascript, text/html, application/xml, text/xml, */*"];
if(this.options.method=="post"){
_b3.push("Content-type",this.options.contentType);
if(this.transport.overrideMimeType){
_b3.push("Connection","close");
}
}
if(this.options.requestHeaders){
_b3.push.apply(_b3,this.options.requestHeaders);
}
for(var i=0;i<_b3.length;i+=2){
this.transport.setRequestHeader(_b3[i],_b3[i+1]);
}
},onStateChange:function(){
var _b5=this.transport.readyState;
if(_b5!=1){
this.respondToReadyState(this.transport.readyState);
}
},header:function(_b6){
try{
return this.transport.getResponseHeader(_b6);
}
catch(e){
}
},evalJSON:function(){
try{
return eval("("+this.header("X-JSON")+")");
}
catch(e){
}
},evalResponse:function(){
try{
return eval(this.transport.responseText);
}
catch(e){
this.dispatchException(e);
}
},respondToReadyState:function(_b7){
var _b8=Ajax.Request.Events[_b7];
var _b9=this.transport,json=this.evalJSON();
if(_b8=="Complete"){
try{
(this.options["on"+this.transport.status]||this.options["on"+(this.responseIsSuccess()?"Success":"Failure")]||Prototype.emptyFunction)(_b9,json);
}
catch(e){
this.dispatchException(e);
}
if((this.header("Content-type")||"").match(/^text\/javascript/i)){
this.evalResponse();
}
}
try{
(this.options["on"+_b8]||Prototype.emptyFunction)(_b9,json);
Ajax.Responders.dispatch("on"+_b8,this,_b9,json);
}
catch(e){
this.dispatchException(e);
}
if(_b8=="Complete"){
this.transport.onreadystatechange=Prototype.emptyFunction;
}
},dispatchException:function(_ba){
(this.options.onException||Prototype.emptyFunction)(this,_ba);
Ajax.Responders.dispatch("onException",this,_ba);
}});
Ajax.Updater=Class.create();
Object.extend(Object.extend(Ajax.Updater.prototype,Ajax.Request.prototype),{initialize:function(_bb,url,_bd){
this.containers={success:_bb.success?$(_bb.success):$(_bb),failure:_bb.failure?$(_bb.failure):(_bb.success?null:$(_bb))};
this.transport=Ajax.getTransport();
this.setOptions(_bd);
var _be=this.options.onComplete||Prototype.emptyFunction;
this.options.onComplete=(function(_bf,_c0){
this.updateContent();
_be(_bf,_c0);
}).bind(this);
this.request(url);
},updateContent:function(){
var _c1=this.responseIsSuccess()?this.containers.success:this.containers.failure;
var _c2=this.transport.responseText;
if(!this.options.evalScripts){
_c2=_c2.stripScripts();
}
if(_c1){
if(this.options.insertion){
new this.options.insertion(_c1,_c2);
}else{
Element.update(_c1,_c2);
}
}
if(this.responseIsSuccess()){
if(this.onComplete){
setTimeout(this.onComplete.bind(this),10);
}
}
}});
Ajax.PeriodicalUpdater=Class.create();
Ajax.PeriodicalUpdater.prototype=Object.extend(new Ajax.Base(),{initialize:function(_c3,url,_c5){
this.setOptions(_c5);
this.onComplete=this.options.onComplete;
this.frequency=(this.options.frequency||2);
this.decay=(this.options.decay||1);
this.updater={};
this.container=_c3;
this.url=url;
this.start();
},start:function(){
this.options.onComplete=this.updateComplete.bind(this);
this.onTimerEvent();
},stop:function(){
this.updater.options.onComplete=undefined;
clearTimeout(this.timer);
(this.onComplete||Prototype.emptyFunction).apply(this,arguments);
},updateComplete:function(_c6){
if(this.options.decay){
this.decay=(_c6.responseText==this.lastText?this.decay*this.options.decay:1);
this.lastText=_c6.responseText;
}
this.timer=setTimeout(this.onTimerEvent.bind(this),this.decay*this.frequency*1000);
},onTimerEvent:function(){
this.updater=new Ajax.Updater(this.container,this.url,this.options);
}});
function $(){
var _c7=[],element;
for(var i=0;i<arguments.length;i++){
element=arguments[i];
if(typeof element=="string"){
element=document.getElementById(element);
}
_c7.push(Element.extend(element));
}
return _c7.reduce();
}
document.getElementsByClassName=function(_c9,_ca){
var _cb=($(_ca)||document.body).getElementsByTagName("*");
return $A(_cb).inject([],function(_cc,_cd){
if(_cd.className.match(new RegExp("(^|\\s)"+_c9+"(\\s|$)"))){
_cc.push(Element.extend(_cd));
}
return _cc;
});
};
if(!window.Element){
var Element=new Object();
}
Element.extend=function(_ce){
if(!_ce){
return;
}
if(_nativeExtensions||_ce.nodeType==3){
return _ce;
}
if(!_ce._extended&&_ce.tagName&&_ce!=window){
var _cf=Object.clone(Element.Methods),cache=Element.extend.cache;
if(_ce.tagName=="FORM"){
Object.extend(_cf,Form.Methods);
}
if(["INPUT","TEXTAREA","SELECT"].include(_ce.tagName)){
Object.extend(_cf,Form.Element.Methods);
}
for(var _d0 in _cf){
var _d1=_cf[_d0];
if(typeof _d1=="function"){
_ce[_d0]=cache.findOrStore(_d1);
}
}
}
_ce._extended=true;
return _ce;
};
Element.extend.cache={findOrStore:function(_d2){
return this[_d2]=this[_d2]||function(){
return _d2.apply(null,[this].concat($A(arguments)));
};
}};
Element.Methods={visible:function(_d3){
return $(_d3).style.display!="none";
},toggle:function(_d4){
_d4=$(_d4);
Element[Element.visible(_d4)?"hide":"show"](_d4);
return _d4;
},hide:function(_d5){
$(_d5).style.display="none";
return _d5;
},show:function(_d6){
$(_d6).style.display="";
return _d6;
},remove:function(_d7){
_d7=$(_d7);
_d7.parentNode.removeChild(_d7);
return _d7;
},update:function(_d8,_d9){
$(_d8).innerHTML=_d9.stripScripts();
setTimeout(function(){
_d9.evalScripts();
},10);
return _d8;
},replace:function(_da,_db){
_da=$(_da);
if(_da.outerHTML){
_da.outerHTML=_db.stripScripts();
}else{
var _dc=_da.ownerDocument.createRange();
_dc.selectNodeContents(_da);
_da.parentNode.replaceChild(_dc.createContextualFragment(_db.stripScripts()),_da);
}
setTimeout(function(){
_db.evalScripts();
},10);
return _da;
},inspect:function(_dd){
_dd=$(_dd);
var _de="<"+_dd.tagName.toLowerCase();
$H({"id":"id","className":"class"}).each(function(_df){
var _e0=_df.first(),attribute=_df.last();
var _e1=(_dd[_e0]||"").toString();
if(_e1){
_de+=" "+attribute+"="+_e1.inspect(true);
}
});
return _de+">";
},recursivelyCollect:function(_e2,_e3){
_e2=$(_e2);
var _e4=[];
while(_e2=_e2[_e3]){
if(_e2.nodeType==1){
_e4.push(Element.extend(_e2));
}
}
return _e4;
},ancestors:function(_e5){
return $(_e5).recursivelyCollect("parentNode");
},descendants:function(_e6){
_e6=$(_e6);
return $A(_e6.getElementsByTagName("*"));
},previousSiblings:function(_e7){
return $(_e7).recursivelyCollect("previousSibling");
},nextSiblings:function(_e8){
return $(_e8).recursivelyCollect("nextSibling");
},siblings:function(_e9){
_e9=$(_e9);
return _e9.previousSiblings().reverse().concat(_e9.nextSiblings());
},match:function(_ea,_eb){
_ea=$(_ea);
if(typeof _eb=="string"){
_eb=new Selector(_eb);
}
return _eb.match(_ea);
},up:function(_ec,_ed,_ee){
return Selector.findElement($(_ec).ancestors(),_ed,_ee);
},down:function(_ef,_f0,_f1){
return Selector.findElement($(_ef).descendants(),_f0,_f1);
},previous:function(_f2,_f3,_f4){
return Selector.findElement($(_f2).previousSiblings(),_f3,_f4);
},next:function(_f5,_f6,_f7){
return Selector.findElement($(_f5).nextSiblings(),_f6,_f7);
},getElementsBySelector:function(){
var _f8=$A(arguments),element=$(_f8.shift());
return Selector.findChildElements(element,_f8);
},getElementsByClassName:function(_f9,_fa){
_f9=$(_f9);
return document.getElementsByClassName(_fa,_f9);
},getHeight:function(_fb){
_fb=$(_fb);
return _fb.offsetHeight;
},classNames:function(_fc){
return new Element.ClassNames(_fc);
},hasClassName:function(_fd,_fe){
if(!(_fd=$(_fd))){
return;
}
return Element.classNames(_fd).include(_fe);
},addClassName:function(_ff,_100){
if(!(_ff=$(_ff))){
return;
}
Element.classNames(_ff).add(_100);
return _ff;
},removeClassName:function(_101,_102){
if(!(_101=$(_101))){
return;
}
Element.classNames(_101).remove(_102);
return _101;
},observe:function(){
Event.observe.apply(Event,arguments);
return $A(arguments).first();
},stopObserving:function(){
Event.stopObserving.apply(Event,arguments);
return $A(arguments).first();
},cleanWhitespace:function(_103){
_103=$(_103);
var node=_103.firstChild;
while(node){
var _105=node.nextSibling;
if(node.nodeType==3&&!/\S/.test(node.nodeValue)){
_103.removeChild(node);
}
node=_105;
}
return _103;
},empty:function(_106){
return $(_106).innerHTML.match(/^\s*$/);
},childOf:function(_107,_108){
_107=$(_107),_108=$(_108);
while(_107=_107.parentNode){
if(_107==_108){
return true;
}
}
return false;
},scrollTo:function(_109){
_109=$(_109);
var x=_109.x?_109.x:_109.offsetLeft,y=_109.y?_109.y:_109.offsetTop;
window.scrollTo(x,y);
return _109;
},getStyle:function(_10b,_10c){
_10b=$(_10b);
var _10d=_10b.style[_10c.camelize()];
if(!_10d){
if(document.defaultView&&document.defaultView.getComputedStyle){
var css=document.defaultView.getComputedStyle(_10b,null);
_10d=css?css.getPropertyValue(_10c):null;
}else{
if(_10b.currentStyle){
_10d=_10b.currentStyle[_10c.camelize()];
}
}
}
if(window.opera&&["left","top","right","bottom"].include(_10c)){
if(Element.getStyle(_10b,"position")=="static"){
_10d="auto";
}
}
return _10d=="auto"?null:_10d;
},setStyle:function(_10f,_110){
_10f=$(_10f);
for(var name in _110){
_10f.style[name.camelize()]=_110[name];
}
return _10f;
},getDimensions:function(_112){
_112=$(_112);
if(Element.getStyle(_112,"display")!="none"){
return {width:_112.offsetWidth,height:_112.offsetHeight};
}
var els=_112.style;
var _114=els.visibility;
var _115=els.position;
els.visibility="hidden";
els.position="absolute";
els.display="";
var _116=_112.clientWidth;
var _117=_112.clientHeight;
els.display="none";
els.position=_115;
els.visibility=_114;
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._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.style.overflow=_11c._overflow=="auto"?"":_11c._overflow;
_11c._overflow=null;
return _11c;
}};
if(document.all){
Element.Methods.update=function(_11d,html){
_11d=$(_11d);
var _11f=_11d.tagName.toUpperCase();
if(["THEAD","TBODY","TR","TD"].indexOf(_11f)>-1){
var div=document.createElement("div");
switch(_11f){
case "THEAD":
case "TBODY":
div.innerHTML="<table><tbody>"+html.stripScripts()+"</tbody></table>";
depth=2;
break;
case "TR":
div.innerHTML="<table><tbody><tr>"+html.stripScripts()+"</tr></tbody></table>";
depth=3;
break;
case "TD":
div.innerHTML="<table><tbody><tr><td>"+html.stripScripts()+"</td></tr></tbody></table>";
depth=4;
}
$A(_11d.childNodes).each(function(node){
_11d.removeChild(node);
});
depth.times(function(){
div=div.firstChild;
});
$A(div.childNodes).each(function(node){
_11d.appendChild(node);
});
}else{
_11d.innerHTML=html.stripScripts();
}
setTimeout(function(){
html.evalScripts();
},10);
return _11d;
};
}
Object.extend(Element,Element.Methods);
var _nativeExtensions=false;
if(!window.HTMLElement&&/Konqueror|Safari|KHTML/.test(navigator.userAgent)){
["","Form","Input","TextArea","Select"].each(function(tag){
var _124=window["HTML"+tag+"Element"]={};
_124.prototype=document.createElement(tag?tag.toLowerCase():"div").__proto__;
});
}
Element.addMethods=function(_125){
Object.extend(Element.Methods,_125||{});
function copy(_126,_127){
var _128=Element.extend.cache;
for(var _129 in _126){
var _12a=_126[_129];
_127[_129]=_128.findOrStore(_12a);
}
}
if(typeof HTMLElement!="undefined"){
copy(Element.Methods,HTMLElement.prototype);
copy(Form.Methods,HTMLFormElement.prototype);
[HTMLInputElement,HTMLTextAreaElement,HTMLSelectElement].each(function(_12b){
copy(Form.Element.Methods,_12b.prototype);
});
_nativeExtensions=true;
}
};
var Toggle=new Object();
Toggle.display=Element.toggle;
Abstract.Insertion=function(_12c){
this.adjacency=_12c;
};
Abstract.Insertion.prototype={initialize:function(_12d,_12e){
this.element=$(_12d);
this.content=_12e.stripScripts();
if(this.adjacency&&this.element.insertAdjacentHTML){
try{
this.element.insertAdjacentHTML(this.adjacency,this.content);
}
catch(e){
var _12f=this.element.tagName.toLowerCase();
if(_12f=="tbody"||_12f=="tr"){
this.insertContent(this.contentFromAnonymousTable());
}else{
throw e;
}
}
}else{
this.range=this.element.ownerDocument.createRange();
if(this.initializeRange){
this.initializeRange();
}
this.insertContent([this.range.createContextualFragment(this.content)]);
}
setTimeout(function(){
_12e.evalScripts();
},10);
},contentFromAnonymousTable:function(){
var div=document.createElement("div");
div.innerHTML="<table><tbody>"+this.content+"</tbody></table>";
return $A(div.childNodes[0].childNodes[0].childNodes);
}};
var Insertion=new Object();
Insertion.Before=Class.create();
Insertion.Before.prototype=Object.extend(new Abstract.Insertion("beforeBegin"),{initializeRange:function(){
this.range.setStartBefore(this.element);
},insertContent:function(_131){
_131.each((function(_132){
this.element.parentNode.insertBefore(_132,this.element);
}).bind(this));
}});
Insertion.Top=Class.create();
Insertion.Top.prototype=Object.extend(new Abstract.Insertion("afterBegin"),{initializeRange:function(){
this.range.selectNodeContents(this.element);
this.range.collapse(true);
},insertContent:function(_133){
_133.reverse(false).each((function(_134){
this.element.insertBefore(_134,this.element.firstChild);
}).bind(this));
}});
Insertion.Bottom=Class.create();
Insertion.Bottom.prototype=Object.extend(new Abstract.Insertion("beforeEnd"),{initializeRange:function(){
this.range.selectNodeContents(this.element);
this.range.collapse(this.element);
},insertContent:function(_135){
_135.each((function(_136){
this.element.appendChild(_136);
}).bind(this));
}});
Insertion.After=Class.create();
Insertion.After.prototype=Object.extend(new Abstract.Insertion("afterEnd"),{initializeRange:function(){
this.range.setStartAfter(this.element);
},insertContent:function(_137){
_137.each((function(_138){
this.element.parentNode.insertBefore(_138,this.element.nextSibling);
}).bind(this));
}});
Element.ClassNames=Class.create();
Element.ClassNames.prototype={initialize:function(_139){
this.element=$(_139);
},_each:function(_13a){
this.element.className.split(/\s+/).select(function(name){
return name.length>0;
})._each(_13a);
},set:function(_13c){
this.element.className=_13c;
},add:function(_13d){
if(this.include(_13d)){
return;
}
this.set(this.toArray().concat(_13d).join(" "));
},remove:function(_13e){
if(!this.include(_13e)){
return;
}
this.set(this.select(function(_13f){
return _13f!=_13e;
}).join(" "));
},toString:function(){
return this.toArray().join(" ");
}};
Object.extend(Element.ClassNames.prototype,Enumerable);
var Selector=Class.create();
Selector.prototype={initialize:function(_140){
this.params={classNames:[]};
this.expression=_140.toString().strip();
this.parseExpression();
this.compileMatcher();
},parseExpression:function(){
function abort(_141){
throw "Parse error in selector: "+_141;
}
if(this.expression==""){
abort("empty expression");
}
var _142=this.params,expr=this.expression,match,modifier,clause,rest;
while(match=expr.match(/^(.*)\[([a-z0-9_:-]+?)(?:([~\|!]?=)(?:"([^"]*)"|([^\]\s]*)))?\]$/i)){
_142.attributes=_142.attributes||[];
_142.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 "#":
_142.id=clause;
break;
case ".":
_142.classNames.push(clause);
break;
case "":
case undefined:
_142.tagName=clause.toUpperCase();
break;
default:
abort(expr.inspect());
}
expr=rest;
}
if(expr.length>0){
abort(expr.inspect());
}
},buildMatchExpression:function(){
var _143=this.params,conditions=[],clause;
if(_143.wildcard){
conditions.push("true");
}
if(clause=_143.id){
conditions.push("element.id == "+clause.inspect());
}
if(clause=_143.tagName){
conditions.push("element.tagName.toUpperCase() == "+clause.inspect());
}
if((clause=_143.classNames).length>0){
for(var i=0;i<clause.length;i++){
conditions.push("Element.hasClassName(element, "+clause[i].inspect()+")");
}
}
if(clause=_143.attributes){
clause.each(function(_145){
var _146="element.getAttribute("+_145.name.inspect()+")";
var _147=function(_148){
return _146+" && "+_146+".split("+_148.inspect()+")";
};
switch(_145.operator){
case "=":
conditions.push(_146+" == "+_145.value.inspect());
break;
case "~=":
conditions.push(_147(" ")+".include("+_145.value.inspect()+")");
break;
case "|=":
conditions.push(_147("-")+".first().toUpperCase() == "+_145.value.toUpperCase().inspect());
break;
case "!=":
conditions.push(_146+" != "+_145.value.inspect());
break;
case "":
case undefined:
conditions.push(_146+" != null");
break;
default:
throw "Unknown operator "+_145.operator+" in selector";
}
});
}
return conditions.join(" && ");
},compileMatcher:function(){
this.match=new Function("element","if (!element.tagName) return false;       return "+this.buildMatchExpression());
},findElements:function(_149){
var _14a;
if(_14a=$(this.params.id)){
if(this.match(_14a)){
if(!_149||Element.childOf(_14a,_149)){
return [_14a];
}
}
}
_149=(_149||document).getElementsByTagName(this.params.tagName||"*");
var _14b=[];
for(var i=0;i<_149.length;i++){
if(this.match(_14a=_149[i])){
_14b.push(Element.extend(_14a));
}
}
return _14b;
},toString:function(){
return this.expression;
}};
Object.extend(Selector,{matchElements:function(_14d,_14e){
var _14f=new Selector(_14e);
return _14d.select(_14f.match.bind(_14f));
},findElement:function(_150,_151,_152){
if(typeof _151=="number"){
_152=_151,_151=false;
}
return Selector.matchElements(_150,_151||"*")[_152||0];
},findChildElements:function(_153,_154){
return _154.map(function(_155){
return _155.strip().split(/\s+/).inject([null],function(_156,expr){
var _158=new Selector(expr);
return _156.inject([],function(_159,_15a){
return _159.concat(_158.findElements(_15a||_153));
});
});
}).flatten();
}});
function $$(){
return Selector.findChildElements(document,$A(arguments));
}
var Form={reset:function(form){
$(form).reset();
return form;
}};
Form.Methods={serialize:function(form){
var _15d=Form.getElements($(form));
var _15e=new Array();
for(var i=0;i<_15d.length;i++){
var _160=Form.Element.serialize(_15d[i]);
if(_160){
_15e.push(_160);
}
}
return _15e.join("&");
},getElements:function(form){
form=$(form);
var _162=new Array();
for(var _163 in Form.Element.Serializers){
var _164=form.getElementsByTagName(_163);
for(var j=0;j<_164.length;j++){
_162.push(_164[j]);
}
}
return _162;
},getInputs:function(form,_167,name){
form=$(form);
var _169=form.getElementsByTagName("input");
if(!_167&&!name){
return _169;
}
var _16a=new Array();
for(var i=0;i<_169.length;i++){
var _16c=_169[i];
if((_167&&_16c.type!=_167)||(name&&_16c.name!=name)){
continue;
}
_16a.push(_16c);
}
return _16a;
},disable:function(form){
form=$(form);
var _16e=Form.getElements(form);
for(var i=0;i<_16e.length;i++){
var _170=_16e[i];
_170.blur();
_170.disabled="true";
}
return form;
},enable:function(form){
form=$(form);
var _172=Form.getElements(form);
for(var i=0;i<_172.length;i++){
var _174=_172[i];
_174.disabled="";
}
return form;
},findFirstElement:function(form){
return Form.getElements(form).find(function(_176){
return _176.type!="hidden"&&!_176.disabled&&["input","select","textarea"].include(_176.tagName.toLowerCase());
});
},focusFirstElement:function(form){
form=$(form);
Field.activate(Form.findFirstElement(form));
return form;
}};
Object.extend(Form,Form.Methods);
Form.Element={focus:function(_178){
$(_178).focus();
return _178;
},select:function(_179){
$(_179).select();
return _179;
}};
Form.Element.Methods={serialize:function(_17a){
_17a=$(_17a);
var _17b=_17a.tagName.toLowerCase();
var _17c=Form.Element.Serializers[_17b](_17a);
if(_17c){
var key=encodeURIComponent(_17c[0]);
if(key.length==0){
return;
}
if(_17c[1].constructor!=Array){
_17c[1]=[_17c[1]];
}
return _17c[1].map(function(_17e){
return key+"="+encodeURIComponent(_17e);
}).join("&");
}
},getValue:function(_17f){
_17f=$(_17f);
var _180=_17f.tagName.toLowerCase();
var _181=Form.Element.Serializers[_180](_17f);
if(_181){
return _181[1];
}
},clear:function(_182){
$(_182).value="";
return _182;
},present:function(_183){
return $(_183).value!="";
},activate:function(_184){
_184=$(_184);
_184.focus();
if(_184.select){
_184.select();
}
return _184;
},disable:function(_185){
_185=$(_185);
_185.disabled="";
return _185;
},enable:function(_186){
_186=$(_186);
_186.blur();
_186.disabled="true";
return _186;
}};
Object.extend(Form.Element,Form.Element.Methods);
var Field=Form.Element;
Form.Element.Serializers={input:function(_187){
switch(_187.type.toLowerCase()){
case "checkbox":
case "radio":
return Form.Element.Serializers.inputSelector(_187);
default:
return Form.Element.Serializers.textarea(_187);
}
return false;
},inputSelector:function(_188){
if(_188.checked){
return [_188.name,_188.value];
}
},textarea:function(_189){
return [_189.name,_189.value];
},select:function(_18a){
return Form.Element.Serializers[_18a.type=="select-one"?"selectOne":"selectMany"](_18a);
},selectOne:function(_18b){
var _18c="",opt,index=_18b.selectedIndex;
if(index>=0){
opt=_18b.options[index];
_18c=opt.value||opt.text;
}
return [_18b.name,_18c];
},selectMany:function(_18d){
var _18e=[];
for(var i=0;i<_18d.length;i++){
var opt=_18d.options[i];
if(opt.selected){
_18e.push(opt.value||opt.text);
}
}
return [_18d.name,_18e];
}};
var $F=Form.Element.getValue;
Abstract.TimedObserver=function(){
};
Abstract.TimedObserver.prototype={initialize:function(_191,_192,_193){
this.frequency=_192;
this.element=$(_191);
this.callback=_193;
this.lastValue=this.getValue();
this.registerCallback();
},registerCallback:function(){
setInterval(this.onTimerEvent.bind(this),this.frequency*1000);
},onTimerEvent:function(){
var _194=this.getValue();
if(this.lastValue!=_194){
this.callback(this.element,_194);
this.lastValue=_194;
}
}};
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(_195,_196){
this.element=$(_195);
this.callback=_196;
this.lastValue=this.getValue();
if(this.element.tagName.toLowerCase()=="form"){
this.registerFormCallbacks();
}else{
this.registerCallback(this.element);
}
},onElementEvent:function(){
var _197=this.getValue();
if(this.lastValue!=_197){
this.callback(this.element,_197);
this.lastValue=_197;
}
},registerFormCallbacks:function(){
var _198=Form.getElements(this.element);
for(var i=0;i<_198.length;i++){
this.registerCallback(_198[i]);
}
},registerCallback:function(_19a){
if(_19a.type){
switch(_19a.type.toLowerCase()){
case "checkbox":
case "radio":
Event.observe(_19a,"click",this.onElementEvent.bind(this));
break;
default:
Event.observe(_19a,"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(_19b){
return _19b.target||_19b.srcElement;
},isLeftClick:function(_19c){
return (((_19c.which)&&(_19c.which==1))||((_19c.button)&&(_19c.button==1)));
},pointerX:function(_19d){
return _19d.pageX||(_19d.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft));
},pointerY:function(_19e){
return _19e.pageY||(_19e.clientY+(document.documentElement.scrollTop||document.body.scrollTop));
},stop:function(_19f){
if(_19f.preventDefault){
_19f.preventDefault();
_19f.stopPropagation();
}else{
_19f.returnValue=false;
_19f.cancelBubble=true;
}
},findElement:function(_1a0,_1a1){
var _1a2=Event.element(_1a0);
while(_1a2.parentNode&&(!_1a2.tagName||(_1a2.tagName.toUpperCase()!=_1a1.toUpperCase()))){
_1a2=_1a2.parentNode;
}
return _1a2;
},observers:false,_observeAndCache:function(_1a3,name,_1a5,_1a6){
if(!this.observers){
this.observers=[];
}
if(_1a3.addEventListener){
this.observers.push([_1a3,name,_1a5,_1a6]);
_1a3.addEventListener(name,_1a5,_1a6);
}else{
if(_1a3.attachEvent){
this.observers.push([_1a3,name,_1a5,_1a6]);
_1a3.attachEvent("on"+name,_1a5);
}
}
},unloadCache:function(){
if(!Event.observers){
return;
}
for(var i=0;i<Event.observers.length;i++){
Event.stopObserving.apply(this,Event.observers[i]);
Event.observers[i][0]=null;
}
Event.observers=false;
},observe:function(_1a8,name,_1aa,_1ab){
_1a8=$(_1a8);
_1ab=_1ab||false;
if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_1a8.attachEvent)){
name="keydown";
}
Event._observeAndCache(_1a8,name,_1aa,_1ab);
},stopObserving:function(_1ac,name,_1ae,_1af){
_1ac=$(_1ac);
_1af=_1af||false;
if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||_1ac.detachEvent)){
name="keydown";
}
if(_1ac.removeEventListener){
_1ac.removeEventListener(name,_1ae,_1af);
}else{
if(_1ac.detachEvent){
try{
_1ac.detachEvent("on"+name,_1ae);
}
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(_1b0){
var _1b1=0,valueL=0;
do{
_1b1+=_1b0.scrollTop||0;
valueL+=_1b0.scrollLeft||0;
_1b0=_1b0.parentNode;
}while(_1b0);
return [valueL,_1b1];
},cumulativeOffset:function(_1b2){
var _1b3=0,valueL=0;
do{
_1b3+=_1b2.offsetTop||0;
valueL+=_1b2.offsetLeft||0;
_1b2=_1b2.offsetParent;
}while(_1b2);
return [valueL,_1b3];
},positionedOffset:function(_1b4){
var _1b5=0,valueL=0;
do{
_1b5+=_1b4.offsetTop||0;
valueL+=_1b4.offsetLeft||0;
_1b4=_1b4.offsetParent;
if(_1b4){
p=Element.getStyle(_1b4,"position");
if(p=="relative"||p=="absolute"){
break;
}
}
}while(_1b4);
return [valueL,_1b5];
},offsetParent:function(_1b6){
if(_1b6.offsetParent){
return _1b6.offsetParent;
}
if(_1b6==document.body){
return _1b6;
}
while((_1b6=_1b6.parentNode)&&_1b6!=document.body){
if(Element.getStyle(_1b6,"position")!="static"){
return _1b6;
}
}
return document.body;
},within:function(_1b7,x,y){
if(this.includeScrollOffsets){
return this.withinIncludingScrolloffsets(_1b7,x,y);
}
this.xcomp=x;
this.ycomp=y;
this.offset=this.cumulativeOffset(_1b7);
return (y>=this.offset[1]&&y<this.offset[1]+_1b7.offsetHeight&&x>=this.offset[0]&&x<this.offset[0]+_1b7.offsetWidth);
},withinIncludingScrolloffsets:function(_1ba,x,y){
var _1bd=this.realOffset(_1ba);
this.xcomp=x+_1bd[0]-this.deltaX;
this.ycomp=y+_1bd[1]-this.deltaY;
this.offset=this.cumulativeOffset(_1ba);
return (this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+_1ba.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+_1ba.offsetWidth);
},overlap:function(mode,_1bf){
if(!mode){
return 0;
}
if(mode=="vertical"){
return ((this.offset[1]+_1bf.offsetHeight)-this.ycomp)/_1bf.offsetHeight;
}
if(mode=="horizontal"){
return ((this.offset[0]+_1bf.offsetWidth)-this.xcomp)/_1bf.offsetWidth;
}
},page:function(_1c0){
var _1c1=0,valueL=0;
var _1c2=_1c0;
do{
_1c1+=_1c2.offsetTop||0;
valueL+=_1c2.offsetLeft||0;
if(_1c2.offsetParent==document.body){
if(Element.getStyle(_1c2,"position")=="absolute"){
break;
}
}
}while(_1c2=_1c2.offsetParent);
_1c2=_1c0;
do{
if(!window.opera||_1c2.tagName=="BODY"){
_1c1-=_1c2.scrollTop||0;
valueL-=_1c2.scrollLeft||0;
}
}while(_1c2=_1c2.parentNode);
return [valueL,_1c1];
},clone:function(_1c3,_1c4){
var _1c5=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},arguments[2]||{});
_1c3=$(_1c3);
var p=Position.page(_1c3);
_1c4=$(_1c4);
var _1c7=[0,0];
var _1c8=null;
if(Element.getStyle(_1c4,"position")=="absolute"){
_1c8=Position.offsetParent(_1c4);
_1c7=Position.page(_1c8);
}
if(_1c8==document.body){
_1c7[0]-=document.body.offsetLeft;
_1c7[1]-=document.body.offsetTop;
}
if(_1c5.setLeft){
_1c4.style.left=(p[0]-_1c7[0]+_1c5.offsetLeft)+"px";
}
if(_1c5.setTop){
_1c4.style.top=(p[1]-_1c7[1]+_1c5.offsetTop)+"px";
}
if(_1c5.setWidth){
_1c4.style.width=_1c3.offsetWidth+"px";
}
if(_1c5.setHeight){
_1c4.style.height=_1c3.offsetHeight+"px";
}
},absolutize:function(_1c9){
_1c9=$(_1c9);
if(_1c9.style.position=="absolute"){
return;
}
Position.prepare();
var _1ca=Position.positionedOffset(_1c9);
var top=_1ca[1];
var left=_1ca[0];
var _1cd=_1c9.clientWidth;
var _1ce=_1c9.clientHeight;
_1c9._originalLeft=left-parseFloat(_1c9.style.left||0);
_1c9._originalTop=top-parseFloat(_1c9.style.top||0);
_1c9._originalWidth=_1c9.style.width;
_1c9._originalHeight=_1c9.style.height;
_1c9.style.position="absolute";
_1c9.style.top=top+"px";
_1c9.style.left=left+"px";
_1c9.style.width=_1cd+"px";
_1c9.style.height=_1ce+"px";
},relativize:function(_1cf){
_1cf=$(_1cf);
if(_1cf.style.position=="relative"){
return;
}
Position.prepare();
_1cf.style.position="relative";
var top=parseFloat(_1cf.style.top||0)-(_1cf._originalTop||0);
var left=parseFloat(_1cf.style.left||0)-(_1cf._originalLeft||0);
_1cf.style.top=top+"px";
_1cf.style.left=left+"px";
_1cf.style.height=_1cf._originalHeight;
_1cf.style.width=_1cf._originalWidth;
}};
if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){
Position.cumulativeOffset=function(_1d2){
var _1d3=0,valueL=0;
do{
_1d3+=_1d2.offsetTop||0;
valueL+=_1d2.offsetLeft||0;
if(_1d2.offsetParent==document.body){
if(Element.getStyle(_1d2,"position")=="absolute"){
break;
}
}
_1d2=_1d2.offsetParent;
}while(_1d2);
return [valueL,_1d3];
};
}
Element.addMethods();



//---
//2-effects.js
//---

String.prototype.parseColor=function(){
var _1="#";
if(this.slice(0,4)=="rgb("){
var _2=this.slice(4,this.length-1).split(",");
var i=0;
do{
_1+=parseInt(_2[i]).toColorPart();
}while(++i<3);
}else{
if(this.slice(0,1)=="#"){
if(this.length==4){
for(var i=1;i<4;i++){
_1+=(this.charAt(i)+this.charAt(i)).toLowerCase();
}
}
if(this.length==7){
_1=this.toLowerCase();
}
}
}
return (_1.length==7?_1:(arguments[0]||this));
};
Element.collectTextNodes=function(_4){
return $A($(_4).childNodes).collect(function(_5){
return (_5.nodeType==3?_5.nodeValue:(_5.hasChildNodes()?Element.collectTextNodes(_5):""));
}).flatten().join("");
};
Element.collectTextNodesIgnoreClass=function(_6,_7){
return $A($(_6).childNodes).collect(function(_8){
return (_8.nodeType==3?_8.nodeValue:((_8.hasChildNodes()&&!Element.hasClassName(_8,_7))?Element.collectTextNodesIgnoreClass(_8,_7):""));
}).flatten().join("");
};
Element.setContentZoom=function(_9,_a){
_9=$(_9);
Element.setStyle(_9,{fontSize:(_a/100)+"em"});
if(navigator.appVersion.indexOf("AppleWebKit")>0){
window.scrollBy(0,0);
}
};
Element.getOpacity=function(_b){
var _c;
if(_c=Element.getStyle(_b,"opacity")){
return parseFloat(_c);
}
if(_c=(Element.getStyle(_b,"filter")||"").match(/alpha\(opacity=(.*)\)/)){
if(_c[1]){
return parseFloat(_c[1])/100;
}
}
return 1;
};
Element.setOpacity=function(_d,_e){
_d=$(_d);
if(_e==1){
Element.setStyle(_d,{opacity:(/Gecko/.test(navigator.userAgent)&&!/Konqueror|Safari|KHTML/.test(navigator.userAgent))?0.999999:1});
if(/MSIE/.test(navigator.userAgent)&&!window.opera){
Element.setStyle(_d,{filter:Element.getStyle(_d,"filter").replace(/alpha\([^\)]*\)/gi,"")});
}
}else{
if(_e<0.00001){
_e=0;
}
Element.setStyle(_d,{opacity:_e});
if(/MSIE/.test(navigator.userAgent)&&!window.opera){
Element.setStyle(_d,{filter:Element.getStyle(_d,"filter").replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+_e*100+")"});
}
}
};
Element.getInlineOpacity=function(_f){
return $(_f).style.opacity||"";
};
Element.childrenWithClassName=function(_10,_11,_12){
var _13=new RegExp("(^|\\s)"+_11+"(\\s|$)");
var _14=$A($(_10).getElementsByTagName("*"))[_12?"detect":"select"](function(c){
return (c.className&&c.className.match(_13));
});
if(!_14){
_14=[];
}
return _14;
};
Element.forceRerendering=function(_16){
try{
_16=$(_16);
var n=document.createTextNode(" ");
_16.appendChild(n);
_16.removeChild(n);
}
catch(e){
}
};
Array.prototype.call=function(){
var _18=arguments;
this.each(function(f){
f.apply(this,_18);
});
};
var Effect={_elementDoesNotExistError:{name:"ElementDoesNotExistError",message:"The specified DOM element does not exist, but is required for this effect to operate"},tagifyText:function(_1a){
if(typeof Builder=="undefined"){
throw ("Effect.tagifyText requires including script.aculo.us' builder.js library");
}
var _1b="position:relative";
if(/MSIE/.test(navigator.userAgent)&&!window.opera){
_1b+=";zoom:1";
}
_1a=$(_1a);
$A(_1a.childNodes).each(function(_1c){
if(_1c.nodeType==3){
_1c.nodeValue.toArray().each(function(_1d){
_1a.insertBefore(Builder.node("span",{style:_1b},_1d==" "?String.fromCharCode(160):_1d),_1c);
});
Element.remove(_1c);
}
});
},multiple:function(_1e,_1f){
var _20;
if(((typeof _1e=="object")||(typeof _1e=="function"))&&(_1e.length)){
_20=_1e;
}else{
_20=$(_1e).childNodes;
}
var _21=Object.extend({speed:0.1,delay:0},arguments[2]||{});
var _22=_21.delay;
$A(_20).each(function(_23,_24){
new _1f(_23,Object.extend(_21,{delay:_24*_21.speed+_22}));
});
},PAIRS:{"slide":["SlideDown","SlideUp"],"blind":["BlindDown","BlindUp"],"appear":["Appear","Fade"]},toggle:function(_25,_26){
_25=$(_25);
_26=(_26||"appear").toLowerCase();
var _27=Object.extend({queue:{position:"end",scope:(_25.id||"global"),limit:1}},arguments[2]||{});
Effect[_25.visible()?Effect.PAIRS[_26][1]:Effect.PAIRS[_26][0]](_25,_27);
}};
var Effect2=Effect;
Effect.Transitions={};
Effect.Transitions.linear=Prototype.K;
Effect.Transitions.sinoidal=function(pos){
return (-Math.cos(pos*Math.PI)/2)+0.5;
};
Effect.Transitions.reverse=function(pos){
return 1-pos;
};
Effect.Transitions.flicker=function(pos){
return ((-Math.cos(pos*Math.PI)/4)+0.75)+Math.random()/4;
};
Effect.Transitions.wobble=function(pos){
return (-Math.cos(pos*Math.PI*(9*pos))/2)+0.5;
};
Effect.Transitions.pulse=function(pos){
return (Math.floor(pos*10)%2==0?(pos*10-Math.floor(pos*10)):1-(pos*10-Math.floor(pos*10)));
};
Effect.Transitions.none=function(pos){
return 0;
};
Effect.Transitions.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(_2f){
this.effects._each(_2f);
},add:function(_30){
var _31=new Date().getTime();
var _32=(typeof _30.options.queue=="string")?_30.options.queue:_30.options.queue.position;
switch(_32){
case "front":
this.effects.findAll(function(e){
return e.state=="idle";
}).each(function(e){
e.startOn+=_30.finishOn;
e.finishOn+=_30.finishOn;
});
break;
case "end":
_31=this.effects.pluck("finishOn").max()||_31;
break;
}
_30.startOn+=_31;
_30.finishOn+=_31;
if(!_30.options.queue.limit||(this.effects.length<_30.options.queue.limit)){
this.effects.push(_30);
}
if(!this.interval){
this.interval=setInterval(this.loop.bind(this),40);
}
},remove:function(_35){
this.effects=this.effects.reject(function(e){
return e==_35;
});
if(this.effects.length==0){
clearInterval(this.interval);
this.interval=null;
}
},loop:function(){
var _37=new Date().getTime();
this.effects.invoke("loop",_37);
}});
Effect.Queues={instances:$H(),get:function(_38){
if(typeof _38!="string"){
return _38;
}
if(!this.instances[_38]){
this.instances[_38]=new Effect.ScopedQueue();
}
return this.instances[_38];
}};
Effect.Queue=Effect.Queues.get("global");
Effect.DefaultOptions={transition:Effect.Transitions.sinoidal,duration:1,fps:25,sync:false,from:0,to:1,delay:0,queue:"parallel"};
Effect.Base=function(){
};
Effect.Base.prototype={position:null,start:function(_39){
this.options=Object.extend(Object.extend({},Effect.DefaultOptions),_39||{});
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(_3a){
if(_3a>=this.startOn){
if(_3a>=this.finishOn){
this.render(1);
this.cancel();
this.event("beforeFinish");
if(this.finish){
this.finish();
}
this.event("afterFinish");
return;
}
var pos=(_3a-this.startOn)/(this.finishOn-this.startOn);
var _3c=Math.round(pos*this.options.fps*this.options.duration);
if(_3c>this.currentFrame){
this.render(pos);
this.currentFrame=_3c;
}
}
},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(_3e){
if(this.options[_3e+"Internal"]){
this.options[_3e+"Internal"](this);
}
if(this.options[_3e]){
this.options[_3e](this);
}
},inspect:function(){
return "#<Effect:"+$H(this).inspect()+",options:"+$H(this.options).inspect()+">";
}};
Effect.Parallel=Class.create();
Object.extend(Object.extend(Effect.Parallel.prototype,Effect.Base.prototype),{initialize:function(_3f){
this.effects=_3f||[];
this.start(arguments[1]);
},update:function(_40){
this.effects.invoke("render",_40);
},finish:function(_41){
this.effects.each(function(_42){
_42.render(1);
_42.cancel();
_42.event("beforeFinish");
if(_42.finish){
_42.finish(_41);
}
_42.event("afterFinish");
});
}});
Effect.Opacity=Class.create();
Object.extend(Object.extend(Effect.Opacity.prototype,Effect.Base.prototype),{initialize:function(_43){
this.element=$(_43);
if(!this.element){
throw (Effect._elementDoesNotExistError);
}
if(/MSIE/.test(navigator.userAgent)&&!window.opera&&(!this.element.currentStyle.hasLayout)){
this.element.setStyle({zoom:1});
}
var _44=Object.extend({from:this.element.getOpacity()||0,to:1},arguments[1]||{});
this.start(_44);
},update:function(_45){
this.element.setOpacity(_45);
}});
Effect.Move=Class.create();
Object.extend(Object.extend(Effect.Move.prototype,Effect.Base.prototype),{initialize:function(_46){
this.element=$(_46);
if(!this.element){
throw (Effect._elementDoesNotExistError);
}
var _47=Object.extend({x:0,y:0,mode:"relative"},arguments[1]||{});
this.start(_47);
},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(_48){
this.element.setStyle({left:Math.round(this.options.x*_48+this.originalLeft)+"px",top:Math.round(this.options.y*_48+this.originalTop)+"px"});
}});
Effect.MoveBy=function(_49,_4a,_4b){
return new Effect.Move(_49,Object.extend({x:_4b,y:_4a},arguments[3]||{}));
};
Effect.Scale=Class.create();
Object.extend(Object.extend(Effect.Scale.prototype,Effect.Base.prototype),{initialize:function(_4c,_4d){
this.element=$(_4c);
if(!this.element){
throw (Effect._elementDoesNotExistError);
}
var _4e=Object.extend({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:"box",scaleFrom:100,scaleTo:_4d},arguments[2]||{});
this.start(_4e);
},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 _50=this.element.getStyle("font-size")||"100%";
["em","px","%","pt"].each(function(_51){
if(_50.indexOf(_51)>0){
this.fontSize=parseFloat(_50);
this.fontSizeType=_51;
}
}.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(_52){
var _53=(this.options.scaleFrom/100)+(this.factor*_52);
if(this.options.scaleContent&&this.fontSize){
this.element.setStyle({fontSize:this.fontSize*_53+this.fontSizeType});
}
this.setDimensions(this.dims[0]*_53,this.dims[1]*_53);
},finish:function(_54){
if(this.restoreAfterFinish){
this.element.setStyle(this.originalStyle);
}
},setDimensions:function(_55,_56){
var d={};
if(this.options.scaleX){
d.width=Math.round(_56)+"px";
}
if(this.options.scaleY){
d.height=Math.round(_55)+"px";
}
if(this.options.scaleFromCenter){
var _58=(_55-this.dims[0])/2;
var _59=(_56-this.dims[1])/2;
if(this.elementPositioning=="absolute"){
if(this.options.scaleY){
d.top=this.originalTop-_58+"px";
}
if(this.options.scaleX){
d.left=this.originalLeft-_59+"px";
}
}else{
if(this.options.scaleY){
d.top=-_58+"px";
}
if(this.options.scaleX){
d.left=-_59+"px";
}
}
}
this.element.setStyle(d);
}});
Effect.Highlight=Class.create();
Object.extend(Object.extend(Effect.Highlight.prototype,Effect.Base.prototype),{initialize:function(_5a){
this.element=$(_5a);
if(!this.element){
throw (Effect._elementDoesNotExistError);
}
var _5b=Object.extend({startcolor:"#ffff99"},arguments[1]||{});
this.start(_5b);
},setup:function(){
if(this.element.getStyle("display")=="none"){
this.cancel();
return;
}
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(_5e){
this.element.setStyle({backgroundColor:$R(0,2).inject("#",function(m,v,i){
return m+(Math.round(this._base[i]+(this._delta[i]*_5e)).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(_62){
this.element=$(_62);
this.start(arguments[1]||{});
},setup:function(){
Position.prepare();
var _63=Position.cumulativeOffset(this.element);
if(this.options.offset){
_63[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=(_63[1]>max?max:_63[1])-this.scrollStart;
},update:function(_65){
Position.prepare();
window.scrollTo(Position.deltaX,this.scrollStart+(_65*this.delta));
}});
Effect.Fade=function(_66){
_66=$(_66);
var _67=_66.getInlineOpacity();
var _68=Object.extend({from:_66.getOpacity()||1,to:0,afterFinishInternal:function(_69){
if(_69.options.to!=0){
return;
}
_69.element.hide();
_69.element.setStyle({opacity:_67});
}},arguments[1]||{});
return new Effect.Opacity(_66,_68);
};
Effect.Appear=function(_6a){
_6a=$(_6a);
var _6b=Object.extend({from:(_6a.getStyle("display")=="none"?0:_6a.getOpacity()||0),to:1,afterFinishInternal:function(_6c){
_6c.element.forceRerendering();
},beforeSetup:function(_6d){
_6d.element.setOpacity(_6d.options.from);
_6d.element.show();
}},arguments[1]||{});
return new Effect.Opacity(_6a,_6b);
};
Effect.Puff=function(_6e){
_6e=$(_6e);
var _6f={opacity:_6e.getInlineOpacity(),position:_6e.getStyle("position"),top:_6e.style.top,left:_6e.style.left,width:_6e.style.width,height:_6e.style.height};
return new Effect.Parallel([new Effect.Scale(_6e,200,{sync:true,scaleFromCenter:true,scaleContent:true,restoreAfterFinish:true}),new Effect.Opacity(_6e,{sync:true,to:0})],Object.extend({duration:1,beforeSetupInternal:function(_70){
Position.absolutize(_70.effects[0].element);
},afterFinishInternal:function(_71){
_71.effects[0].element.hide();
_71.effects[0].element.setStyle(_6f);
}},arguments[1]||{}));
};
Effect.BlindUp=function(_72){
_72=$(_72);
_72.makeClipping();
return new Effect.Scale(_72,0,Object.extend({scaleContent:false,scaleX:false,restoreAfterFinish:true,afterFinishInternal:function(_73){
_73.element.hide();
_73.element.undoClipping();
}},arguments[1]||{}));
};
Effect.BlindDown=function(_74){
_74=$(_74);
var _75=_74.getDimensions();
return new Effect.Scale(_74,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:_75.height,originalWidth:_75.width},restoreAfterFinish:true,afterSetup:function(_76){
_76.element.makeClipping();
_76.element.setStyle({height:"0px"});
_76.element.show();
},afterFinishInternal:function(_77){
_77.element.undoClipping();
}},arguments[1]||{}));
};
Effect.SwitchOff=function(_78){
_78=$(_78);
var _79=_78.getInlineOpacity();
return new Effect.Appear(_78,Object.extend({duration:0.4,from:0,transition:Effect.Transitions.flicker,afterFinishInternal:function(_7a){
new Effect.Scale(_7a.element,1,{duration:0.3,scaleFromCenter:true,scaleX:false,scaleContent:false,restoreAfterFinish:true,beforeSetup:function(_7b){
_7b.element.makePositioned();
_7b.element.makeClipping();
},afterFinishInternal:function(_7c){
_7c.element.hide();
_7c.element.undoClipping();
_7c.element.undoPositioned();
_7c.element.setStyle({opacity:_79});
}});
}},arguments[1]||{}));
};
Effect.DropOut=function(_7d){
_7d=$(_7d);
var _7e={top:_7d.getStyle("top"),left:_7d.getStyle("left"),opacity:_7d.getInlineOpacity()};
return new Effect.Parallel([new Effect.Move(_7d,{x:0,y:100,sync:true}),new Effect.Opacity(_7d,{sync:true,to:0})],Object.extend({duration:0.5,beforeSetup:function(_7f){
_7f.effects[0].element.makePositioned();
},afterFinishInternal:function(_80){
_80.effects[0].element.hide();
_80.effects[0].element.undoPositioned();
_80.effects[0].element.setStyle(_7e);
}},arguments[1]||{}));
};
Effect.Shake=function(_81){
_81=$(_81);
var _82={top:_81.getStyle("top"),left:_81.getStyle("left")};
return new Effect.Move(_81,{x:20,y:0,duration:0.05,afterFinishInternal:function(_83){
new Effect.Move(_83.element,{x:-40,y:0,duration:0.1,afterFinishInternal:function(_84){
new Effect.Move(_84.element,{x:40,y:0,duration:0.1,afterFinishInternal:function(_85){
new Effect.Move(_85.element,{x:-40,y:0,duration:0.1,afterFinishInternal:function(_86){
new Effect.Move(_86.element,{x:40,y:0,duration:0.1,afterFinishInternal:function(_87){
new Effect.Move(_87.element,{x:-20,y:0,duration:0.05,afterFinishInternal:function(_88){
_88.element.undoPositioned();
_88.element.setStyle(_82);
}});
}});
}});
}});
}});
}});
};
Effect.SlideDown=function(_89){
_89=$(_89);
_89.cleanWhitespace();
var _8a=$(_89.firstChild).getStyle("bottom");
var _8b=_89.getDimensions();
return new Effect.Scale(_89,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:window.opera?0:1,scaleMode:{originalHeight:_8b.height,originalWidth:_8b.width},restoreAfterFinish:true,afterSetup:function(_8c){
_8c.element.makePositioned();
_8c.element.firstChild.makePositioned();
if(window.opera){
_8c.element.setStyle({top:""});
}
_8c.element.makeClipping();
_8c.element.setStyle({height:"0px"});
_8c.element.show();
},afterUpdateInternal:function(_8d){
_8d.element.firstChild.setStyle({bottom:(_8d.dims[0]-_8d.element.clientHeight)+"px"});
},afterFinishInternal:function(_8e){
_8e.element.undoClipping();
if(/MSIE/.test(navigator.userAgent)&&!window.opera){
_8e.element.undoPositioned();
_8e.element.firstChild.undoPositioned();
}else{
_8e.element.firstChild.undoPositioned();
_8e.element.undoPositioned();
}
_8e.element.firstChild.setStyle({bottom:_8a});
}},arguments[1]||{}));
};
Effect.SlideUp=function(_8f){
_8f=$(_8f);
_8f.cleanWhitespace();
var _90=$(_8f.firstChild).getStyle("bottom");
return new Effect.Scale(_8f,window.opera?0:1,Object.extend({scaleContent:false,scaleX:false,scaleMode:"box",scaleFrom:100,restoreAfterFinish:true,beforeStartInternal:function(_91){
_91.element.makePositioned();
_91.element.firstChild.makePositioned();
if(window.opera){
_91.element.setStyle({top:""});
}
_91.element.makeClipping();
_91.element.show();
},afterUpdateInternal:function(_92){
_92.element.firstChild.setStyle({bottom:(_92.dims[0]-_92.element.clientHeight)+"px"});
},afterFinishInternal:function(_93){
_93.element.hide();
_93.element.undoClipping();
_93.element.firstChild.undoPositioned();
_93.element.undoPositioned();
_93.element.setStyle({bottom:_90});
}},arguments[1]||{}));
};
Effect.Squish=function(_94){
return new Effect.Scale(_94,window.opera?1:0,{restoreAfterFinish:true,beforeSetup:function(_95){
_95.element.makeClipping(_95.element);
},afterFinishInternal:function(_96){
_96.element.hide(_96.element);
_96.element.undoClipping(_96.element);
}});
};
Effect.Grow=function(_97){
_97=$(_97);
var _98=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.full},arguments[1]||{});
var _99={top:_97.style.top,left:_97.style.left,height:_97.style.height,width:_97.style.width,opacity:_97.getInlineOpacity()};
var _9a=_97.getDimensions();
var _9b,initialMoveY;
var _9c,moveY;
switch(_98.direction){
case "top-left":
_9b=initialMoveY=_9c=moveY=0;
break;
case "top-right":
_9b=_9a.width;
initialMoveY=moveY=0;
_9c=-_9a.width;
break;
case "bottom-left":
_9b=_9c=0;
initialMoveY=_9a.height;
moveY=-_9a.height;
break;
case "bottom-right":
_9b=_9a.width;
initialMoveY=_9a.height;
_9c=-_9a.width;
moveY=-_9a.height;
break;
case "center":
_9b=_9a.width/2;
initialMoveY=_9a.height/2;
_9c=-_9a.width/2;
moveY=-_9a.height/2;
break;
}
return new Effect.Move(_97,{x:_9b,y:initialMoveY,duration:0.01,beforeSetup:function(_9d){
_9d.element.hide();
_9d.element.makeClipping();
_9d.element.makePositioned();
},afterFinishInternal:function(_9e){
new Effect.Parallel([new Effect.Opacity(_9e.element,{sync:true,to:1,from:0,transition:_98.opacityTransition}),new Effect.Move(_9e.element,{x:_9c,y:moveY,sync:true,transition:_98.moveTransition}),new Effect.Scale(_9e.element,100,{scaleMode:{originalHeight:_9a.height,originalWidth:_9a.width},sync:true,scaleFrom:window.opera?1:0,transition:_98.scaleTransition,restoreAfterFinish:true})],Object.extend({beforeSetup:function(_9f){
_9f.effects[0].element.setStyle({height:"0px"});
_9f.effects[0].element.show();
},afterFinishInternal:function(_a0){
_a0.effects[0].element.undoClipping();
_a0.effects[0].element.undoPositioned();
_a0.effects[0].element.setStyle(_99);
}},_98));
}});
};
Effect.Shrink=function(_a1){
_a1=$(_a1);
var _a2=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.none},arguments[1]||{});
var _a3={top:_a1.style.top,left:_a1.style.left,height:_a1.style.height,width:_a1.style.width,opacity:_a1.getInlineOpacity()};
var _a4=_a1.getDimensions();
var _a5,moveY;
switch(_a2.direction){
case "top-left":
_a5=moveY=0;
break;
case "top-right":
_a5=_a4.width;
moveY=0;
break;
case "bottom-left":
_a5=0;
moveY=_a4.height;
break;
case "bottom-right":
_a5=_a4.width;
moveY=_a4.height;
break;
case "center":
_a5=_a4.width/2;
moveY=_a4.height/2;
break;
}
return new Effect.Parallel([new Effect.Opacity(_a1,{sync:true,to:0,from:1,transition:_a2.opacityTransition}),new Effect.Scale(_a1,window.opera?1:0,{sync:true,transition:_a2.scaleTransition,restoreAfterFinish:true}),new Effect.Move(_a1,{x:_a5,y:moveY,sync:true,transition:_a2.moveTransition})],Object.extend({beforeStartInternal:function(_a6){
_a6.effects[0].element.makePositioned();
_a6.effects[0].element.makeClipping();
},afterFinishInternal:function(_a7){
_a7.effects[0].element.hide();
_a7.effects[0].element.undoClipping();
_a7.effects[0].element.undoPositioned();
_a7.effects[0].element.setStyle(_a3);
}},_a2));
};
Effect.Pulsate=function(_a8){
_a8=$(_a8);
var _a9=arguments[1]||{};
var _aa=_a8.getInlineOpacity();
var _ab=_a9.transition||Effect.Transitions.sinoidal;
var _ac=function(pos){
return _ab(1-Effect.Transitions.pulse(pos));
};
_ac.bind(_ab);
return new Effect.Opacity(_a8,Object.extend(Object.extend({duration:3,from:0,afterFinishInternal:function(_ae){
_ae.element.setStyle({opacity:_aa});
}},_a9),{transition:_ac}));
};
Effect.Fold=function(_af){
_af=$(_af);
var _b0={top:_af.style.top,left:_af.style.left,width:_af.style.width,height:_af.style.height};
Element.makeClipping(_af);
return new Effect.Scale(_af,5,Object.extend({scaleContent:false,scaleX:false,afterFinishInternal:function(_b1){
new Effect.Scale(_af,1,{scaleContent:false,scaleY:false,afterFinishInternal:function(_b2){
_b2.element.hide();
_b2.element.undoClipping();
_b2.element.setStyle(_b0);
}});
}},arguments[1]||{}));
};
["setOpacity","getOpacity","getInlineOpacity","forceRerendering","setContentZoom","collectTextNodes","collectTextNodesIgnoreClass","childrenWithClassName"].each(function(f){
Element.Methods[f]=Element[f];
});
Element.Methods.visualEffect=function(_b4,_b5,_b6){
s=_b5.gsub(/_/,"-").camelize();
effect_class=s.charAt(0).toUpperCase()+s.substring(1);
new Effect[effect_class](_b4,_b6);
return $(_b4);
};
Element.addMethods();



//---
//3-glog.js
//---

var logging__=true;
function Log(){
}
Log.lines=[];
Log.write=function(s){
if(logging__){
this.lines.push(s);
this.show();
}
};
Log.writeXML=function(_2){
if(logging__){
var s0=_2.replace(/</g,"\n<");
var s1=xmlEscapeText(s0);
var s2=s1.replace(/\s*\n(\s|\n)*/g,"<br/>");
this.lines.push(s2);
this.show();
}
};
Log.writeRaw=function(s){
if(logging__){
this.lines.push(s);
this.show();
}
};
Log.clear=function(){
if(logging__){
var l=this.div();
l.innerHTML="";
this.lines=[];
}
};
Log.show=function(){
var l=this.div();
l.innerHTML+=this.lines.join("<br/>")+"<br/>";
this.lines=[];
l.scrollTop=l.scrollHeight;
};
Log.div=function(){
var l=document.getElementById("log");
if(!l){
l=document.createElement("div");
l.id="log";
l.style.position="absolute";
l.style.right="5px";
l.style.top="5px";
l.style.width="250px";
l.style.height="150px";
l.style.overflow="auto";
l.style.backgroundColor="#f0f0f0";
l.style.border="1px solid gray";
l.style.fontSize="10px";
l.style.padding="5px";
document.body.appendChild(l);
}
return l;
};
1;



//---
//4-scriptaculous-addon.js
//---

Effect.Execute=new Class.create();
Object.extend(Object.extend(Effect.Execute.prototype,Effect.Base.prototype),{initialize:function(_1){
this.callback=_1;
var _2=Object.extend({},arguments[1]||{});
this.start(_2);
},setup:function(){
},update:function(){
},finish:function(){
if(this.callback){
this.callback();
}
}});
Effect.ScaleToSize=Class.create();
Object.extend(Object.extend(Effect.ScaleToSize.prototype,Effect.Base.prototype),{initialize:function(_3,w,h){
this.element=$(_3);
this.w=w;
this.h=h;
var _6=Object.extend({center:false},arguments[3]||{});
this.start(_6);
},setup:function(){
this.restoreAfterFinish=this.options.restoreAfterFinish||false;
this.elementPositioning=this.element.getStyle("position");
this.originalStyle={};
["width","height","marginLeft","marginTop"].each(function(k){
this.originalStyle[k]=this.element.style[k];
}.bind(this));
this.d=Element.getDimensions(this.element);
this.diffWidth=(this.w-this.d.width);
this.diffHeight=(this.h-this.d.height);
},update:function(_8){
this.setDimensions(this.diffHeight*_8,this.diffWidth*_8);
},finish:function(_9){
if(this.restoreAfterFinish){
this.element.setStyle(this.originalStyle);
}
},setDimensions:function(_a,_b){
var s={};
s.width=this.d.width+_b+"px";
s.height=this.d.height+_a+"px";
if(this.options.center){
s["margin-left"]=(parseFloat(this.originalStyle["marginLeft"])-(_b/2))+"px";
s["margin-top"]=(parseFloat(this.originalStyle["marginTop"])-(_a/2))+"px";
}
this.element.setStyle(s);
}});
1;



//---
//5-slideshow.js
//---

var CartifactGallery=Class.create();
CartifactGallery.prototype={DefaultOptions:{container:"ss_container",loading:"ss_loading",nav:"ss_nav",crossfade:false,crossfadetime:0.8,img1:"ss_img1",img2:"ss_img2",img3:"ss_img3",logging:false},initialize:function(_1,_2){
this.url=_1;
this.options=Object.extend(Object.extend({},this.DefaultOptions),_2||{});
this.container=$(this.options.container);
this.loading=$(this.options.loading);
if(this.options.nav){
this.nav=$(this.options.nav);
}
this.log=(this.options.logging)?this._log:function(){
};
this.caster={};
JSBroadcaster.initialize(this.caster);
this.img1={el:$(this.options.img1),ready:false,loading:false,name:"1"};
this.img2={el:$(this.options.img2),ready:false,loading:false,name:"2"};
this.img3={el:$(this.options.img3),ready:false,loading:false,name:"3"};
this.active=null;
this.current=null;
this.size={w:0,h:0};
this.stack=[this.img1,this.img2,this.img3];
this.queue=Effect.Queues.get("CartifactGallery");
this.log("about to set onloads");
this.stack.each(function(_3){
_3.el.onload=this._imgLoad.bind(this,_3);
_3.el.onreadystatechange=this._imgState.bind(this,_3);
}.bind(this));
var _4=this;
var _5={"#g_prevLink:click":function(_6){
_4.prevPhoto();
},"#g_nextLink:click":function(_7){
_4.nextPhoto();
},"#ss_nav a:focus":function(_8){
_8.blur();
}};
EventSelectors.start(_5);
this.getSlides();
},_log:function(_9){
Log.write("ss: "+_9);
},addListener:function(_a){
this.caster.addListener(_a);
},_imgLoad:function(_b){
this.log("got load for "+_b.el.src);
_b.ready=true;
},_imgState:function(_c){
this.log("got state change to "+_c.el.readyState);
if(_c.el.readyState=="complete"){
_c.ready=true;
}
},getSlides:function(){
this.log("loading slides from "+this.url);
var _d=new Ajax.Request(this.url,{method:"get",onComplete:this._getSlidesResult.bind(this)});
},_getSlidesResult:function(_e){
var _f;
try{
_f=eval("("+_e.responseText+")");
}
catch(e){
}
this.slides=_f;
this.log("got slides... starting show: "+this.slides.length);
this.startShow();
},startShow:function(){
this.count=this.slides.length;
this.log("calling loadImg to start show");
this.loadImg(0);
},loadImg:function(i){
this.showLoader();
if(this.nav){
Element.hide(this.nav);
}
var img=this.getImgContainer();
this.log("got img container: "+img.name);
this.log("starting load for "+this.slides[i][0]);
img.loading=i;
setTimeout(function(){
img.el.src=this.slides[i][0];
}.bind(this),100);
setTimeout(function(){
this.log("img complete state is "+img.el.complete);
this.log("img ready state is "+img.el.readyState);
if(img.el.readyState=="complete"){
this.log("going directly to img display");
setTimeout(this.displayImg.bind(this,img),500);
}else{
this.log("waiting for image");
this._waitForImg(img);
}
}.bind(this),200);
},_waitForImg:function(img){
this.log("waiting for image: "+img.name+": "+img.ready);
if(!img.ready){
setTimeout(this._waitForImg.bind(this,img),500);
return true;
}
this.log("calling displayImg");
this.displayImg(img);
},displayImg:function(img){
this.log("getting dims of "+img.el);
var d=Element.getDimensions(img.el);
var cW=d.width;
var cH=d.height;
if(this.options.crossfade&&this.active){
Element.setStyle(img.el,{"z-index":2});
Element.setStyle(this.active.el,{"z-index":1});
new Effect.Appear(img.el,{duration:this.options.crossfadetime,queue:{position:"end",scope:this.queue}});
var _17=this.active.el;
new Effect.Execute(function(){
Element.hide(_17);
}.bind(this),{duration:0.1,queue:{position:"end",scope:this.queue}});
this.hideLoader();
}else{
if(this.active){
this.log("fading out active img: "+this.active.name);
new Effect.Fade(this.active.el,{duration:0.5,queue:{position:"end",scope:this.queue},afterFinish:function(){
this.log("done fading old img");
}.bind(this)});
}
if(this.size.w!=cW||this.size.h!=cH){
this.log("resizing container to "+cW+"x"+cH);
new Effect.ScaleToSize(this.container,cW,cH,{center:true,duration:0.7,queue:{position:"end",scope:this.queue},afterFinish:function(){
this.log("done resizing");
}.bind(this)});
}
this.size.w=cW;
this.size.h=cH;
this.log("hiding loader");
this.hideLoader();
new Effect.Appear(img.el,{duration:0.5,queue:{position:"end",scope:this.queue}});
}
if(this.nav){
new Effect.Execute(function(){
this.log("showing nav");
Element.show(this.nav);
}.bind(this),{duration:0.1,queue:{position:"end",scope:this.queue}});
}
var _18=this.active;
new Effect.Execute(function(){
this.cleanAndReturn(_18);
}.bind(this),{duration:0.1,queue:{position:"end",scope:this.queue}});
this.active=img;
this.current=img.loading;
this.caster.broadcastMessage("onChange",this.current);
},getImgContainer:function(){
var img=this.stack.shift();
return img;
},cleanAndReturn:function(img){
if(!img){
return true;
}
this.log("clean and return pushing img back on stack");
img.ready=false;
img.loading=null;
img.src="";
this.stack.push(img);
},nextPhoto:function(){
var i=(this.current==(this.count-1))?0:this.current+1;
this.loadImg(i);
},prevPhoto:function(){
var i=(this.current==0)?this.count-1:this.current-1;
this.loadImg(i);
},goToPhoto:function(i){
if(i>=0&&i<this.count){
this.loadImg(i);
}
},showLoader:function(){
this.log("about to show loader: "+this.loading);
this.log("in showLoader");
Effect.Appear(this.loading,{duration:0.25,queue:{position:"end",scope:this.queue},afterFinish:function(){
this.log("done showing loader");
}.bind(this)});
},hideLoader:function(){
this.log("in hideLoader");
Effect.Fade(this.loading,{duration:0.25,queue:{position:"end",scope:this.queue}});
}};
CartifactGallery.Thumbs=Class.create();
CartifactGallery.Thumbs.prototype={DefaultOptions:{logging:false,alpha:true,thumbEl:"img"},initialize:function(_1e,ids,_20){
this.options=Object.extend(Object.extend({},this.DefaultOptions),_20||{});
this.log=(this.options.logging)?this._log:function(){
};
this.show=_1e;
this.ids=ids;
this.thumbs=[];
this.rmap={};
var i=0;
this.ids.each(function(id){
var el=$(id);
this.thumbs.push(el);
this.rmap[id]=i;
Event.observe(el,"click",this.callSlide.bindAsEventListener(this));
i++;
}.bind(this));
var _24={onChange:function(i){
this.log("got slide change to "+i);
this.setActive(i);
}.bind(this)};
this.show.addListener(_24);
},_log:function(msg){
Log.write("th: "+msg);
},setActive:function(i){
this.thumbs.each(function(el){
Element.removeClassName(el,"active");
if(this.options.alpha){
Element.setOpacity(el,0.6);
}
}.bind(this));
var el=this.thumbs[i];
if(el){
this.log("setting active image "+el.id);
Element.addClassName(el,"active");
if(this.options.alpha){
Element.setOpacity(el,1);
}
}
},attachClicks:function(){
this.thumbs.each(function(t){
Event.observe(t,"click",this.classSlide.bindAsEventListener(this));
});
},callSlide:function(evt){
var el=Event.findElement(evt,this.options.thumbEl);
this.log("el is "+el.id);
var i=this.rmap[el.id];
this.log("index is "+i);
this.show.loadImg(i);
}};
CartifactGallery.ThumbGroups=Class.create();
CartifactGallery.ThumbGroups.prototype={DefaultOptions:{logging:false,stretchers:"#ss_thumbs .stretch",toggles:"#ss_thumbs .title"},initialize:function(_2e,_2f,_30,_31){
this.options=Object.extend(Object.extend({},this.DefaultOptions),_31||{});
this.log=(this.options.logging)?this._log:function(){
};
this.show=_2e;
this.thumbs=_2f;
this.groups=_30;
this.map=[];
this.log("mapping groups");
this.groups.each(function(g){
var el=$(g[0]);
for(var i=0;i<g[1];i++){
this.map.push(el);
}
}.bind(this));
var _35=$$(this.options.stretchers);
var _36=$$(this.options.toggles);
this.accordion=new fx.Accordion(_36,_35,{opacity:false,duration:400});
this.log("created accordion");
var _37={onChange:function(i){
this.setActiveImg(i);
}.bind(this)};
this.show.addListener(_37);
},_log:function(msg){
Log.write("tg: "+msg);
},setActiveImg:function(i){
var el=this.map[i];
if(el){
this.accordion.showThisHideOpen(el);
}
}};
var JSBroadcaster={};
JSBroadcaster.initialize=function(obj){
obj._listeners=new Array();
obj.addListener=function(obj){
for(var i=0;i<this._listeners.length;i++){
if(this._listeners[i]==obj){
return false;
}
}
this._listeners.push(obj);
return true;
};
obj.removeListener=function(obj){
for(var i=0;i<this._listeners.length;i++){
if(this._listeners[i]==obj){
this._listeners.splice(i,1);
return true;
}
}
return false;
};
obj.broadcastMessage=function(_41,str){
for(var i=0;i<this._listeners.length;i++){
if(typeof this._listeners[i][_41]=="function"){
this._listeners[i][_41](str);
}
}
};
};
1;



//---
//eventselectors.js
//---

var EventSelectors={version:"1.0_pre",cache:[],start:function(_1){
this.rules=_1||{};
this.timer=new Array();
this._extendRules();
this.assign(this.rules);
},assign:function(_2){
var _3=null;
this._unloadCache();
_2._each(function(_4){
var _5=$A(_4.key.split(","));
_5.each(function(_6){
var _7=_6.split(":");
var _8=_7[1];
$$(_7[0]).each(function(_9){
if(_7[1]==""||_7.length==1){
return _4.value(_9);
}
if(_8.toLowerCase()=="loaded"){
this.timer[_7[0]]=setInterval(this._checkLoaded.bind(this,_9,_7[0],_4),15);
}else{
_3=function(_a){
var _b=Event.element(_a);
if(_b.nodeType==3){
_b=_b.parentNode;
}
_4.value($(_b),_a);
};
this.cache.push([_9,_8,_3]);
Event.observe(_9,_8,_3);
}
}.bind(this));
}.bind(this));
}.bind(this));
},_unloadCache:function(){
if(!this.cache){
return;
}
for(var i=0;i<this.cache.length;i++){
Event.stopObserving.apply(this,this.cache[i]);
this.cache[i][0]=null;
}
this.cache=[];
},_checkLoaded:function(_d,_e,_f){
var _10=$(_d);
if(_d.tagName!="undefined"){
clearInterval(this.timer[_e]);
_f.value(_10);
}
},_extendRules:function(){
Object.extend(this.rules,{_each:function(_11){
for(key in this){
if(key=="_each"){
continue;
}
var _12=this[key];
var _13=[key,_12];
_13.key=key;
_13.value=_12;
_11(_13);
}
}});
}};
1;



//---
//flashobject.js
//---

if(typeof com=="undefined"){
var com=new Object();
}
if(typeof com.deconcept=="undefined"){
com.deconcept=new Object();
}
if(typeof com.deconcept.util=="undefined"){
com.deconcept.util=new Object();
}
if(typeof com.deconcept.FlashObjectUtil=="undefined"){
com.deconcept.FlashObjectUtil=new Object();
}
com.deconcept.FlashObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.createElement||!document.getElementById){
return;
}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
this.useExpressInstall=_7;
if(_1){
this.setAttribute("swf",_1);
}
if(id){
this.setAttribute("id",id);
}
if(w){
this.setAttribute("width",w);
}
if(h){
this.setAttribute("height",h);
}
if(_5){
this.setAttribute("version",new com.deconcept.PlayerVersion(_5.toString().split(".")));
}
this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);
if(c){
this.addParam("bgcolor",c);
}
var q=_8?_8:"high";
this.addParam("quality",q);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){
this.setAttribute("redirectUrl",_a);
}
};
com.deconcept.FlashObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},createParamTag:function(n,v){
var p=document.createElement("param");
p.setAttribute("name",n);
p.setAttribute("value",v);
return p;
},getVariablePairs:function(){
var _19=new Array();
var key;
var _1b=this.getVariables();
for(key in _1b){
_19.push(key+"="+_1b[key]);
}
return _19;
},getFlashHTML:function(){
var _1c="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
}
_1c="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_1c+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1d=this.getParams();
for(var key in _1d){
_1c+=[key]+"=\""+_1d[key]+"\" ";
}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){
_1c+="flashvars=\""+_1f+"\"";
}
_1c+="/>";
}else{
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","ActiveX");
}
_1c="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_1c+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />\"";
var _20=this.getParams();
for(var key in _20){
_1c+="<param name=\""+key+"\" value=\""+_20[key]+"\">";
}
var _22=this.getVariablePairs().join("&");
if(_22.length>0){
_1c+="<param name=\"flashvars\" value=\""+_22+"\">";
_1c+="</object>";
}
}
return _1c;
},write:function(_23){
if(this.useExpressInstall){
var _24=new com.deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_24)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);
}
}else{
this.setAttribute("doExpressInstall",false);
}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _23=="string")?document.getElementById(_23):_23;
n.innerHTML=this.getFlashHTML();
}else{
if(this.getAttribute("redirectUrl")!=""){
document.location.replace(this.getAttribute("redirectUrl"));
}
}
}};
com.deconcept.FlashObjectUtil.getPlayerVersion=function(_26,_27){
var _28=new com.deconcept.PlayerVersion(0,0,0);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){
_28=new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));
}
}else{
try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for(var i=3;axo!=null;i++){
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
_28=new com.deconcept.PlayerVersion([i,0,0]);
}
}
catch(e){
}
if(_26&&_28.major>_26.major){
return _28;
}
if(!_26||((_26.minor!=0||_26.rev!=0)&&_28.major==_26.major)||_28.major!=6||_27){
try{
_28=new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}
catch(e){
}
}
}
return _28;
};
com.deconcept.PlayerVersion=function(_2c){
this.major=parseInt(_2c[0])||0;
this.minor=parseInt(_2c[1])||0;
this.rev=parseInt(_2c[2])||0;
};
com.deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){
return false;
}
if(this.major>fv.major){
return true;
}
if(this.minor<fv.minor){
return false;
}
if(this.minor>fv.minor){
return true;
}
if(this.rev<fv.rev){
return false;
}
return true;
};
com.deconcept.util={getRequestParameter:function(_2e){
var q=document.location.search||document.location.href.hash;
if(q){
var _30=q.indexOf(_2e+"=");
var _31=(q.indexOf("&",_30)>-1)?q.indexOf("&",_30):q.length;
if(q.length>1&&_30>-1){
return q.substring(q.indexOf("=",_30)+1,_31);
}
}
return "";
},removeChildren:function(n){
while(n.hasChildNodes()){
n.removeChild(n.firstChild);
}
}};
if(Array.prototype.push==null){
Array.prototype.push=function(_33){
this[this.length]=_33;
return this.length;
};
}
var getQueryParamValue=com.deconcept.util.getRequestParameter;
var FlashObject=com.deconcept.FlashObject;
function FlashSerializer(_33){
this.useCdata=_33;
}
FlashSerializer.prototype.encodeVal=function(val){
if(document.encodeURIComponent){
return encodeURIComponent(val);
}
return escape(val);
};
FlashSerializer.prototype.serialize=function(val){
var _36=new Array();
switch(typeof val){
case "undefined":
_36[0]="undef";
break;
case "string":
_36[0]="str";
_36[1]=this.encodeVal(val);
break;
case "number":
_36[0]="num";
_36[1]=val.toString();
break;
case "boolean":
_36[0]="bool";
_36[1]=val.toString();
break;
case "object":
if(val==null){
_36[0]="null";
}else{
if(val.getTime){
_36[0]="date";
_36[1]=this.encodeVal(val.getTime());
}else{
try{
_36[0]="xser";
_36[1]=this.encodeVal(this._serializeXML(val));
}
catch(e){
}
}
}
break;
default:
}
return _36;
};
FlashSerializer.prototype._serializeXML=function(obj){
var doc=new Object();
doc.xml="<fp>";
this._serializeNode(obj,doc,null);
doc.xml+="</fp>";
return doc.xml;
};
FlashSerializer.prototype._serializeNode=function(obj,doc,_3b){
switch(typeof obj){
case "undefined":
doc.xml+="<undf"+this._addName(_3b)+"/>";
break;
case "string":
doc.xml+="<str"+this._addName(_3b)+">"+this._escapeXml(obj)+"</str>";
break;
case "number":
doc.xml+="<num"+this._addName(_3b)+">"+obj+"</num>";
break;
case "boolean":
doc.xml+="<bool"+this._addName(_3b)+" val=\""+obj+"\"/>";
break;
case "object":
if(obj==null){
doc.xml+="<null"+this._addName(_3b)+"/>";
}else{
if(obj.getTime){
doc.xml+="<date"+this._addName(_3b)+">"+obj.getTime()+"</date>";
}else{
if(obj.length!="undefined"){
doc.xml+="<array"+this._addName(_3b)+">";
for(var i=0;i<obj.length;++i){
this._serializeNode(obj[i],doc,null);
}
doc.xml+="</array>";
}else{
doc.xml+="<obj"+this._addName(_3b)+">";
for(var n in obj){
if(typeof (obj[n])=="function"){
continue;
}
this._serializeNode(obj[n],doc,n);
}
doc.xml+="</obj>";
}
}
}
break;
default:
}
};
FlashSerializer.prototype._addName=function(_3e){
if(_3e!=null){
return " name=\""+_3e+"\"";
}
return "";
};
FlashSerializer.prototype._escapeXml=function(str){
if(this.useCdata){
return "<![CDATA["+str+"]]>";
}else{
return str.replace(/&/g,"&amp;").replace(/</g,"&lt;");
}
};
com.deconcept.FlashObject.prototype.addProxy=function(_40,_41){
this.uid=new Date().getTime();
FlashObject.fpmap[this.uid]=this;
this.q=new Array();
this.callbackScope=_40;
this.proxySwfName=_41?_41:"JavaScriptFlashGateway.swf";
this.flashSerializer=new FlashSerializer(false);
this.addVariable("lcId",this.uid);
var _42=document.all?true:false;
this.addVariable("jsintkit_isIE",_42);
if(_42){
var _43=document.createElement("script");
_43.setAttribute("type","text/vbscript");
_43.text="Sub "+this.getAttribute("id")+"_FSCommand(ByVal command, ByVal args) call com.deconcept.FlashObject.callJS(command, args) End Sub";
document.getElementsByTagName("head")[0].appendChild(_43);
}
};
com.deconcept.FlashObject.prototype.call=function(){
if(!this.uid||arguments.length==0){
return;
}
this.q.push(arguments);
if(this.q.length==1){
this._execute(arguments);
}
};
com.deconcept.FlashObject.prototype._execute=function(_44){
var fo=new FlashObject(this.proxySwfName,"flashproxy",1,1,6);
fo.addVariable("lcId",this.uid);
fo.addVariable("functionName",_44[0]);
if(_44.length>1){
for(var i=1;i<_44.length;++i){
var _47=this.flashSerializer.serialize(_44[i]);
fo.addVariable("t"+(i-1),_47[0]);
if(_47.length>1){
fo.addVariable("d"+(i-1),_47[1]);
}
}
}
var _48="_flash_proxy_"+this.uid;
if(!document.getElementById(_48)){
var _49=document.createElement("div");
_49.id=_48;
document.body.appendChild(_49);
}
fo.write(_48);
};
com.deconcept.FlashObject.callJS=function(_4a,_4b){
var _4c=eval(_4b);
var _4d=com.deconcept.FlashObject.fpmap[_4c.shift()].callbackScope;
if(_4d&&(_4a.indexOf(".")<0)){
var _4e=_4d[_4a];
_4e.apply(_4d,_4c);
}else{
var _4e=eval(_4a);
_4e.apply(_4e,_4c);
}
};
com.deconcept.FlashObject.callComplete=function(uid){
var fp=com.deconcept.FlashObject.fpmap[uid];
if(fp!=null){
fp.q.shift();
if(fp.q.length>0){
fp._execute(fp.q[0]);
}
}
};
com.deconcept.FlashObject.fpmap=new Object();



//---
//freerunss.js
//---

var FreeRunSS=new Class.create();
FreeRunSS.prototype={DefaultOptions:{container:"fss_container",img1:"fss_img1",img2:"fss_img2",img3:"fss_img3",replay:true,logging:false,runonce:false,manual:false,delay:2000,crossfadetime:0.5,crossfade:true},initialize:function(_1,_2){
this.url=_1;
this.options=Object.extend(Object.extend({},this.DefaultOptions),_2||{});
this.log=(this.options.logging)?this._log:function(){
};
this.slides=[];
this.slideOptions=[];
this.current=0;
this.count=null;
this.started=false;
this.container=$(this.options.container);
this.queue=Effect.Queues.get("FreeRunSS");
this.caster={};
JSBroadcaster.initialize(this.caster);
this.loadTimer=null;
this.switchTimer=null;
this.img1={el:$(this.options.img1),ready:false,pos:null,name:"1"};
this.img2={el:$(this.options.img2),ready:false,pos:null,name:"2"};
this.img3={el:$(this.options.img3),ready:false,pos:null,name:"3"};
this.stack=[this.img1,this.img2,this.img3];
this.active=null;
this.stack.each(function(_3){
_3.el.onload=this._imgLoad.bind(this,_3);
_3.el.onreadystatechange=this._imgState.bind(this,_3);
}.bind(this));
this.lstack=[];
this.size={w:null,h:null};
this.log("getting slides");
this.getSlides();
},_log:function(_4){
Log.write("fss: "+_4);
},addListener:function(_5){
this.caster.addListener(_5);
},getSlides:function(){
var _6=new Ajax.Request(this.url,{method:"get",onComplete:this._getSlidesResult.bind(this)});
},_getSlidesResult:function(_7){
var _8;
try{
_8=eval("("+_7.responseText+")");
}
catch(e){
}
this.slides=_8;
this.count=this.slides.length;
this.log("got slides... setting options");
this.slides.each(function(s,i){
this.log("slide options for "+s[0]);
this.slideOptions.push(Object.extend(Object.extend({},this.options),s[1]||{}));
}.bind(this));
this.log("calling startShow");
this.startShow();
},startShow:function(){
this.log("in startShow");
if(!this.options.manual){
this.caster.broadcastMessage("playing");
}
this.log("calling loadImg to start show");
this._loadImg(0);
this.trySwitch();
},restart:function(){
this.log("got restart request");
this.options.manual=false;
this.startShow();
},pause:function(){
this.log("got a pause");
this.options.manual=true;
this.clearStack();
this.caster.broadcastMessage("paused");
if(this.loadTimer){
clearTimeout(this.loadTimer);
}
if(this.switchTimer){
clearTimeout(this.switchTimer);
}
},playFromHere:function(){
this.log("play from here");
this.options.manual=false;
var n=this.getNextIndex();
if(!n){
return false;
}
this.caster.broadcastMessage("playing");
this._loadImg(n);
this.trySwitch();
return true;
},getNextIndex:function(i){
i=i||this.active.pos;
if(i==null){
return null;
}
if(i+1<this.count){
return i+1;
}else{
return null;
}
},getLastIndex:function(i){
i=i||this.active.pos;
},loadImg:function(i){
this.log("got loadImg... adding to queue: "+i);
this.options.manual=true;
this.clearStack();
if(this.loadTimer){
clearTimeout(this.loadTimer);
}
if(this.switchTimer){
clearTimeout(this.switchTimer);
}
this.caster.broadcastMessage("paused");
this.tryLoad(i);
this.trySwitch();
},getImgContainer:function(){
var _f=this.stack.shift();
return _f;
},cleanAndReturn:function(img){
if(!img){
return true;
}
this.log("clean and return pushing img back on stack");
img.ready=false;
img.pos=null;
this.stack.push(img);
this.log("stack is now "+this.stack.length);
},clearStack:function(){
this.log("clearing load stack");
var _11=this.lstack;
this.lstack=[];
_11.each(function(img){
this.log("clearStack for img: "+img.name);
this.cleanAndReturn(img);
}.bind(this));
},_loadImg:function(i){
this.log("_loadImg called with i "+i);
if(!this.slides[i]){
return null;
}
var img=this.getImgContainer();
this.log("img is "+img.name);
this.log("starting load "+this.slides[i][0]);
img.pos=i;
this.lstack.push(img);
if(img.el.src.indexOf(this.slides[i][0])!=-1){
this.log("coincidence!  src match");
this._imgLoad(img);
}else{
this.log("firing new src load");
img.el.src=this.slides[i][0];
}
},_imgLoad:function(img){
this.log("got load for "+img.el.src);
img.ready=true;
if(this.options.manual){
this.log("_imgLoad on manual...  doing nothing.");
}else{
this.log("loaded pos for "+img.name+" is "+img.pos);
if(img.pos!=null){
if((img.pos+1)<this.count){
this.tryLoad(img.pos+1);
}else{
if(this.options.runonce){
}else{
this.tryLoad(0);
}
}
}
}
},_imgState:function(img){
this.log("got state change to "+img.el.readyState);
if(img.el.readyState=="complete"){
img.ready=true;
}
},tryLoad:function(i){
this.log("in tryLoad for "+i);
if(i>=this.count){
this.log("pos reached count.  loading is done.");
return true;
}
if(this.stack.length){
this.log("starting new load for "+i);
this.loadTimer=null;
this._loadImg(i);
}else{
this.log("stalling for a container...");
this.loadTimer=setTimeout(this.tryLoad.bind(this,i),600);
}
},trySwitch:function(){
if(this.lstack.length){
this.log("images on load stack: "+this.lstack.length);
this.lstack.each(function(img,i){
this.log("stack i/img is: "+i+"/"+img.pos);
}.bind(this));
if(this.lstack[0].ready){
this.log("image is ready");
this.switchTimer=null;
var img=this.lstack.shift();
this.showImg(img);
}else{
this.log("delaying");
this.switchTimer=setTimeout(this.trySwitch.bind(this),300);
}
}else{
if(!this.options.manual){
this.caster.broadcastMessage("finished");
}
}
},showImg:function(img){
this.log("going to show image "+img.name);
this.log("pos is "+img.pos);
this.log("file is "+img.el.src);
var _1c=this.slideOptions[img.pos];
this.log("opts is "+_1c.delay);
if(this.caster){
new Effect.Execute(function(){
this.caster.broadcastMessage("onChange",img.pos);
}.bind(this),{duration:0.1,queue:{position:"end",scope:this.queue}});
}
if(_1c.crossfade&&this.active){
Element.setStyle(img.el,{"z-index":2});
Element.setStyle(this.active.el,{"z-index":1});
new Effect.Appear(img.el,{duration:_1c.crossfadetime,queue:{position:"end",scope:this.queue}});
new Effect.Execute(function(){
Element.hide(this.active.el);
}.bind(this),{duration:0.1,queue:{position:"end",scope:this.queue}});
}else{
if(this.active){
new Effect.Fade(this.active.el,{queue:{position:"end",scope:this.queue}});
}
var d=Element.getDimensions(img.el);
this.log("new image is "+d.width+"x"+d.height);
var cW=d.width;
var cH=d.height;
this.log("resizing to "+cW+"x"+cH);
if(cW!=this.size.w||cH!=this.size.h){
new Effect.ScaleToSize(this.container,cW,cH,{center:true,duration:0.4,queue:{position:"end",scope:this.queue}});
}
this.size.w=cW;
this.size.h=cH;
new Effect.Appear(img.el,{queue:{position:"end",scope:this.queue}});
}
new Effect.Execute(function(){
this.cleanAndReturn(this.active);
this.active=img;
setTimeout(this.trySwitch.bind(this),_1c.delay);
}.bind(this),{duration:0.1,queue:{position:"end",scope:this.queue}});
}};
1;



//---
//highlighter.js
//---

var Highlighter=new Class.create();
Highlighter.prototype={DefaultOptions:{logging:false,alpha:true,className:null},initialize:function(_1,_2){
this.options=Object.extend(Object.extend({},this.DefaultOptions),_2||{});
this.log=(this.options.logging)?this._log:function(){
};
var _3={};
this.lookup={};
this.all=[];
this.active=null;
this.toActivate=null;
var _4=this;
_1.each(function(p){
var _6=$(p[0]);
var _7=$(p[1]);
_4.lookup[p[0]]=_7;
_4.lookup[p[1]]=_6;
_4.all.push(_6,_7);
_3["#"+p[0]+":mouseover, #"+p[1]+":mouseover"]=_4.fON.bind(_4);
_3["#"+p[0]+":mouseout, #"+p[1]+":mouseout"]=_4.fTICK.bind(_4);
});
EventSelectors.start(_3);
},_log:function(_8){
Log.write("hl: "+_8);
},findElement:function(el){
var p=el.parentNode;
if(p){
if(this.lookup[p.id]){
return p;
}else{
return this.findElement(p);
}
}else{
return null;
}
},fON:function(el,_c){
if(!this.lookup[el.id]){
el=this.findElement(el);
}
if(!el){
return false;
}
if(this.timer){
clearTimeout(this.timer);
this.timer=null;
}
if(el==this.active){
return true;
}
this.all.each(function(_d){
if(this.options.alpha){
Element.setOpacity(_d,0.6);
}
if(this.options.className){
Element.removeClassName(_d,this.options.className);
}
}.bind(this));
if(this.options.alpha){
Element.setOpacity(this.lookup[el.id],1);
Element.setOpacity(el,1);
}
if(this.options.className){
Element.addClassName(this.lookup[el.id],this.options.className);
Element.addClassName(el,this.options.className);
}
this.active=el;
},fOFF:function(){
this.all.each(function(_e){
if(this.options.alpha){
Element.setOpacity(_e,1);
}
if(this.options.className){
Element.removeClassName(_e,this.options.className);
}
}.bind(this));
this.timer=null;
this.active=null;
},fTICK:function(el){
this.timer=setTimeout(this.fOFF.bind(this),500);
}};
1;



//---
//moo.fx.js
//---

var fx=new Object();
fx.Base=function(){
};
fx.Base.prototype={setOptions:function(_1){
this.options={duration:500,onComplete:"",transition:fx.sinoidal};
Object.extend(this.options,_1||{});
},step:function(){
var _2=(new Date).getTime();
if(_2>=this.options.duration+this.startTime){
this.now=this.to;
clearInterval(this.timer);
this.timer=null;
if(this.options.onComplete){
setTimeout(this.options.onComplete.bind(this),10);
}
}else{
var _3=(_2-this.startTime)/(this.options.duration);
this.now=this.options.transition(_3)*(this.to-this.from)+this.from;
}
this.increase();
},custom:function(_4,to){
if(this.timer!=null){
return;
}
this.from=_4;
this.to=to;
this.startTime=(new Date).getTime();
this.timer=setInterval(this.step.bind(this),13);
},hide:function(){
this.now=0;
this.increase();
},clearTimer:function(){
clearInterval(this.timer);
this.timer=null;
}};
fx.Layout=Class.create();
fx.Layout.prototype=Object.extend(new fx.Base(),{initialize:function(el,_7){
this.el=$(el);
this.el.style.overflow="hidden";
this.iniWidth=this.el.offsetWidth;
this.iniHeight=this.el.offsetHeight;
this.setOptions(_7);
}});
fx.Height=Class.create();
Object.extend(Object.extend(fx.Height.prototype,fx.Layout.prototype),{increase:function(){
this.el.style.height=this.now+"px";
},toggle:function(){
if(this.el.offsetHeight>0){
this.custom(this.el.offsetHeight,0);
}else{
this.custom(0,this.el.scrollHeight);
}
}});
fx.Width=Class.create();
Object.extend(Object.extend(fx.Width.prototype,fx.Layout.prototype),{increase:function(){
this.el.style.width=this.now+"px";
},toggle:function(){
if(this.el.offsetWidth>0){
this.custom(this.el.offsetWidth,0);
}else{
this.custom(0,this.iniWidth);
}
}});
fx.Opacity=Class.create();
fx.Opacity.prototype=Object.extend(new fx.Base(),{initialize:function(el,_9){
this.el=$(el);
this.now=1;
this.increase();
this.setOptions(_9);
},increase:function(){
if(this.now==1&&(/Firefox/.test(navigator.userAgent))){
this.now=0.9999;
}
this.setOpacity(this.now);
},setOpacity:function(_a){
if(_a==0&&this.el.style.visibility!="hidden"){
this.el.style.visibility="hidden";
}else{
if(this.el.style.visibility!="visible"){
this.el.style.visibility="visible";
}
}
if(window.ActiveXObject){
this.el.style.filter="alpha(opacity="+_a*100+")";
}
this.el.style.opacity=_a;
},toggle:function(){
if(this.now>0){
this.custom(1,0);
}else{
this.custom(0,1);
}
}});
fx.sinoidal=function(_b){
return ((-Math.cos(_b*Math.PI)/2)+0.5);
};
fx.linear=function(_c){
return _c;
};
fx.cubic=function(_d){
return Math.pow(_d,3);
};
fx.circ=function(_e){
return Math.sqrt(_e);
};



//---
//moo.fx.pack.js
//---

fx.Scroll=Class.create();
fx.Scroll.prototype=Object.extend(new fx.Base(),{initialize:function(_1){
this.setOptions(_1);
},scrollTo:function(el){
var _3=Position.cumulativeOffset($(el))[1];
var _4=window.innerHeight||document.documentElement.clientHeight;
var _5=document.documentElement.scrollHeight;
var _6=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;
if(_3+_4>_5){
this.custom(_6,_3-_4+(_5-_3));
}else{
this.custom(_6,_3);
}
},increase:function(){
window.scrollTo(0,this.now);
}});
fx.Text=Class.create();
fx.Text.prototype=Object.extend(new fx.Base(),{initialize:function(el,_8){
this.el=$(el);
this.setOptions(_8);
if(!this.options.unit){
this.options.unit="em";
}
},increase:function(){
this.el.style.fontSize=this.now+this.options.unit;
}});
fx.Combo=Class.create();
fx.Combo.prototype={setOptions:function(_9){
this.options={opacity:true,height:true,width:false};
Object.extend(this.options,_9||{});
},initialize:function(el,_b){
this.el=$(el);
this.setOptions(_b);
if(this.options.opacity){
this.o=new fx.Opacity(el,_b);
_b.onComplete=null;
}
if(this.options.height){
this.h=new fx.Height(el,_b);
_b.onComplete=null;
}
if(this.options.width){
this.w=new fx.Width(el,_b);
}
},toggle:function(){
this.checkExec("toggle");
},hide:function(){
this.checkExec("hide");
},clearTimer:function(){
this.checkExec("clearTimer");
},checkExec:function(_c){
if(this.o){
this.o[_c]();
}
if(this.h){
this.h[_c]();
}
if(this.w){
this.w[_c]();
}
},resizeTo:function(_d,_e){
if(this.h&&this.w){
this.h.custom(this.el.offsetHeight,this.el.offsetHeight+_d);
this.w.custom(this.el.offsetWidth,this.el.offsetWidth+_e);
}
},customSize:function(_f,wto){
if(this.h&&this.w){
this.h.custom(this.el.offsetHeight,_f);
this.w.custom(this.el.offsetWidth,wto);
}
}};
fx.Accordion=Class.create();
fx.Accordion.prototype={setOptions:function(_11){
this.options={delay:100,opacity:false};
Object.extend(this.options,_11||{});
},initialize:function(_12,_13,_14){
this.elements=_13;
this.setOptions(_14);
var _14=_14||"";
this.fxa=[];
if(_14&&_14.onComplete){
_14.onFinish=_14.onComplete;
}
_13.each(function(el,i){
_14.onComplete=function(){
if(_14.onFinish){
_14.onFinish(el);
}
};
this.fxa[i]=new fx.Combo(el,_14);
this.fxa[i].hide();
}.bind(this));
_12.each(function(tog,i){
if(typeof tog.onclick=="function"){
var _19=tog.onclick;
}
tog.onclick=function(){
if(_19){
_19();
}
this.showThisHideOpen(_13[i]);
}.bind(this);
}.bind(this));
},showThisHideOpen:function(_1a){
this.elements.each(function(el,j){
if(el.offsetHeight>0&&el!=_1a){
this.clearAndToggle(el,j);
}
if(el==_1a&&_1a.offsetHeight==0){
setTimeout(function(){
this.clearAndToggle(_1a,j);
}.bind(this),this.options.delay);
}
}.bind(this));
},clearAndToggle:function(el,i){
this.fxa[i].clearTimer();
this.fxa[i].toggle();
}};
var Remember=new Object();
Remember=function(){
};
Remember.prototype={initialize:function(el,_20){
this.el=$(el);
this.days=365;
this.options=_20;
this.effect();
var _21=this.readCookie();
if(_21){
this.fx.now=_21;
this.fx.increase();
}
},setCookie:function(_22){
var _23=new Date();
_23.setTime(_23.getTime()+(this.days*24*60*60*1000));
var _24="; expires="+_23.toGMTString();
document.cookie=this.el+this.el.id+this.prefix+"="+_22+_24+"; path=/";
},readCookie:function(){
var _25=this.el+this.el.id+this.prefix+"=";
var ca=document.cookie.split(";");
for(var i=0;c=ca[i];i++){
while(c.charAt(0)==" "){
c=c.substring(1,c.length);
}
if(c.indexOf(_25)==0){
return c.substring(_25.length,c.length);
}
}
return false;
},custom:function(_28,to){
if(this.fx.now!=to){
this.setCookie(to);
this.fx.custom(_28,to);
}
}};
fx.RememberHeight=Class.create();
fx.RememberHeight.prototype=Object.extend(new Remember(),{effect:function(){
this.fx=new fx.Height(this.el,this.options);
this.prefix="height";
},toggle:function(){
if(this.el.offsetHeight==0){
this.setCookie(this.el.scrollHeight);
}else{
this.setCookie(0);
}
this.fx.toggle();
},resize:function(to){
this.setCookie(this.el.offsetHeight+to);
this.fx.custom(this.el.offsetHeight,this.el.offsetHeight+to);
},hide:function(){
if(!this.readCookie()){
this.fx.hide();
}
}});
fx.RememberText=Class.create();
fx.RememberText.prototype=Object.extend(new Remember(),{effect:function(){
this.fx=new fx.Text(this.el,this.options);
this.prefix="text";
}});
Array.prototype.iterate=function(_2b){
for(var i=0;i<this.length;i++){
_2b(this[i],i);
}
};
if(!Array.prototype.each){
Array.prototype.each=Array.prototype.iterate;
}
fx.expoIn=function(pos){
return Math.pow(2,10*(pos-1));
};
fx.expoOut=function(pos){
return (-Math.pow(2,-10*pos)+1);
};
fx.quadIn=function(pos){
return Math.pow(pos,2);
};
fx.quadOut=function(pos){
return -(pos)*(pos-2);
};
fx.circOut=function(pos){
return Math.sqrt(1-Math.pow(pos-1,2));
};
fx.circIn=function(pos){
return -(Math.sqrt(1-Math.pow(pos,2))-1);
};
fx.backIn=function(pos){
return (pos)*pos*((2.7)*pos-1.7);
};
fx.backOut=function(pos){
return ((pos-1)*(pos-1)*((2.7)*(pos-1)+1.7)+1);
};
fx.sineOut=function(pos){
return Math.sin(pos*(Math.PI/2));
};
fx.sineIn=function(pos){
return -Math.cos(pos*(Math.PI/2))+1;
};
fx.sineInOut=function(pos){
return -(Math.cos(Math.PI*pos)-1)/2;
};



//---
//sifr.js
//---

var parseSelector=(function(){
var _1=/\s*,\s*/;
function parseSelector(_2,_3){
_3=_3||document.documentElement;
var _4=_2.split(_1);
var _5=[];
for(var i=0;i<_4.length;i++){
var _7=[_3];
var _8=toStream(_4[i]);
for(var j=0;j<_8.length;){
var _a=_8[j++];
var _b=_8[j++];
var _c="";
if(_8[j]=="("){
while(_8[j++]!=")"&&j<_8.length){
_c+=_8[j];
}
_c=_c.slice(0,-1);
}
_7=select(_7,_a,_b,_c);
}
_5=_5.concat(_7);
}
return _5;
}
var _d=/\s*([\s>+~(),]|^|$)\s*/g;
var _e=/([\s>+~,]|[^(]\+|^)([#.:@])/g;
var _f=/^[^\s>+~]/;
var _10=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;
function toStream(_11){
var _12=_11.replace(_d,"$1").replace(_e,"$1*$2");
if(_f.test(_12)){
_12=" "+_12;
}
return _12.match(_10)||[];
}
function select(_13,_14,_15,_16){
return (selectors[_14])?selectors[_14](_13,_15,_16):[];
}
var _17={toArray:function(_18){
var a=[];
for(var i=0;i<_18.length;i++){
_17.push(a,_18[i]);
}
return a;
},push:function(arr){
for(var i=1;i<arguments.length;i++){
arr[arr.length]=arguments[i];
}
return arr.length;
}};
var dom={isTag:function(_1e,tag){
return (tag=="*")||(tag.toLowerCase()==_1e.nodeName.toLowerCase().replace(":html",""));
},previousSiblingElement:function(_20){
do{
_20=_20.previousSibling;
}while(_20&&_20.nodeType!=1);
return _20;
},nextSiblingElement:function(_21){
do{
_21=_21.nextSibling;
}while(_21&&_21.nodeType!=1);
return _21;
},hasClass:function(_22,_23){
return (_23.className||"").match("(^|\\s)"+_22+"(\\s|$)");
},getByTag:function(tag,_25){
if(tag=="*"){
var _26=_25.getElementsByTagName(tag);
if(_26.length==0&&_25.all!=null){
return _25.all;
}
return _26;
}
return _25.getElementsByTagName(tag);
}};
var _27={"#":function(_28,_29){
for(var i=0;i<_28.length;i++){
if(_28[i].getAttribute("id")+""==_29){
return [_28[i]];
}
}
return [];
}," ":function(_2b,_2c){
var _2d=[];
for(var i=0;i<_2b.length;i++){
_2d=_2d.concat(_17.toArray(dom.getByTag(_2c,_2b[i])));
}
return _2d;
},">":function(_2f,_30){
var _31=[];
for(var i=0,node;i<_2f.length;i++){
node=_2f[i];
for(var j=0,child;j<node.childNodes.length;j++){
child=node.childNodes[j];
if(child.nodeType==1&&dom.isTag(child,_30)){
_17.push(_31,child);
}
}
}
return _31;
},".":function(_34,_35){
var _36=[];
for(var i=0,node;i<_34.length;i++){
node=_34[i];
if(dom.hasClass([_35],node)){
_17.push(_36,node);
}
}
return _36;
},":":function(_38,_39,_3a){
return (pseudoClasses[_39])?pseudoClasses[_39](_38,_3a):[];
}};
parseSelector.selectors=_27;
parseSelector.pseudoClasses={};
parseSelector.util=_17;
parseSelector.dom=dom;
return parseSelector;
})();
var sIFR=new function(){
var _3b=this;
var _3c="sIFR-hasFlash";
var _3d="sIFR-replaced";
var _3e="sIFR-flash";
var _3f="sIFR-ignore";
var _40="sIFR-alternate";
var _41="sIFR-class";
var _42="http://www.w3.org/1999/xhtml";
var _43=6;
var _44=126;
var _45=7;
var _46=8;
var _47="SIFR-PREFETCHED";
var _48=" ";
this.compatMode=false;
this.isActive=false;
this.isEnabled=true;
this.hideElements=true;
this.replaceNonDisplayed=false;
this.preserveSingleWhitespace=false;
this.registerEvents=true;
this.waitForPrefetch=true;
this.cookiePath="/";
this.domains=[];
this.fromLocal=true;
this.forceClear=false;
var _49=0;
var _4a=false;
var _4b=false;
var ua=new function(){
var ua=navigator.userAgent.toLowerCase();
var _4e=(navigator.product||"").toLowerCase();
this.macintosh=ua.indexOf("mac")>-1;
this.windows=ua.indexOf("windows")>-1;
this.opera=ua.indexOf("opera")>-1;
this.konqueror=_4e.indexOf("konqueror")>-1;
this.ie=ua.indexOf("ie")>-1&&!this.opera;
this.ieWin=this.ie&&this.windows;
this.ieMac=this.ie&&this.macintosh;
this.safari=ua.indexOf("safari")>-1;
this.webkit=ua.indexOf("applewebkit")>-1&&!this.konqueror;
this.khtml=this.webkit||this.konqueror;
this.gecko=!this.webkit&&_4e=="gecko";
var $;
this.operaVersion=this.webkitVersion=this.geckoBuildDate=this.konquerorVersion=0;
if(this.opera){
$=ua.match(/.*opera(\s|\/)(\d+\.\d+)/);
this.operaVersion=$.length>1?parseInt($[2]):0;
}
if(this.webkit){
$=ua.match(/.*applewebkit\/(\d+).*/);
this.webkitVersion=$.length>0?parseInt($[1]):0;
}
if(this.gecko){
$=ua.match(/.*gecko\/(\d{8}).*/);
this.geckoBuildDate=$.length>0?parseInt($[1]):0;
}
if(this.konqueror){
$=ua.match(/.*konqueror\/(\d\.\d).*/);
this.konquerorVersion=$.length>0?parseInt($[1]):0;
}
this.flashVersion=0;
if(this.ieWin){
try{
this.flashVersion=parseFloat(/([\d,?]+)/.exec(new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7").GetVariable("$version"))[1].replace(/,/g,"."));
}
catch(e){
}
}else{
if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){
var _50=navigator.plugins["Shockwave Flash"];
this.flashVersion=parseFloat(/(\d+\.?\d*)/.exec(_50.description)[1]);
var i=0;
while(this.flashVersion>=_45&&i<navigator.mimeTypes.length){
var _52=navigator.mimeTypes[i];
if(_52.type=="application/x-shockwave-flash"&&_52.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){
this.flashVersion=0;
}
i++;
}
}
}
this.flash=this.flashVersion>=_45;
this.transparencySupport=true;
if(!this.macintosh&&!this.windows||this.opera&&this.operaVersion<7.6||this.webkit&&this.webkitVersion<312||this.gecko&&this.geckoBuildDate<20020523){
this.transparencySupport=false;
}
this.computedStyleSupport=true;
if(!this.ie&&!this.gecko&&(!document.defaultView||!document.defaultView.getComputedStyle)||this.gecko&&this.geckoBuildDate<20030624){
this.computedStyleSupport=false;
}
this.css=true;
this.zoomSupport=!!(this.opera&&document.documentElement);
this.geckoXml=this.gecko&&(document.contentType||"").indexOf("xml")>-1;
this.innerHtmlHack=this.konqueror||(this.webkit&&this.webkitVersion<312)||this.ie;
this.requiresPrefetch=this.ieWin||this.safari;
this.supported=(!this.ie||this.ieWin)&&(!this.macintosh||!this.opera||this.operaVersion>=8)&&(!ua.webkit||ua.webkitVersion>=100)&&!!(Array.prototype.push&&Array.prototype.pop&&Array.prototype.splice);
};
this.ua=ua;
var dom=new function(){
this.getBody=function(){
var _54=document.getElementsByTagName("body");
if(_54.length==1){
return _54[0];
}
};
this.addClass=function(_55,_56){
_56.className=((_56.className||"")==""?"":_56.className+" ")+_55;
};
this.hasClass=function(_57,_58){
return new RegExp("(^|\\s)"+_57+"(\\s|$)").test(_58.className);
};
this.create=function(_59){
if(document.createElementNS){
return document.createElementNS(_42,_59);
}
return document.createElement(_59);
};
var _5a;
try{
var n=this.create("span");
if(!ua.ieMac){
n.innerHTML="x";
}
_5a=n.innerHTML=="x";
}
catch(e){
_5a=false;
}
this.setInnerHtml=function(_5c,_5d){
if(_5a){
_5c.innerHTML=_5d;
}else{
_5d=["<root xmlns=\"",_42,"\">",_5d,"</root>"].join("");
var xml=(new DOMParser()).parseFromString(_5d,"text/xml");
xml=document.importNode(xml.documentElement,true);
while(_5c.firstChild){
_5c.removeChild(_5c.firstChild);
}
while(xml.firstChild){
_5c.appendChild(xml.firstChild);
}
}
};
this.appendNode=function(to,_60){
to.appendChild(_60);
if(this.innerHtmlHack){
to.innerHTML+="";
}
};
this.getComputedStyle=function(_61,_62){
if(!ua.computedStyleSupport){
return null;
}
if(document.defaultView&&document.defaultView.getComputedStyle){
return document.defaultView.getComputedStyle(_61,null)[_62];
}else{
if(_61.currentStyle){
return _61.currentStyle[_62];
}
}
};
this.getStyleAsInt=function(_63,_64){
if(!ua.computedStyleSupport&&!_3b.compatMode){
return null;
}
var _65=parseInt(this.getComputedStyle(_63,_64));
return isNaN(_65)?0:_65;
};
this.getZoom=function(){
return hacks.zoom.getLatest();
};
};
this.dom=dom;
if(ua.computedStyleSupport){
var _66=dom.create("span");
_66.style.backgroundColor="#FF0000";
try{
var _67=dom.getComputedStyle(_66,"backgroundColor");
ua.css=/\#F{2}0{4}|rgb\(255,\s?0,\s?0\)/i.test(_67);
ua.supported=ua.supported&&ua.css;
}
catch(e){
}
_66=null;
}
var _68={normalize:function(str){
if(_3b.preserveSingleWhitespace){
return str.replace(/\s/g,_48);
}
return str.replace(/(\s)\s+/g,"$1");
},toJson:function(obj){
var _6b="";
switch(typeof (obj)){
case "string":
_6b="\""+obj+"\"";
break;
case "number":
case "boolean":
_6b=obj.toString();
break;
case "object":
_6b=[];
for(var _6c in obj){
if(obj[_6c]==Object.prototype[_6c]){
continue;
}
_6b.push(_6c+":",_68.toJson(obj[_6c]));
}
_6b="{"+_6b.join(",")+"}";
break;
}
return _6b;
}};
this.util=_68;
var _6d={};
_6d.fragmentIdentifier=new function(){
this.fix=true;
var _6e;
this.cache=function(){
_6e=document.title;
};
function doFix(){
document.title=_6e;
}
this.restore=function(){
if(this.fix){
setTimeout(doFix,0);
}
};
};
_6d.synchronizer=new function(){
this.isBlocked=false;
this.block=function(){
this.isBlocked=true;
};
this.unblock=function(){
this.isBlocked=false;
blockedReplaceKwargsStore.replaceAll();
};
};
_6d.zoom=new function(){
var _6f=100;
this.getLatest=function(){
return _6f;
};
if(ua.zoomSupport&&ua.opera){
var _70=document.createElement("div");
_70.style.position="fixed";
_70.style.left="-65536px";
_70.style.top="0";
_70.style.height="100%";
_70.style.width="1px";
_70.style.zIndex="-32";
document.documentElement.appendChild(_70);
function updateZoom(){
if(!_70){
return;
}
var _71=window.innerHeight/_70.offsetHeight;
var _72=Math.round(_71*100)%10;
if(_72>5){
_71=Math.round(_71*100)+10-_72;
}else{
_71=Math.round(_71*100)-_72;
}
_6f=isNaN(_71)?100:_71;
_6d.synchronizer.unblock();
document.documentElement.removeChild(_70);
_70=null;
}
_6d.synchronizer.block();
setTimeout(updateZoom,54);
}
};
this.hacks=_6d;
var _73={kwargs:[],replaceAll:function(){
for(var i=0;i<this.kwargs.length;i++){
_3b.replace(this.kwargs[i]);
}
this.kwargs=[];
}};
var _75={kwargs:[],replaceAll:_73.replaceAll};
this.useAdvancedModeOnly=function(_76){
if(_76&&_76<_45){
return;
}
_4b=true;
ua.flash=ua.flashVersion>=(_76||_46);
};
function isValidDomain(){
if(_3b.domains.length==0){
return true;
}
var _77="";
try{
_77=document.domain;
}
catch(e){
}
if(_3b.fromLocal){
sIFR.domains.push("localhost");
}
for(var i=0;i<_3b.domains.length;i++){
if(_3b.domains[i]=="*"||_3b.domains[i]==_77){
return true;
}
}
return false;
}
this.activate=function(){
if(!ua.flash||!this.isEnabled||this.isActive||!isValidDomain()||!ua.supported||!this.compatMode&&!ua.computedStyleSupport){
return;
}
this.isActive=true;
if(this.hideElements){
this.setFlashClass();
}
if(ua.ieWin&&_6d.fragmentIdentifier.fix&&window.location.hash!=""){
_6d.fragmentIdentifier.cache();
}else{
_6d.fragmentIdentifier.fix=false;
}
if(!this.registerEvents){
return;
}
function handler(evt){
_3b.initialize(true);
if(document.removeEventListener){
document.removeEventListener("load",handler,false);
}
if(window.removeEventListener){
window.removeEventListener("load",handler,false);
}
}
if(window.attachEvent){
window.attachEvent("onload",handler);
}else{
if((!ua.konqueror||ua.konquerorVersion<3.5)&&(document.addEventListener||window.addEventListener)){
if(document.addEventListener){
document.addEventListener("load",handler,false);
}
if(window.addEventListener){
window.addEventListener("load",handler,false);
}
}else{
if(typeof window.onload=="function"){
var _7a=window.onload;
window.onload=function(evt){
_7a(evt);
handler(evt);
};
}else{
window.onload=handler;
}
}
}
};
this.hasFlashClass=false;
this.setFlashClass=function(){
if(this.hasFlashClass){
return;
}
dom.addClass(_3c,dom.getBody()||document.documentElement);
this.hasFlashClass=true;
};
this.isInitialized=false;
this.initialize=function(evt){
if(this.isInitialized||!this.isActive||!this.isEnabled||!evt&&(ua.requiresPrefetch&&_4a&&this.waitForPrefetch||!this.uaCompletedRendering())){
return;
}
this.isInitialized=true;
_73.replaceAll();
clearPrefetch();
};
this.uaCompletedRendering=function(){
return (this.isInitialized||!ua.khtml&&!ua.geckoXml&&!!dom.getBody());
};
function getSource(src){
if(typeof (src)=="string"){
return src;
}
if(src.src){
src=src.src;
}
var _7e=[];
for(var _7f in src){
if(src[_7f]!=Object.prototype.version){
_7e.push(_7f);
}
}
_7e.sort().reverse();
for(var i=0;i<_7e.length;i++){
if(parseFloat(_7e[i])<=ua.flashVersion){
return src[_7e[i]];
}
}
throw new Error("sIFR: Could not determine appropriate source");
}
this.prefetch=function(){
if(!ua.requiresPrefetch||!ua.flash||!this.isEnabled||!isValidDomain()){
return;
}
if(this.waitForPrefetch&&new RegExp(";?"+_47+"=true;?").test(document.cookie)){
return;
}
try{
_4a=true;
if(ua.ieWin){
prefetchIexplore(arguments);
}else{
prefetchLight(arguments);
}
if(this.waitForPrefetch){
document.cookie=_47+"=true;path="+this.cookiePath;
}
}
catch(e){
}
};
function prefetchIexplore(_81){
var _82=document.getElementsByTagName("head")[0];
for(var i=0;i<_81.length;i++){
var _84=dom.create("embed");
_82.appendChild(_84);
_84.setAttribute("src",getSource(_81[i]));
_84.setAttribute("sIFR-prefetch","true");
}
}
function prefetchLight(_85){
for(var i=0;i<_85.length;i++){
new Image().src=getSource(_85[i]);
}
}
function clearPrefetch(){
if(!ua.ieWin||!_4a){
return;
}
try{
var _87=document.getElementsByTagName("head")[0];
var _88=_87.getElementsByTagName("embed");
for(var i=_88.length-1;i>=0;i--){
if(_66.getAttribute("sIFR-prefetch")=="true"){
_87.removeChild(_66);
}
}
}
catch(e){
}
}
function getRatio(_8a){
if(_8a<=10){
return 1.55;
}
if(_8a<=19){
return 1.45;
}
if(_8a<=32){
return 1.35;
}
if(_8a<=71){
return 1.3;
}
return 1.25;
}
function convertCssArg(arg){
if(!arg){
return {};
}
if(typeof (arg)=="object"){
if(arg.constructor==Array){
arg=arg.join("");
}else{
return arg;
}
}
var obj={};
var _8d=arg.split("}");
for(var i=0;i<_8d.length;i++){
var $=_8d[i].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);
if(!$||$.length!=3){
continue;
}
obj[$[1]]={};
var _90=$[2].split(";");
for(var j=0;j<_90.length;j++){
var $2=_90[j].match(/\s*([^:\s]+)\s*\:\s*([^\s;]+)/);
if(!$2||$2.length!=3){
continue;
}
obj[$[1]][$2[1]]=$2[2];
}
}
return obj;
}
function cssToString(arg){
var css=[];
for(var _95 in arg){
var _96=arg[_95];
if(_96==Object.prototype[_95]){
continue;
}
css.push(_95,"{");
for(var _97 in _96){
if(_96[_97]==Object.prototype[_97]){
continue;
}
css.push(_97,":",_96[_97],";");
}
css.push("}");
}
return escape(css.join(""));
}
function extractFromCss(css,_99,_9a,_9b){
var _9c=null;
if(css&&css[_99]&&css[_99][_9a]){
_9c=css[_99][_9a];
if(_9b){
delete css[_99][_9a];
}
}
return _9c;
}
function getFilters(obj){
var _9e=[];
for(var _9f in obj){
if(obj[_9f]==Object.prototype[_9f]){
continue;
}
var _a0=obj[_9f];
_9f=[_9f.replace(/filter/i,"")+"Filter"];
for(var _a1 in _a0){
if(_a0[_a1]==Object.prototype[_a1]){
continue;
}
_9f.push(_a1+":"+escape(_68.toJson(_a0[_a1])));
}
_9e.push(_9f.join(","));
}
return _9e.join(";");
}
this.replace=function(_a2,_a3){
if(!ua.supported){
return;
}
if(_a3){
for(var _a4 in _a2){
if(typeof (_a3[_a4])=="undefined"){
_a3[_a4]=_a2[_a4];
}
}
_a2=_a3;
}
if(!this.isInitialized){
return _73.kwargs.push(_a2);
}
if(_6d.synchronizer.isBlocked){
return _75.kwargs.push(_a2);
}
var _a5=parseSelector(_a2.selector);
if(_a5.length==0){
return;
}
this.setFlashClass();
var src=getSource(_a2.src);
var css=convertCssArg(_a2.css);
var _a8=ua.flashVersion>=_46?getFilters(_a2.filters):"";
var _a9=parseInt(extractFromCss(css,".sIFR-root","leading"))||0;
var _aa=extractFromCss(css,".sIFR-root","background-color",true)||"#FFFFFF";
var _ab=_a2.gridFitType||extractFromCss(_a2.css,".sIFR-root","text-align")!="left"?"subpixel":"pixel";
var _ac=cssToString(css);
var _ad=_a2.wmode||"";
if(_ad=="transparent"){
if(!ua.transparencySupport){
_ad="opaque";
}else{
_aa="transparent";
}
}
if(ua.ie&&src.charAt(0)=="/"){
src=location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+src;
}
for(var i=0;i<_a5.length;i++){
var _af=_a5[i];
if(dom.hasClass(_3d,_af)||dom.hasClass(_3f,_af)){
continue;
}
var _b0=false;
if(!_af.offsetHeight){
if(!_3b.replaceNonDisplayed){
continue;
}
_af.style.display="block";
if(!_af.offsetHeight){
_af.style.display="";
continue;
}
_b0=true;
}
if(_3b.forceClear&&ua.gecko){
_af.style.clear="both";
}
var _b1=dom.getStyleAsInt(_af,"paddingTop")||0;
var _b2=dom.getStyleAsInt(_af,"paddingRight")||0;
var _b3=dom.getStyleAsInt(_af,"paddingBottom")||0;
var _b4=dom.getStyleAsInt(_af,"paddingLeft")||0;
var _b5=dom.getStyleAsInt(_af,"borderTopWidth")||0;
var _b6=dom.getStyleAsInt(_af,"borderRightWidth")||0;
var _b7=dom.getStyleAsInt(_af,"borderBottomWidth")||0;
var _b8=dom.getStyleAsInt(_af,"borderLeftWidth")||0;
var _b9=_af.offsetHeight-_b1-_b3-_b5-_b7;
if(!ua.computedStyleSupport){
_b9-=_a2.verticalSpacing||0;
}
var _ba=_af.offsetWidth-_b4-_b2-_b8-_b6;
if(!ua.computedStyleSupport){
_ba-=_a2.horizontalSpacing||0;
}
var _bb,lines;
if(!ua.ie){
if(!ua.computedStyleSupport&&_3b.compatMode){
var _bc=_af.innerHTML;
dom.setInnerHtml(_af,"X");
_bb=_af.offsetHeight-_b1-_b3-_b5-_b7;
dom.setInnerHtml(_af,_bc);
}else{
_bb=dom.getStyleAsInt(_af,"lineHeight");
}
lines=Math.floor(_b9/_bb);
}else{
if(ua.ie){
var _bc=_af.innerHTML;
dom.setInnerHtml(_af,"X<br />X<br />X");
_af.style.visibility="visible";
_af.style.width="auto";
_af.style.styleFloat="none";
var _bd=_af.getClientRects();
_bb=_bd[1].bottom-_bd[1].top;
_bb=Math.ceil(_bb*0.8);
dom.setInnerHtml(_af,_bc);
_bd=_af.getClientRects();
lines=_bd.length;
_af.style.styleFloat="";
_af.style.width="";
_af.style.visibility="";
}
}
if(_b0){
_af.style.display="";
}
if(_3b.forceClear&&ua.gecko){
_af.style.clear="";
}
_bb=Math.max(_43,_bb);
_bb=Math.min(_44,_bb);
if(isNaN(lines)||!isFinite(lines)){
lines=1;
}
_b9=Math.round(lines*_bb);
if(lines>1&&_a9){
_b9+=Math.round((lines-1)*_a9);
}
var _be=dom.create("span");
_be.className=_40;
var _bf=_af.cloneNode(true);
for(var j=0,l=_bf.childNodes.length;j<l;j++){
_be.appendChild(_bf.childNodes[j].cloneNode(true));
}
if(_a2.modifyContent){
_a2.modifyContent(_bf);
}
var _c1=handleContent(_bf);
var _c2=["content="+_c1.content.replace(/\</g,"&lt;").replace(/>/g,"&gt;"),"links="+_c1.links,"targets="+_c1.targets,"w="+_ba,"h="+_b9,"thickness="+_a2.thickness||"","sharpness="+_a2.sharpness||"","kerning="+_a2.kerning||"","gridfittype="+_ab,"zoomsupport="+ua.zoomSupport,"filters="+_a8,"size="+_bb,"zoom="+dom.getZoom(),"css="+_ac];
_c2=encodeURI(_c2.join("&amp;"));
var _c3="sIFR_callback_"+_49++;
var _c4={flashNode:null};
window[_c3+"_DoFSCommand"]=(function(_c5){
return function(_c6,arg){
if(/(FSCommand\:)?resize/.test(_c6)){
var $=arg.split(":");
_c5.flashNode.setAttribute($[0],$[1]);
if(ua.khtml){
_c5.flashNode.innerHTML+="";
}
}
};
})(_c4);
_b9=Math.round(lines*getRatio(_bb)*_bb);
var _c9;
if(ua.ie){
_c9=["<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" id=\"",_c3,"\" sifr=\"true\" width=\"100%\" height=\"",_b9,"\" class=\"",_3e,"\">","<param name=\"movie\" value=\"",src,"?",_c2,"\"></param>","<param name=\"allowScriptAccess\" value=\"always\"></param>","<param name=\"quality\" value=\"best\"></param>","<param name=\"wmode\" value=\"",_ad,"\"></param>","<param name=\"bgcolor\" value=\"",_aa,"\"></param>","<param name=\"name\" value=\"",_c3,"\"></param>","</object>","<script event=FSCommand(info,args) for=",_c3,">",_c3,"_DoFSCommand(info, args);","</","script>"].join("");
}else{
_c9=["<embed class=\"",_3e,"\" type=\"application/x-shockwave-flash\" src=\"",src,"\" quality=\"best\" flashvars=\"",_c2,"\" width=\"100%\" height=\"",_b9,"\" wmode=\"",_ad,"\" bgcolor=\"",_aa,"\" name=\"",_c3,"\" allowScriptAccess=\"always\" sifr=\"true\"></embed>"].join("");
}
dom.setInnerHtml(_af,_c9);
_c4.flashNode=_af.firstChild;
dom.appendNode(_af,_be);
dom.addClass(_3d,_af);
}
_6d.fragmentIdentifier.restore();
};
function handleContent(_ca){
var _cb=[];
var _cc=_ca.childNodes;
var _cd=[];
var _ce=[];
var _cf=[];
var i=0;
while(i<_cc.length){
var _d1=_cc[i];
if(_d1.nodeType==3){
var _d2=_68.normalize(_d1.nodeValue);
_cd.push(_d2.replace(/\%/g,"%25").replace(/\&/g,"%26").replace(/\,/g,"%2C"));
}
if(_d1.nodeType==1){
var _d3=[];
var _d4=_d1.nodeName.toLowerCase();
var _d5=_d1.className||"";
if(/\s+/.test(_d5)){
if(_d5.indexOf(_41)){
_d5=_d5.match("(\\s|^)"+_41+"-([^\\s$]*)(\\s|$)")[2];
}else{
_d5=_d5.match(/^([^\s]+)/)[1];
}
}
if(_d5!=""){
_d3.push("class=\""+_d5+"\"");
}
if(_d4=="a"){
var _d6=_d1.getAttribute("href")||"";
var _d7=_d1.getAttribute("target")||"";
if(_d6!=""){
_ce.push(escape(_d6));
_cf.push(escape(_d7));
_d3.push("href=\"asfunction:sIFR.followLink,"+(_ce.length-1)+"\"");
}
}
_cd.push("<"+_d4+(_d3.length>0?" ":"")+escape(_d3.join(" "))+">");
if(_d1.hasChildNodes()){
_cb.push(i);
i=0;
_cc=_d1.childNodes;
continue;
}
}
if(_cb.length>0&&!_d1.nextSibling){
do{
i=_cb.pop();
_cc=_d1.parentNode.parentNode.childNodes;
_d1=_cc[i];
if(_d1){
_cd.push("</",_d1.nodeName.toLowerCase(),">");
}
}while(i<_cc.length&&_cb.length>0);
}
i++;
}
return {content:_cd.join(""),links:_ce.join(","),targets:_cf.join(",")};
}
};

