/*
Script: Core.js
	Mootools - My Object Oriented javascript.

License:
	MIT-style license.

MooTools Copyright:
	copyright (c) 2007 Valerio Proietti, <http://mad4milk.net>

MooTools Credits:
	- Class is slightly based on Base.js <http://dean.edwards.name/weblog/2006/03/base/> (c) 2006 Dean Edwards, License <http://creativecommons.org/licenses/LGPL/2.1/>
	- Some functions are inspired by those found in prototype.js <http://prototype.conio.net/> (c) 2005 Sam Stephenson sam [at] conio [dot] net, MIT-style license
	- Documentation by Aaron Newton (aaron.newton [at] cnet [dot] com) and Valerio Proietti.
*/

var MooTools={"version":"1.2dev","build":"%build%"};function $extend(_1,_2){if(!_2){_2=_1;_1=this}for(var _3 in _2){_1[_3]=_2[_3]}return _1}var Native=function(){for(var i=arguments.length;i--;){arguments[i].extend=function(_5){for(var _6 in _5){if(!this.prototype[_6]){this.prototype[_6]=_5[_6]}if(!this[_6]){this[_6]=Native.generic(_6)}}}}};Native.generic=function(_7){return function(_8){return this.prototype[_7].apply(_8,Array.prototype.slice.call(arguments,1))}};Native.setFamily=function(_9){for(var _a in _9){_9[_a].prototype.$family=_a}};Native(Array,Function,String,RegExp,Number);Native.setFamily({"array":Array,"function":Function,"string":String,"regexp":RegExp});function $A(_b,_c,_d){_c=_c||0;if(_c<0){_c=_b.length+_c}_d=_d||(_b.length-_c);var _e=[];for(var i=0;i<_d;i++){_e[i]=_b[_c++]}return _e}function $chk(obj){return!!(obj||obj===0)}function $clear(_11){clearTimeout(_11);clearInterval(_11);return null}function $defined(obj){return(obj!=undefined)}function $empty(){}function $merge(){var mix={};for(var i=0;i<arguments.length;i++){for(var _15 in arguments[i]){var ap=arguments[i][_15];var mp=mix[_15];if(mp&&$type(ap)=="object"&&$type(mp)=="object"){mix[_15]=$merge(mp,ap)}else{mix[_15]=ap}}}return mix}function $pick(){for(var i=0,l=arguments.length;i<l;i++){if($defined(arguments[i])){return arguments[i]}}return null}function $random(min,max){return Math.floor(Math.random()*(max-min+1)+min)}function $splat(obj){var _1d=$type(obj);if(_1d&&_1d!="array"){obj=[obj]}return obj}function $time(){return new Date().getTime()}function $try(fn,_1f,_20){try{return fn.apply(_1f||fn,$splat(_20)||[])}catch(e){return false}}function $type(obj){if(obj==undefined){return false}if(obj.$family){return obj.$family}if(obj.htmlElement){return"element"}var _22=typeof obj;if(obj.nodeName){switch(obj.nodeType){case 1:return"element";case 3:return(/\S/).test(obj.nodeValue)?"textnode":"whitespace"}}else{if(typeof obj.length=="number"){if(obj.item){return"collection"}if(obj.callee){return"arguments"}}}if(_22=="number"&&!isFinite(obj)){return false}return _22}window.extend=document.extend=$extend;window.$family="window";document.$family="document";document.head=document.getElementsByTagName("head")[0];var Client={Engine:{"name":"unknown","version":""},Platform:{},Features:{}};Client.Features.xhr=!!(window.XMLHttpRequest);Client.Features.xpath=!!(document.evaluate);if(window.opera){Client.Engine.name="opera"}else{if(window.ActiveXObject){Client.Engine={"name":"ie","version":(Client.Features.xhr)?7:6}}else{if(!navigator.taintEnabled){Client.Engine={"name":"webkit","version":(Client.Features.xpath)?420:419}}else{if(document.getBoxObjectFor!=null){Client.Engine.name="gecko"}}}}Client.Engine[Client.Engine.name]=Client.Engine[Client.Engine.name+Client.Engine.version]=true;Client.Platform.name=navigator.platform.match(/(mac)|(win)|(linux)|(nix)/i)||["Other"];Client.Platform.name=Client.Platform.name[0].toLowerCase();Client.Platform[Client.Platform.name]=true;if(typeof HTMLElement=="undefined"){var HTMLElement=$empty;if(Client.Engine.webkit){document.createElement("iframe")}HTMLElement.prototype=(Client.Engine.webkit)?window["[[DOMElement.prototype]]"]:{}}HTMLElement.prototype.htmlElement=$empty;HTMLElement.prototype.$family="element";if(Client.Engine.ie6){$try(function(){document.execCommand("BackgroundImageCache",false,true)})}var Class=function(_23){_23=_23||{};var _24=function(){var _25=(arguments[0]!==$empty&&this.initialize&&$type(this.initialize)=="function")?this.initialize.apply(this,arguments):this;if(this.options&&this.options.initialize){this.options.initialize.call(this)}return _25};if(_23.Implements){$extend(_23,Class.implement($splat(_23.Implements)));delete _23.Implements}if(_23.Extends){_23=Class.extend(_23.Extends,_23);delete _23.Extends}$extend(_24,this);_24.prototype=_23;_24.prototype.constructor=_24;_24.$family="class";return _24};Class.empty=$empty;Class.prototype={constructor:Class,extend:function(_26){return new Class(Class.extend(this,_26))},implement:function(){$extend(this.prototype,Class.implement($A(arguments)));return this}};Class.implement=function(_27){var all={};for(var i=0,l=_27.length;i<l;i++){$extend(all,($type(_27[i])=="class")?new _27[i]($empty):_27[i])}return all};Class.extend=function(_2b,_2c){var _2d=new _2b($empty);for(var _2e in _2c){var pp=_2d[_2e];_2d[_2e]=Class.merge(pp,_2c[_2e])}return _2d};Class.merge=function(_30,_31){if($defined(_30)&&_30!=_31){var _32=$type(_31);if(_32!=$type(_30)){return _31}switch(_32){case"function":var _33=function(){this.parent=arguments.callee.parent;return _31.apply(this,arguments)};_33.parent=_30;return _33;case"object":return $merge(_30,_31)}}return _31};var Abstract=function(obj){return $extend(this,obj||{})};Native(Abstract);Abstract.extend({each:function(fn,_36){for(var _37 in this){if(this.hasOwnProperty(_37)){fn.call(_36||this,this[_37],_37)}}},remove:function(_38){delete this[_38];return this},extend:$extend});Client=new Abstract(Client);Array.extend({every:function(fn,_3a){for(var i=0,l=this.length;i<l;i++){if(!fn.call(_3a,this[i],i,this)){return false}}return true},filter:function(fn,_3e){var _3f=[];for(var i=0,l=this.length;i<l;i++){if(fn.call(_3e,this[i],i,this)){_3f.push(this[i])}}return _3f},forEach:function(fn,_43){for(var i=0,l=this.length;i<l;i++){fn.call(_43,this[i],i,this)}},indexOf:function(_46,_47){var len=this.length;for(var i=(_47<0)?Math.max(0,len+_47):_47||0;i<len;i++){if(this[i]===_46){return i}}return-1},map:function(fn,_4b){var _4c=[];for(var i=0,l=this.length;i<l;i++){_4c[i]=fn.call(_4b,this[i],i,this)}return _4c},some:function(fn,_50){for(var i=0,l=this.length;i<l;i++){if(fn.call(_50,this[i],i,this)){return true}}return false},reduce:function(fn,_54){var i=0;if(arguments.length<2&&this.length){_54=this[i++]}for(var l=this.length;i<l;i++){_54=fn.call(null,_54,this[i],i,this)}return _54},associate:function(obj){var _58={};var _59=$type(obj);if(_59=="array"){var _5a={};for(var i=0,j=obj.length;i<j;i++){_5a[obj[i]]=true}obj=_5a}for(var _5d in obj){_58[_5d]=null}for(var k=0,l=this.length;k<l;k++){var res=(_59=="array")?$defined(this[k]):$type(this[k]);for(var _61 in obj){if(!$defined(_58[_61])&&((res&&obj[_61]===true)||obj[_61].contains(res))){_58[_61]=this[k];break}}}return _58},contains:function(_62,_63){return this.indexOf(_62,_63)!=-1},copy:function(_64,_65){return $A(this,_64,_65)},extend:function(_66){for(var i=0,j=_66.length;i<j;i++){this.push(_66[i])}return this},getLast:function(){return(this.length)?this[this.length-1]:null},getRandom:function(){return(this.length)?this[$random(0,this.length-1)]:null},include:function(_69){if(!this.contains(_69)){this.push(_69)}return this},merge:function(_6a){for(var i=0,l=_6a.length;i<l;i++){this.include(_6a[i])}return this},remove:function(_6d){for(var i=this.length;i--;){if(this[i]===_6d){this.splice(i,1)}}return this},empty:function(){this.length=0;return this}});Array.prototype.each=Array.prototype.forEach;Array.each=Array.forEach;function $each(_6f,fn,_71){((_6f&&typeof _6f.length=="number"&&$type(_6f)!="object")?Array:Abstract).each(_6f,fn,_71)}Function.extend({extend:$extend,create:function(_72){var _73=this;_72=_72||{};return function(_74){var _75=$splat(_72.arguments)||arguments;if(_72.event){_75=[_74||window.event].extend(_75)}var _76=function(){return _73.apply($pick(_72.bind,_73),_75)};if(_72.delay){return setTimeout(_76,_72.delay)}if(_72.periodical){return setInterval(_76,_72.periodical)}if(_72.attempt){return $try(_76)}return _76()}},pass:function(_77,_78){return this.create({"arguments":_77,"bind":_78})},attempt:function(_79,_7a){return this.create({"arguments":_79,"bind":_7a,"attempt":true})()},bind:function(_7b,_7c,evt){return this.create({"bind":_7b,"arguments":_7c,"event":evt})},delay:function(_7e,_7f,_80){return this.create({"delay":_7e,"bind":_7f,"arguments":_80})()},periodical:function(_81,_82,_83){return this.create({"periodical":_81,"bind":_82,"arguments":_83})()}});Function.empty=$empty;var Chain=new Class({chain:function(fn){this.$chain=this.$chain||[];this.$chain.push(fn);return this},callChain:function(){if(this.$chain&&this.$chain.length){this.$chain.shift().delay(10,this)}},clearChain:function(){if(this.$chain){this.$chain.empty()}}});var Events=new Class({addEvent:function(_85,fn,_87){if(fn!=$empty){this.$events=this.$events||{};this.$events[_85]=this.$events[_85]||[];this.$events[_85].include(fn);if(_87){fn.internal=true}}return this},addEvents:function(_88){for(var _89 in _88){this.addEvent(_89,_88[_89])}return this},fireEvent:function(_8a,_8b,_8c){if(this.$events&&this.$events[_8a]){this.$events[_8a].each(function(fn){fn.create({"bind":this,"delay":_8c,"arguments":_8b})()},this)}return this},removeEvent:function(_8e,fn){if(this.$events&&this.$events[_8e]){if(!fn.internal){this.$events[_8e].remove(fn)}}return this},removeEvents:function(_90){for(var e in this.$events){if(!_90||_90==e){var fns=this.$events[e];for(var i=fns.length;i--;){this.removeEvent(e,fns[i])}}}return this}});var Options=new Class({setOptions:function(_94){this.options=$merge(this.options,_94);if(this.addEvent){for(var _95 in this.options){if((/^on[A-Z]/).test(_95)&&$type(this.options[_95]=="function")){this.addEvent(_95,this.options[_95])}}}return this}});String.extend({test:function(_96,_97){return(($type(_96)=="string")?new RegExp(_96,_97):_96).test(this)},contains:function(_98,_99){return(_99)?(_99+this+_99).indexOf(_99+_98+_99)>-1:this.indexOf(_98)>-1},trim:function(){return this.replace(/^\s+|\s+$/g,"")},clean:function(){return this.replace(/\s{2,}/g," ").trim()},camelCase:function(){return this.replace(/-\D/g,function(_9a){return _9a.charAt(1).toUpperCase()})},hyphenate:function(){return this.replace(/[A-Z]/g,function(_9b){return("-"+_9b.charAt(0).toLowerCase())})},capitalize:function(){return this.replace(/\b[a-z]/g,function(_9c){return _9c.toUpperCase()})},escapeRegExp:function(){return this.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},toInt:function(_9d){return parseInt(this,_9d||10)},toFloat:function(){return parseFloat(this)},hexToRgb:function(_9e){var hex=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(hex)?hex.slice(1).hexToRgb(_9e):false},rgbToHex:function(_a0){var rgb=this.match(/\d{1,3}/g);return(rgb)?rgb.rgbToHex(_a0):false}});Array.extend({hexToRgb:function(_a2){if(this.length!=3){return null}var rgb=[];for(var i=0;i<3;i++){rgb.push(((this[i].length==1)?this[i]+this[i]:this[i]).toInt(16))}return _a2?rgb:"rgb("+rgb.join(",")+")"},rgbToHex:function(_a5){if(this.length<3){return null}if(this.length==4&&this[3]==0&&!_a5){return"transparent"}var hex=[];for(var i=0;i<3;i++){var bit=(this[i]-0).toString(16);hex.push((bit.length==1)?"0"+bit:bit)}return _a5?hex:"#"+hex.join("")}});Number.extend({limit:function(min,max){return Math.min(max,Math.max(min,this))},round:function(_ab){_ab=Math.pow(10,_ab||0);return Math.round(this*_ab)/_ab},times:function(fn,_ad){for(var i=0;i<this;i++){fn.call(_ad,i,this)}},toFloat:function(){return parseFloat(this)},toInt:function(_af){return parseInt(this,_af||10)}});var Element=function(el,_b1){if($type(el)=="string"){if(Client.Engine.ie&&_b1&&(_b1.name||_b1.type)){var _b2=(_b1.name)?" name=\""+_b1.name+"\"":"";var _b3=(_b1.type)?" type=\""+_b1.type+"\"":"";delete _b1.name;delete _b1.type;el="<"+el+_b2+_b3+">"}el=document.createElement(el)}el=$(el);return(!_b1||!el)?el:el.set(_b1)};Element.prototype=HTMLElement.prototype;var Elements=function(_b4,_b5){_b4=_b4||[];var l=_b4.length;if(_b5||!l){return $extend(_b4,this)}var _b7={};var _b8=[];for(var i=0;i<l;i++){var el=$(_b4[i]);if(!el||_b7[el.$attributes.uid]){continue}_b7[el.$attributes.uid]=true;_b8.push(el)}return $extend(_b8,this)};function $(el){if(!el){return null}if(el.htmlElement){return Garbage.collect(el)}var _bc=$type(el);if(_bc=="string"){el=document.getElementById(el);_bc=(el)?"element":false}if(_bc!="element"){return(["window","document"].contains(_bc))?el:null}if(el.htmlElement){return Garbage.collect(el)}if(Element.$badTags.contains(el.tagName.toLowerCase())){return el}$extend(el,Element.prototype);el.htmlElement=$empty;return Garbage.collect(el)}document.getElementsBySelector=document.getElementsByTagName;function $$(){var _bd=[];for(var i=0,j=arguments.length;i<j;i++){var _c0=arguments[i];switch($type(_c0)){case"element":_bd.push(_c0);break;case false:case null:break;case"string":_c0=document.getElementsBySelector(_c0,true);default:_bd.extend(_c0)}}return new Elements(_bd)}Element.extend=function(_c1){for(var _c2 in _c1){Element.prototype[_c2]=_c1[_c2];Element[_c2]=Native.generic(_c2);Elements.prototype[(Array.prototype[_c2])?_c2+"Elements":_c2]=Elements.$multiply(_c2)}};Client.expand=function(_c3){Element.extend(_c3);window.extend(_c3);document.extend(_c3)};Elements.extend=function(_c4){for(var _c5 in _c4){Elements.prototype[_c5]=_c4[_c5];Elements[_c5]=Native.generic(_c5)}};Elements.$multiply=function(_c6){return function(){var _c7=arguments;var _c8=[];var _c9=true;this.each(function(_ca){var _cb=_ca[_c6].apply(_ca,_c7);_c8.push(_cb);if(_c9){_c9=($type(_cb)=="element")}});return(_c9)?new Elements(_c8):_c8}};Element.Setters=new Abstract({attributes:function(_cc){this.setProperties(_cc)}});Element.Setters.properties=Element.Setters.attributes;Element.extend({getElement:function(tag){return $(this.getElementsByTagName(tag)[0]||null)},getElements:function(tag){return $$(this.getElementsByTagName(tag))},set:function(_cf){for(var _d0 in _cf){if(Element.Setters[_d0]){Element.Setters[_d0].call(this,_cf[_d0])}else{this.setProperty(_d0,_cf[_d0])}}return this},inject:function(el,_d2){el=$(el);switch(_d2){case"before":el.parentNode.insertBefore(this,el);break;case"after":var _d3=el.getNext();if(!_d3){el.parentNode.appendChild(this)}else{el.parentNode.insertBefore(this,_d3)}break;case"top":var _d4=el.firstChild;if(_d4){el.insertBefore(this,_d4);break}default:el.appendChild(this)}return this},injectBefore:function(el){return this.inject(el,"before")},injectAfter:function(el){return this.inject(el,"after")},injectInside:function(el){return this.inject(el,"bottom")},injectTop:function(el){return this.inject(el,"top")},adopt:function(){var _d9=[];$each(arguments,function(_da){_d9=_d9.concat(_da)});$$(_d9).inject(this);return this},remove:function(){return this.parentNode.removeChild(this)},clone:function(_db){var el=$(this.cloneNode(_db!==false));if(!el.$events){return el}el.$events={};for(var _dd in this.$events){el.$events[_dd]={"keys":$A(this.$events[_dd].keys),"values":$A(this.$events[_dd].values)}}return el.removeEvents()},replaceWith:function(el){el=$(el);this.parentNode.replaceChild(el,this);return el},appendText:function(_df){this.appendChild(document.createTextNode(_df));return this},hasClass:function(_e0){return this.className.contains(_e0," ")},addClass:function(_e1){if(!this.hasClass(_e1)){this.className=(this.className+" "+_e1).clean()}return this},removeClass:function(_e2){this.className=this.className.replace(new RegExp("(^|\\s)"+_e2+"(?:\\s|$)"),"$1").clean();return this},toggleClass:function(_e3){return this.hasClass(_e3)?this.removeClass(_e3):this.addClass(_e3)},walk:function(_e4,_e5){_e4+="Sibling";var el=(_e5)?this[_e5]:this[_e4];while(el&&$type(el)!="element"){el=el[_e4]}return $(el)},getPrevious:function(){return this.walk("previous")},getNext:function(){return this.walk("next")},getFirst:function(){return this.walk("next","firstChild")},getLast:function(){return this.walk("previous","lastChild")},getParent:function(){return $(this.parentNode)},getChildren:function(){return $$(this.childNodes)},hasChild:function(el){return!!$A(this.getElementsByTagName("*")).contains(el)},getProperty:function(_e8){var _e9=Element.$attributes[_e8];if(_e9){return this[_e9]}var _ea=Element.$attributesIFlag[_e8]||0;if(!Client.Engine.ie||_ea){return this.getAttribute(_e8,_ea)}var _eb=this.attributes[_e8];return(_eb)?_eb.nodeValue:null},removeProperty:function(_ec){var _ed=Element.$attributes[_ec];if(_ed){this[_ed]=""}else{this.removeAttribute(_ec)}return this},getProperties:function(){var _ee={};$each(arguments,function(key){_ee[key]=this.getProperty(key)},this);return _ee},setProperty:function(_f0,_f1){var _f2=Element.$attributes[_f0];if(_f2){this[_f2]=_f1}else{this.setAttribute(_f0,_f1)}return this},setProperties:function(_f3){for(var _f4 in _f3){this.setProperty(_f4,_f3[_f4])}return this},setHTML:function(){this.innerHTML=$A(arguments).join("");return this},setText:function(_f5){var tag=this.getTag();if(["style","script"].contains(tag)){if(Client.Engine.ie){if(tag=="style"){this.styleSheet.cssText=_f5}else{if(tag=="script"){this.setProperty("text",_f5)}}return this}else{if(this.firstChild){this.removeChild(this.firstChild)}return this.appendText(_f5)}}this[$defined(this.innerText)?"innerText":"textContent"]=_f5;return this},getText:function(){var tag=this.getTag();if(["style","script"].contains(tag)){if(Client.Engine.ie){if(tag=="style"){return this.styleSheet.cssText}else{if(tag=="script"){return this.getProperty("text")}}}else{return this.innerHTML}}return($pick(this.innerText,this.textContent))},getTag:function(){return this.tagName.toLowerCase()},empty:function(){Garbage.trash(this.getElementsByTagName("*"));return this.setHTML("")},destroy:function(){Garbage.kill(this.empty().remove());return null}});Element.$badTags=["object","embed"];Element.$attributes={"class":"className","for":"htmlFor","colspan":"colSpan","rowspan":"rowSpan","accesskey":"accessKey","tabindex":"tabIndex","maxlength":"maxLength","readonly":"readOnly","frameborder":"frameBorder","value":"value","disabled":"disabled","checked":"checked","multiple":"multiple","selected":"selected"};Element.$attributesIFlag={"href":2,"src":2};Client.expand({addListener:function(_f8,fn){if(this.addEventListener){this.addEventListener(_f8,fn,false)}else{this.attachEvent("on"+_f8,fn)}return this},removeListener:function(_fa,fn){if(this.removeEventListener){this.removeEventListener(_fa,fn,false)}else{this.detachEvent("on"+_fa,fn)}return this}});Element.UID=0;var Garbage={elements:{},collect:function(el){if(!el.$attributes){el.$attributes={"opacity":1,"uid":Element.UID++};Garbage.elements[el.$attributes.uid]=el}return el},trash:function(_fd){for(var i=_fd.length,el;i--;){if(!(el=_fd[i])||!el.$attributes){continue}if(!el.tagName||Element.$badTags.contains(el.tagName.toLowerCase())){Garbage.kill(el)}}},kill:function(el,_101){delete Garbage.elements[String(el.$attributes.uid)];if(el.$events){el.fireEvent("trash",_101).removeEvents()}for(var p in el.$attributes){el.$attributes[p]=null}if(window.ie){for(var d in Element.prototype){el[d]=null}}el.htmlElement=el.$attributes=el=null},empty:function(){Garbage.collect(window);Garbage.collect(document);for(var uid in Garbage.elements){Garbage.kill(Garbage.elements[uid],true)}}};window.addListener("beforeunload",function(){window.addListener("unload",Garbage.empty);if(Client.Engine.ie){window.addListener("unload",CollectGarbage)}});var Event=new Class({initialize:function(_105){if(_105&&_105.$extended){return _105}this.$extended=true;_105=_105||window.event;this.event=_105;this.type=_105.type;this.target=_105.target||_105.srcElement;if(this.target.nodeType==3){this.target=this.target.parentNode}this.shift=_105.shiftKey;this.control=_105.ctrlKey;this.alt=_105.altKey;this.meta=_105.metaKey;if(["DOMMouseScroll","mousewheel"].contains(this.type)){this.wheel=(_105.wheelDelta)?_105.wheelDelta/120:-(_105.detail||0)/3}else{if(this.type.contains("key")){this.code=_105.which||_105.keyCode;for(var name in Event.Keys){if(Event.Keys[name]==this.code){this.key=name;break}}if(this.type=="keydown"){var fKey=this.code-111;if(fKey>0&&fKey<13){this.key="f"+fKey}}this.key=this.key||String.fromCharCode(this.code).toLowerCase()}else{if(this.type.test(/(click|mouse|menu)/)){this.page={"x":_105.pageX||_105.clientX+document.documentElement.scrollLeft,"y":_105.pageY||_105.clientY+document.documentElement.scrollTop};this.client={"x":_105.pageX?_105.pageX-window.pageXOffset:_105.clientX,"y":_105.pageY?_105.pageY-window.pageYOffset:_105.clientY};this.rightClick=(_105.which==3)||(_105.button==2);switch(this.type){case"mouseover":this.relatedTarget=_105.relatedTarget||_105.fromElement;break;case"mouseout":this.relatedTarget=_105.relatedTarget||_105.toElement}if(this.fixRelatedTarget.create({"bind":this,"attempt":Client.Engine.gecko})()===false){this.relatedTarget=this.target}}}}return this},stop:function(){return this.stopPropagation().preventDefault()},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation()}else{this.event.cancelBubble=true}return this},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault()}else{this.event.returnValue=false}return this},fixRelatedTarget:function(){var rel=this.relatedTarget;if(rel&&rel.nodeType==3){this.relatedTarget=rel.parentNode}}});Event.Keys=new Abstract({"enter":13,"up":38,"down":40,"left":37,"right":39,"esc":27,"space":32,"backspace":8,"tab":9,"delete":46});Element.Setters.events=function(_109){this.addEvents(_109)};Client.expand({addEvent:function(type,fn){this.$events=this.$events||{};if(!this.$events[type]){this.$events[type]={"keys":[],"values":[]}}if(this.$events[type].keys.contains(fn)){return this}this.$events[type].keys.push(fn);var _10c=type;var _10d=Element.Events[type];var map=fn;if(_10d){if(_10d.add){_10d.add.call(this,fn)}if(_10d.map){map=function(_10f){if(_10d.map.call(this,_10f)){return fn.call(this,_10f)}return false}}if(_10d.type){_10c=_10d.type}}var defn=fn;var _111=Element.$events[_10c]||0;if(_111){if(_111==2){var self=this;defn=function(_113){_113=new Event(_113);if(map.call(self,_113)===false){_113.stop()}}}this.addListener(_10c,defn)}this.$events[type].values.push(defn);return this},removeEvent:function(type,fn){if(!this.$events||!this.$events[type]){return this}var pos=this.$events[type].keys.indexOf(fn);if(pos==-1){return this}var key=this.$events[type].keys.splice(pos,1)[0];var _118=this.$events[type].values.splice(pos,1)[0];var _119=Element.Events[type];if(_119){if(_119.remove){_119.remove.call(this,fn)}if(_119.type){type=_119.type}}return(Element.$events[type])?this.removeListener(type,_118):this},addEvents:function(_11a){for(var _11b in _11a){this.addEvent(_11b,_11a[_11b])}return this},removeEvents:function(type){if(!this.$events){return this}if(!type){for(var _11d in this.$events){this.removeEvents(_11d)}this.$events=null}else{if(this.$events[type]){while(this.$events[type].keys[0]){this.removeEvent(type,this.$events[type].keys[0])}this.$events[type]=null}}return this},fireEvent:function(type,args,_120){if(this.$events&&this.$events[type]){this.$events[type].keys.each(function(fn){fn.create({"bind":this,"delay":_120,"arguments":args})()},this)}return this},cloneEvents:function(from,type){if(!from.$events){return this}if(!type){for(var _124 in from.$events){this.cloneEvents(from,_124)}}else{if(from.$events[type]){from.$events[type].keys.each(function(fn){this.addEvent(type,fn)},this)}}return this}});Element.$events={"click":2,"dblclick":2,"mouseup":2,"mousedown":2,"mousewheel":2,"DOMMouseScroll":2,"mouseover":2,"mouseout":2,"mousemove":2,"keydown":2,"keypress":2,"keyup":2,"contextmenu":2,"submit":2,"load":1,"unload":1,"beforeunload":1,"resize":1,"move":1,"DOMContentLoaded":1,"readystatechange":1,"focus":1,"blur":1,"change":1,"reset":1,"select":1,"error":1,"abort":1,"scroll":1};Element.Events=new Abstract({"mouseenter":{type:"mouseover",map:function(_126){var _127=_126.relatedTarget;return(_127&&_127!=this&&!this.hasChild(_127))}},"mouseleave":{type:"mouseout",map:function(_128){var _129=_128.relatedTarget;return(_129&&_129!=this&&!this.hasChild(_129))}},"mousewheel":{type:(Client.Engine.gecko)?"DOMMouseScroll":"mousewheel"}});Elements.extend({filterByTag:function(tag,_12b){var _12c=this.filter(function(el){return(Element.getTag(el)==tag)});return(_12b)?_12c:new Elements(_12c,true)},filterByClass:function(_12e,_12f){var _130=this.filter(function(el){return(el.className&&el.className.contains(_12e," "))});return(_12f)?_130:new Elements(_130,true)},filterById:function(id,_133){var _134=this.filter(function(el){return(el.id==id)});return(_133)?_134:new Elements(_134,true)},filterByAttribute:function(name,_137,_138,_139){var _13a=this.filter(function(el){var _13c=Element.getProperty(el,name);if(_13c){switch(_137){case"=":return(_13c==_138);case"*=":return(_13c.contains(_138));case"^=":return(_13c.substr(0,_138.length)==_138);case"$=":return(_13c.substr(_13c.length-_138.length)==_138);case"!=":return(_13c!=_138);case"~=":return _13c.contains(_138," ");case"|=":return _13c.contains(_138,"-");default:return true}}return false});return(_139)?_13a:new Elements(_13a,true)}});Element.$DOMMethods={getElements:function(_13d,_13e){var _13f=[];var _140=[];_13d=_13d.trim().replace(Selectors.sRegExp,function(_141){if(_141.charAt(2)){_141=_141.trim()}_140.push(_141.charAt(0));return"%"+_141.charAt(1)}).split("%");for(var i=0,j=_13d.length;i<j;i++){var _144=Selectors.$parse(_13d[i]);if(!_144){break}var temp=Selectors.Method.getParam(_13f,_140[i-1]||false,this,_144.tag,_144.id,_144.classes,_144.attributes,_144.pseudos);if(!temp){break}_13f=temp}return Selectors.Method.getItems(_13f,this,_13e)},getElement:function(_146){return $(this.getElements(_146,true)[0]||null)},getElementsBySelector:function(_147,_148){var _149=[];_147=_147.split(",");for(var i=0,j=_147.length;i<j;i++){_149=_149.concat(this.getElements(_147[i],true))}return(_148)?_149:new Elements(_149)}};Element.extend({getElementById:function(id){var el=document.getElementById(id);if(el){while((el=el.parentNode)){if(el==this){return el}}}return null}});document.extend(Element.$DOMMethods);Element.extend(Element.$DOMMethods);var $E=document.getElement.bind(document);var Selectors={"regExp":/:([^-:(]+)[^:(]*(?:\((["']?)(.*?)\2\))?|\[(\w+)(?:([!*^$~|]?=)(["']?)(.*?)\6)?\]|\.[\w-]+|#[\w-]+|\w+|\*/g,"sRegExp":/\s*([+>~\s])[a-zA-Z#.*\s]/g};Selectors.$parse=function(_14e){var _14f={tag:"*",id:null,classes:[],attributes:[],pseudos:[]};_14e=_14e.replace(Selectors.regExp,function(bit){switch(bit.charAt(0)){case".":_14f.classes.push(bit.slice(1));break;case"#":_14f.id=bit.slice(1);break;case"[":_14f.attributes.push([arguments[4],arguments[5],arguments[7]]);break;case":":var name=arguments[1];var _152=Selectors.Pseudo[name];var _153={"name":name,"parser":_152,"argument":arguments[3]};if(_152&&_152.parser){_153.argument=(_152.parser.apply)?_152.parser(_153.argument):_152.parser}_14f.pseudos.push(_153);break;default:_14f.tag=bit}return""});return _14f};Selectors.Pseudo=new Abstract();Selectors.XPath={getParam:function(_154,_155,_156,tag,id,_159,_15a,_15b){var temp=_156.namespaceURI?"xhtml:":"";switch(_155){case"~":case"+":temp+="/following-sibling::";break;case">":temp+="/";break;case" ":temp+="//"}temp+=tag;if(_155=="+"){temp+="[1]"}var i;for(i=_15b.length;i--;i){var _15e=_15b[i];if(_15e.parser&&_15e.parser.xpath){temp+=_15e.parser.xpath(_15e.argument)}else{temp+=($chk(_15e.argument))?"[@"+_15e.name+"=\""+_15e.argument+"\"]":"[@"+_15e.name+"]"}}if(id){temp+="[@id=\""+id+"\"]"}for(i=_159.length;i--;i){temp+="[contains(concat(\" \", @class, \" \"), \" "+_159[i]+" \")]"}for(i=_15a.length;i--;i){var bits=_15a[i];switch(bits[1]){case"=":temp+="[@"+bits[0]+"=\""+bits[2]+"\"]";break;case"*=":temp+="[contains(@"+bits[0]+", \""+bits[2]+"\")]";break;case"^=":temp+="[starts-with(@"+bits[0]+", \""+bits[2]+"\")]";break;case"$=":temp+="[substring(@"+bits[0]+", string-length(@"+bits[0]+") - "+bits[2].length+" + 1) = \""+bits[2]+"\"]";break;case"!=":temp+="[@"+bits[0]+"!=\""+bits[2]+"\"]";break;case"~=":temp+="[contains(concat(\" \", @"+bits[0]+", \" \"), \" "+bits[2]+" \")]";break;case"|=":temp+="[contains(concat(\"-\", @"+bits[0]+", \"-\"), \"-"+bits[2]+"-\")]";break;default:temp+="[@"+bits[0]+"]"}}_154.push(temp);return _154},getItems:function(_160,_161,_162){var _163=[];var _164=document.evaluate(".//"+_160.join(""),_161,Selectors.XPath.resolver,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(var i=0,j=_164.snapshotLength;i<j;i++){_163[i]=(_162)?_164.snapshotItem(i):$(_164.snapshotItem(i))}return(_162)?_163:new Elements(_163,true)},resolver:function(_167){return(_167=="xhtml")?"http://www.w3.org/1999/xhtml":false}};Selectors.Filter={getParam:function(_168,_169,_16a,tag,id,_16d,_16e,_16f){var i;if(_169){var _171=[],j=_168.length;switch(_169){case" ":for(i=0;i<j;i++){_171.extend(_168[i].getElementsByTagName(tag))}break;case">":for(i=0;i<j;i++){var _173=_168[i].childNodes;for(var k=0,l=_173.length;k<l;k++){if(Selectors.Filter.hasTag(_173[k],tag)){_171.push(_173[k])}}}break;default:var all=!!(_169=="~");for(i=0;i<j;i++){var next=_168[i].nextSibling;while(next){if(Selectors.Filter.hasTag(next,tag)){_171.push(next);if(!all){break}}next=next.nextSibling}}}_168=(id)?Elements.filterById(_171,id,true):_171}else{if(id){var el=_16a.getElementById(id);if(!el||((tag!="*")&&(el.tagName.toLowerCase()!=tag))){return false}_168=[el]}else{_168=$A(_16a.getElementsByTagName(tag))}}for(i=_16d.length;i--;i){_168=Elements.filterByClass(_168,_16d[i],true)}for(i=_16e.length;i--;i){var bits=_16e[i];_168=Elements.filterByAttribute(_168,bits[0],bits[1],bits[2],true)}for(i=_16f.length;i--;i){var _17a=_16f[i];if(_17a.parser&&_17a.parser.filter){var temp={},_17c=_17a.parser,_17d=_17a.argument;_168=_168.filter(function(el,i,_180){return _17c.filter(el,_17d,i,_180,temp)});temp=null}else{_168=Elements.filterByAttribute(_168,_17a.name,($chk(_17a.argument))?"=":false,_17a.argument,true)}}return _168},getItems:function(_181,_182,_183){return(_183)?_181:new Elements(_181)},hasTag:function(el,tag){return(el.nodeName&&el.nodeType==1&&(tag=="*"||el.tagName.toLowerCase()==tag))}};Selectors.Method=(Client.Features.xpath)?Selectors.XPath:Selectors.Filter;Element.Events.domready={add:function(fn){if(Client.loaded){fn.call(this);return this}var self=this;var _188=function(){if(!arguments.callee.done){arguments.callee.done=true;fn.call(self)}return true};var _189=function(_18a){if((Client.Engine.webkit?["loaded","complete"]:"complete").contains(_18a.readyState)){return _188()}return false};if(document.readyState&&Client.Engine.webkit){(function(){if(!_189(document)){arguments.callee.delay(50)}})()}else{if(document.readyState&&Client.Engine.ie){var _18b=$("ie_domready");if(!_18b){var src=(window.location.protocol=="https:")?"//:":"javascript:void(0)";document.write("<script id=\"ie_domready\" defer src=\""+src+"\"></script>");_18b=$("ie_domready")}if(!_189(_18b)){_18b.addEvent("readystatechange",_189.pass(_18b))}}else{window.addEvent("load",_188);document.addEvent("DOMContentLoaded",_188)}}return this}};window.addEvent("domready",function(){Client.loaded=true});var Fx=new Class({Implements:[Chain,Events,Options],options:{transition:function(p){return-(Math.cos(Math.PI*p)-1)/2},duration:500,unit:false,wait:true,fps:50},initialize:function(){var _18e=$A(arguments).associate({"options":"object","element":true});this.element=this.element||_18e.element;this.setOptions(_18e.options)},step:function(){var time=$time();if(time<this.time+this.options.duration){this.delta=this.options.transition((time-this.time)/this.options.duration);this.setNow();this.increase()}else{this.stop(true);this.now=this.to;this.increase();this.fireEvent("onComplete",this.element,10);this.callChain()}},set:function(to){this.now=to;this.increase();this.fireEvent("onSet",this.element);return this},setNow:function(){this.now=this.compute(this.from,this.to)},compute:function(from,to){return(to-from)*this.delta+from},start:function(from,to){if(!this.options.wait){this.stop()}else{if(this.timer){return this}}this.from=from;this.to=to;this.change=this.to-this.from;this.time=$time();this.timer=this.step.periodical(Math.round(1000/this.options.fps),this);this.fireEvent("onStart",this.element);return this},stop:function(end){if(!this.timer){return this}this.timer=$clear(this.timer);if(!end){this.fireEvent("onCancel",this.element)}return this}});Element.Setters.styles=function(_196){this.setStyles(_196)};Element.extend({setStyle:function(_197,_198){switch(_197){case"opacity":return this.setOpacity(parseFloat(_198));case"float":_197=(Client.Engine.ie)?"styleFloat":"cssFloat"}_197=_197.camelCase();if($type(_198)!="string"){var map=(Element.Styles.All[_197]||"@").split(" ");_198=$splat(_198).map(function(val,i){if(!map[i]){return""}return($type(val)=="number")?map[i].replace("@",Math.round(val)):val}).join(" ")}else{if(_198==Number(_198)+""){_198=Math.round(_198)}}this.style[_197]=_198;return this},setStyles:function(_19c){switch($type(_19c)){case"object":for(var _19d in _19c){this.setStyle(_19d,_19c[_19d])}break;case"string":this.style.cssText=_19c}return this},setOpacity:function(_19e){if(_19e==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden"}}else{if(this.style.visibility!="visible"){this.style.visibility="visible"}}if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1}if(Client.Engine.ie){this.style.filter=(_19e==1)?"":"alpha(opacity="+_19e*100+")"}this.style.opacity=this.$attributes.opacity=_19e;return this},getStyle:function(_19f){_19f=_19f.camelCase();if(_19f=="opacity"){return this.$attributes.opacity}var _1a0=this.style[_19f];if(!$chk(_1a0)){_1a0=[];for(var _1a1 in Element.Styles.Short){if(_19f!=_1a1){continue}for(var s in Element.Styles.Short[_1a1]){_1a0.push(this.getStyle(s))}return(_1a0.every(function(item){return item==_1a0[0]}))?_1a0[0]:_1a0.join(" ")}if(document.defaultView){_1a0=document.defaultView.getComputedStyle(this,null).getPropertyValue(_19f.hyphenate())}else{if(this.currentStyle){_1a0=this.currentStyle[_19f]}}}if(_1a0){_1a0=String(_1a0);var _1a4=_1a0.match(/rgba?\([\d\s,]+\)/);if(_1a4){_1a0=_1a0.replace(_1a4[0],_1a4[0].rgbToHex())}}return(Client.Engine.ie)?Element.$fixStyle(_19f,_1a0,this):_1a0},getStyles:function(){var _1a5={};$each(arguments,function(key){_1a5[key]=this.getStyle(key)},this);return _1a5}});Element.$fixStyle=function(_1a7,_1a8,_1a9){if($chk(parseInt(_1a8))){return _1a8}if(["height","width"].contains(_1a7)){var _1aa=(_1a7=="width")?["left","right"]:["top","bottom"];var size=0;_1aa.each(function(_1ac){size+=_1a9.getStyle("border-"+_1ac+"-width").toInt()+_1a9.getStyle("padding-"+_1ac).toInt()});return _1a9["offset"+_1a7.capitalize()]-size+"px"}else{if(_1a7.test(/border(.+)Width|margin|padding/)){return"0px"}}return _1a8};Element.Styles={All:{"width":"@px","height":"@px","left":"@px","top":"@px","bottom":"@px","right":"@px","backgroundColor":"rgb(@, @, @)","backgroundPosition":"@px @px","color":"rgb(@, @, @)","fontSize":"@px","letterSpacing":"@px","lineHeight":"@px","margin":"@px @px @px @px","padding":"@px @px @px @px","border":"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)","borderWidth":"@px @px @px @px","borderStyle":"@ @ @ @","borderColor":"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)","zIndex":"@","zoom":"@","fontWeight":"@","textIndent":"@px","opacity":"@"},Short:{"margin":{},"padding":{},"border":{},"borderWidth":{},"borderStyle":{},"borderColor":{}}};["Top","Right","Bottom","Left"].each(function(_1ad){var _1ae=Element.Styles.Short;var All=Element.Styles.All;["margin","padding"].each(function(_1b0){var sd=_1b0+_1ad;_1ae[_1b0][sd]=All[sd]="@px"});var bd="border"+_1ad;_1ae.border[bd]=All[bd]="@px @ rgb(@, @, @)";var bdw=bd+"Width",bds=bd+"Style",bdc=bd+"Color";_1ae[bd]={};_1ae.borderWidth[bdw]=_1ae[bd][bdw]="@px";_1ae.borderStyle[bds]=_1ae[bd][bds]="@";_1ae.borderColor[bdc]=_1ae[bd][bdc]="rgb(@, @, @)"});Fx.CSS={prepare:function(_1b6,_1b7,_1b8){_1b8=$splat(_1b8);var _1b9=_1b8[1];if(!$chk(_1b9)){_1b8[1]=_1b8[0];_1b8[0]=_1b6.getStyle(_1b7)}var _1ba=_1b8.map(Fx.CSS.set);return{"from":_1ba[0],"to":_1ba[1]}},set:function(_1bb){_1bb=($type(_1bb)=="string")?_1bb.split(" "):$splat(_1bb);return _1bb.map(function(val){val=String(val);var _1bd=false;Fx.CSS.Parsers.each(function(_1be,key){if(!_1bd){var _1c0=_1be.match(val);if($chk(_1c0)){_1bd={"value":_1c0,"parser":_1be}}}});return _1bd||{"value":val,parser:{compute:function(from,to){return to}}}})},compute:function(from,to,fx){return from.map(function(obj,i){return{"value":obj.parser.compute(obj.value,to[i].value,fx),"parser":obj.parser}})},serve:function(now,unit){return now.reduce(function(prev,cur){var _1cc=cur.parser.serve;return prev.concat((_1cc)?_1cc(cur.value,unit):cur.value)},[])}};Fx.CSS.Parsers=new Abstract({"color":{match:function(_1cd){if(_1cd.match(/^#[0-9a-f]{3,6}$/i)){return _1cd.hexToRgb(true)}return((_1cd=_1cd.match(/(\d+),\s*(\d+),\s*(\d+)/)))?[_1cd[1],_1cd[2],_1cd[3]]:false},compute:function(from,to,fx){return from.map(function(_1d1,i){return Math.round(fx.compute(_1d1,to[i]))})},serve:function(_1d3){return _1d3.map(Number)}},"number":{match:function(_1d4){return parseFloat(_1d4)},compute:function(from,to,fx){return fx.compute(from,to)},serve:function(_1d8,unit){return(unit)?_1d8+unit:_1d8}}});Fx.Style=new Class({Extends:Fx,initialize:function(_1da,_1db,_1dc){this.parent($(_1da),_1dc);this.property=_1db},hide:function(){return this.set(0)},setNow:function(){this.now=Fx.CSS.compute(this.from,this.to,this)},set:function(to){return this.parent(Fx.CSS.set(to))},start:function(from,to){if(this.timer&&this.options.wait){return this}var _1e0=Fx.CSS.prepare(this.element,this.property,[from,to]);return this.parent(_1e0.from,_1e0.to)},increase:function(){this.element.setStyle(this.property,Fx.CSS.serve(this.now,this.options.unit))}});Element.extend({effect:function(_1e1,_1e2){return new Fx.Style(this,_1e1,_1e2)}});Fx.Transition=function(_1e3,_1e4){_1e4=$splat(_1e4)||[];return $extend(_1e3,{easeIn:function(pos){return _1e3(pos,_1e4)},easeOut:function(pos){return 1-_1e3(1-pos,_1e4)},easeInOut:function(pos){return(pos<=0.5)?_1e3(2*pos,_1e4)/2:(2-_1e3(2*(1-pos),_1e4))/2}})};Fx.Transitions=new Abstract({linear:function(p){return p}});Fx.Transitions.extend=function(_1e9){for(var _1ea in _1e9){Fx.Transitions[_1ea]=new Fx.Transition(_1e9[_1ea])}};Fx.Transitions.extend({Pow:function(p,x){return Math.pow(p,x[0]||6)},Expo:function(p){return Math.pow(2,8*(p-1))},Circ:function(p){return 1-Math.sin(Math.acos(p))},Sine:function(p){return 1-Math.sin((1-p)*Math.PI/2)},Back:function(p,x){x=x[0]||1.618;return Math.pow(p,2)*((x+1)*p-x)},Bounce:function(p){var _1f3;for(var a=0,b=1;1;a+=b,b/=2){if(p>=(7-4*a)/11){_1f3=-Math.pow((11-6*a-11*p)/4,2)+b*b;break}}return _1f3},Elastic:function(p,x){return Math.pow(2,10*--p)*Math.cos(20*p*Math.PI*(x[0]||1)/3)}});["Quad","Cubic","Quart","Quint"].each(function(_1f8,i){Fx.Transitions[_1f8]=new Fx.Transition(function(p){return Math.pow(p,[i+2])})});var FDBase=new Class({_remAds:false,_registeredWidgets:[],_widgets:[],_ads:[],_adLU:[],_scripts:[],_images:[],_trackImg:[],_usePriority:false,initialize:function(){window.addEvent("domready",this._init.bind(this))},_init:function(){if(typeof(window["initPost"])=="function"){this._registeredWidgets.push("initPost");initPost()}this._excludeAds();this._spawnWidgets()},_sortByPriority:function(a,b){return a.priority-b.priority},_spawnWidgets:function(){if(this._widgets.length>1&&this._usePriority){this._widgets.sort(this._sortByPriority)}for(var a=0,i=this._widgets.length;a<i;a++){var _1ff=this._widgets[a];if(_1ff.type=="ad"&&!this._remAds&&!_1ff.exclude){this._spawnAd(_1ff)}else{if(!_1ff.exclude&&_1ff.name){window.fireEvent("init"+_1ff.name)}}}},exclude:function(_200){for(var a=0;a<this._widgets.length;a++){var _202=this._widgets[a];if(_202.name==_200){_202.exclude=true}}},register:function(name,_204){if(name){var w={name:name,priority:_204};if(arguments[2]&&!isNaN(arguments[2])){w.priority=arguments[2]}if(!isNaN(w.priority)){this._usePriority=true}else{w.priority=99}this._widgets.push(w)}},setWidgetPriority:function(_206,_207){for(var a=0;a<this._widgets.length;a++){if(this._widgets[a].name==_206){this._widgets[a].priority=_207}}},_spawnAd:function(_209){var _20a;if(_20a=$(_209.id)){if(_209.addSmall){var _20b=new Element("small");_20b.setText(_209.smallText);if(_209.addSmall=="top"||_209.addSmall=="both"){_20b.injectInside(_20a)}}if($type(_209.src)=="string"){_209.src=[_209.src]}var _20c={frameBorder:"0",marginHeight:"0",marginWidth:"0",hspace:"0",vspace:"0",scrolling:"no"};if(_209.src.length>1){for(var i=_209.src.length-1;i>=0;--i){var j=Math.floor(Math.random()*(i+1));if(i==j){continue}var temp=_209.src[i];_209.src[i]=_209.src[j];_209.src[j]=temp}}for(var a=0,i=_209.src.length;a<i;a++){var src=_209.src[a];var _212={};if(src.indexOf("/js.ng/")>-1){src=src.replace(/(\/js.ng\/)/i,"/html.ng/")}var _213=_209.width;var _214=_209.height;if(isNaN(_213)||isNaN(_214)){if(src.indexOf("adspace=")>-1){var _215;if(_215=src.match(/adspace=([0-9]+)x([0-9]+)/i)){if(!isNaN(_215[1])&&!isNaN(_215[2])){_213=_215[1];_214=_215[2]}}}}_212.src=src;_212.id=_209.iframeId;if(a>0){_212.id+=a}_212.name=_212.id;var _216="<iframe ";var _217=$extend(_20c,_212);for(var p in _217){_216+=p+"='"+_217[p]+"' "}if(_213||_214){_216+="style='";if(_213){_216+="width: "+_213+"px; "}if(_214){_216+="height: "+_214+"px'"}_216+="'"}_216+="></iframe>";_20a.innerHTML+=_216}if(_209.addSmall=="bottom"||_209.addSmall=="both"){_20b.clone().injectInside(_20a)}}},_excludeAds:function(){if(typeof(ffxAdExclusionList)!="undefined"){var _219=window.location.pathname;for(var i=0;i<ffxAdExclusionList.length;i++){var _21b=ffxAdExclusionList[i];if(_21b=="remove_all_ads"){this._remAds=true}else{if(_21b=="remove_article_ads"){if(_219.match(/\/news\/[a-zA-Z0-9-]+\/[a-zA-Z0-9-]+\/[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/[0-9]+.html/)||_219.match(/\/articles\/.*?/)){this._remAds=true}}else{if(_21b=="remove_index_ads"){if(_219.match(/\/index.html$/)||!_219.match(/.html$/)){this._remAds=true}}else{if(_21b==_219){this._remAds=true}}}}}}},addAd:function(id,_21d,src,_21f,_220,_221,_222){var _223=["id","iframeId","src","width","height","addSmall","priority"];if(arguments.length>0){var obj={};if($type(arguments[0])=="object"){obj=arguments[0]}else{for(var a=0;a<arguments.length;a++){obj[_223[a]]=arguments[a]}}obj.type="ad";if(obj.addSmall){if(obj.addSmall==true){obj.addSmall="top"}if(!obj.smallText){obj.smallText="Advertisement"}}if(obj.params){if($type(obj.src)!="array"){obj.src=[obj.src]}for(var a=0;a<obj.src.length;a++){if(obj.src[a].indexOf("html.ng")==-1&&obj.src[a].indexOf("js.ng")==-1&&obj.src[a][obj.src[a].length-1]!="/"&&obj.src[a][obj.src[a].length-1]!="?"){obj.src[a]+="?"}for(var p in obj.params){obj.src[a]+=p+"="+obj.params[p]+"&"}}}if(!this._ads[obj.iframeId]&&$(obj.id)){var _227=$(obj.id);if(isNaN(obj.priority)){obj.priority=99}else{this._usePriority=true}this._ads[obj.iframeId]=true;this._widgets.push(obj);this._adLU.push(obj.iframeId)}}},refreshAd:function(id){if(id){if(id=="*"){for(var a=0;a<this._adLU.length;a++){this.refreshAd(this._adLU[a])}}else{var _22a;var _22b;if(_22b=this._ads[id]){if(ad=$(_22b.iframeId)){ad.src=ad.src}}}}},_getNielsonURL:function(){return this.getProtocol()+"//secure-au.imrworldwide.com/"},_nnRecordFactory:function(_22c){if(_22c.indexOf("http")==-1){var _22d=window.location;var _22e="";if(_22c.charAt(0)!="/"){_22e="/"}_22c=_22d.protocol+"//"+_22d.host+_22e+_22c}var _22f="f2";var _230="au";var _231=0;if(typeof(_nnCG)=="undefined"){if(typeof(_rsCG)!="undefined"){_nnCG=_rsCG}else{_nnCG=0}}var _232=this._getNielsonURL();var _233=_232+"cgi-bin/m?rnd="+(new Date()).getTime();_233+="&ci="+_22f;_233+="&cg="+escape(_nnCG);_233+="&cc="+_231;_233+="&si="+_22f+"-ctgw-"+escape(_22c);_233+="&rp="+escape(window.location);return _233},_initTracking:function(){if(typeof(_rsCG)!="undefined"&&typeof(_rsLP)=="undefined"){if(!$("nielsonTS")){var url=this._getNielsonURL()+"v52.js";this.addScript("nielsonTS",url)}}},_trackingImageLoaded:function(id,x){if(this._trackImg[id]){this._trackImg[id].shift()}},doContentImpression:function(id,url){if(!this._trackImg[id]){this._trackImg[id]=[]}var _239=this._trackImg[id].length;var src=this._nnRecordFactory(url);this._trackImg[id][_239]=new Element("img");this._trackImg[id][_239].src=src;this._trackImg[id][_239].onload=this._trackingImageLoaded.bind(this,[id,_239])},addTag:function(type,dest,tag){var _23e=false;var _23f=tag.split(/ /);var _240={};for(var a=0;a<_23f.length;a++){var _242;if(_23f[a].indexOf("\"")>-1||_23f[a].indexOf("'")>-1){var re=/([a-zA-Z]+)[ =][\"\']+([\d\w\W\s]+?)[\"\']+/i}else{var re=/([a-zA-Z]+)[ =]([\d\w\W\s]+?)/i}if(_242=_23f[a].match(re)){_240[_242[1]]=_242[2]}}var _244=new Element(type);_244.setProperties(_240);_244.injectInside($$(dest)[0])},getProtocol:function(){return location.protocol.indexOf("https")>-1?"https:":"http:"},inArray:function(_245,_246){for(var x=0;x<_245.length;x++){if(_245[x]==_246){return true}}},setBatchStyle:function(_248,_249,_24a){for(var a=0;a<_248.length;a++){_248[a].setStyle(_249,_24a)}}});var FD=new FDBase();

FD.ContentScroll=new Class({options:{dur:500,trans:Fx.Transitions.Quad,initialItem:0,itemsAtOnce:1,rotate:true,scrlAuto:false,scrlAutoTO:5000,scrlDir:"horiz",cDisabled:"disabled",cInactive:"inactive",cNextItem:"fdScrollNextItem",cPrevItem:"fdScrollPrevItem",cScrlNext:"fdScrollNext",cScrlPrev:"fdScrollPrev",cSelected:"selected",sufHolder:"_holder",sufScroller:"_scroller",sufParent:"_parent"},initialize:function(id,_2){this.id=id;this.scrolling=false;this.rem=0;var _3=$(id);if(_3){this.setOptions(_2);this.curItem=this.options.initialItem;_3.setStyle("list-style-type","none");var _4=new Element("div");_4.setStyle("position","absolute");_4.id=this.id+this.options.sufScroller;var _5=this.id+this.options.sufHolder;if(!_3.getParent().id&&_3.getParent().id!=_5){var _6=new Element("div");_6.id=this.id+this.options.sufHolder;_6.injectAfter(_3)}else{var _6=$(_5)}_6.setStyle("position","relative");_6.setStyle("overflow","hidden");_4.injectInside(_6);var _7=this.getHolderProps();_3.injectInside(_4);var _8=this.getListItems();if(_8){var _9=0;if(_8[0]){this.itemPerScr=Math.floor(_6[this.priDim]/_8[0][this.priDim]);this.altItemPerScr=Math.floor(_6[this.altDim]/_8[0][this.altDim]);if(this.horiz&&this.altItemPerScr>0){this.itemC=Math.ceil(_8.length/this.altItemPerScr)}else{this.itemC=_8.length}for(var a=0;a<this.itemC;a++){_9+=_8[a][this.priDim]}this.rem=this.itemC%this.altItemPerScr;_4.setStyle(this.priDimSet,_9+"px");if(this.altItemPerScr>1){if(!this.horiz){this.options.itemsAtOnce*=this.altItemPerScr}}if(!this.horiz){this.itemPerScr*=this.altItemPerScr}}}if(this.itemC>this.itemPerScr){this.addBehav(this.options.cNextItem,"click","scrollBy",this.options.itemsAtOnce);this.addBehav(this.options.cPrevItem,"click","scrollBy",-1*(this.options.itemsAtOnce));this.addBehav(this.options.cScrlNext,"click","scrollBy",this.itemPerScr);this.addBehav(this.options.cScrlPrev,"click","scrollBy",-1*(this.itemPerScr))}}if(this.options.scrlAuto){this.setAutoTimout();var _b=this.getWrapDiv();_b.addEvent("mouseover",this.remAutoTimout.bind(this))}},getScroller:function(){var _c=this.id+this.options.sufScroller;return $(_c)},getHolder:function(){var _d=this.id+this.options.sufHolder;return $(_d)},getListItems:function(){return $(this.id).getElements("li")},getWrapDiv:function(){var _e=this.getHolder();if(_e){if(_e.getParent()&&_e.getParent().id==this.id+this.options.sufParent){wrapDiv=_e.getParent()}else{wrapDiv=_e}}return wrapDiv},remAutoTimout:function(){var _f=this.getWrapDiv();if(this.autoTimeout){$clear(this.autoTimeout);_f.removeEvents("mouseleave");_f.addEvent("mouseleave",this.setAutoTimout.bind(this))}},setAutoTimout:function(){this.autoTimeout=this.scrollBy.periodical(this.options.scrlAutoTO,this,1)},scrollBy:function(_10){if(!this.scrolling){var _11=this.curItem+_10;this.gotoPos(_11)}},getValidPos:function(_12){if(!isNaN(_12)){if(_12<0){if(this.options.rotate){_12=this.itemC-this.itemPerScr}else{_12=0}}else{if(_12>=(this.itemC-this.itemPerScr+this.rem)){if(this.options.rotate&&_12>(this.itemC-this.itemPerScr+this.rem)){_12=0}else{_12=this.itemC-this.itemPerScr}if(this.rem>0){_12+=this.rem}}}if(_12<0){_12=0}return _12}},gotoPos:function(_13){var _14=this.getScroller();var _15=this.getListItems();if(_14&&_15){var _13=this.getValidPos(_13);var _16=_14[this.priOffset].toInt();var _17=_15[_13][this.priOffset].toInt();if(_17!=(-1*_16)){this.processButtons(_13,_17);this.scrolling=true;var _18={duration:this.options.dur,transition:this.options.trans,onComplete:this.scrollComplete.bind(this)};var fx=new Fx.Style(_14,this.priDir,_18);_17=_17*-1;fx.start(_16,_17);this.curItem=_13}}},processButtons:function(_1a,_1b){var _1c;var _1d=this.getListItems();var _1e=$$("a."+this.options.cNextItem);var _1f=$$("a."+this.options.cPrevItem);var _20=$$("a."+this.options.cScrlNext);var _21=$$("a."+this.options.cScrlPrev);var _22=this.itemC-this.itemPerScr+this.rem;var _23=_1d[_22][this.priOffset].toInt();var _24=this.options.cDisabled;if(_1e.length>0){for(var a=0;a<_1e.length;a++){if(_1b==0||(_1b==_23)){this.toggleDisabledClass(_1f);this.toggleDisabledClass(_21);this.toggleDisabledClass(_1e);this.toggleDisabledClass(_20)}else{if(_1b>0&&_1b<_23){this.removeDisabledClass(_1f);this.removeDisabledClass(_21);this.removeDisabledClass(_1e);this.removeDisabledClass(_20)}}}}},toggleDisabledClass:function(_26){if(_26&&_26.length>0){for(var a=0,i=_26.length;a<i;a++){_26[a].toggleClass(this.options.cDisabled)}}},removeDisabledClass:function(_29){if(_29&&_29.length>0){for(var a=0,i=_29.length;a<i;a++){_29[a].removeClass(this.options.cDisabled)}}},addBehav:function(_2c,_2d,_2e,_2f){var _30=[];if(_30=$$("a."+_2c)){for(var i=0;i<_30.length;i++){_30[i].addEvent(_2d,this[_2e].bind(this,_2f))}}return _30},scrollComplete:function(){this.scrolling=false},getHolderProps:function(){if(this.options.scrlDir=="horiz"){this.horiz=true;this.priDim="offsetWidth";this.priDir="left";this.priOffset="offsetLeft";this.priDimSet="width";this.altDim="offsetHeight";this.altDir="top";this.altOffset="offsetTop";this.altDimSet="height"}else{this.horiz=false;this.priDim="offsetHeight";this.priDir="top";this.priOffset="offsetTop";this.priDimSet="height";this.altDim="offsetWidth";this.altDir="left";this.altOffset="offsetLeft";this.altDimSet="width"}var _32=this.getScroller();return{width:_32.offsetWidth,height:_32.offsetHeight}}});FD.ContentScroll.implement(new Options);FD.contentScrollerController=new Class({contentScrollers:[],initialize:function(){var _33=$$(".fdContentScroll");for(var x=0;x<_33.length;x++){if(!_33[x].id){alert("Fatal Error: Content scroller without unique id found");break}var _35=null;if(eval("typeof("+_33[x].id+"_options)")=="object"){_35=eval(_33[x].id+"_options")}this.contentScrollers[_33[x].id]=new FD.ContentScroll(_33[x].id,_35)}}});if(FD){var FDContentScrollerController;var initContentScrollers=function(){FDContentScrollerController=new FD.contentScrollerController()};window.addEvent("initFDContentScroll",initContentScrollers);FD.register("FDContentScroll")}

if(FD) {
  var woffRotator_options = {
    scrlAuto: true,
    scrlAutoTO: 7000
  };
  
}
