/*
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.
*/
/**
  * @name: FD
  * @package: Fairfax Digital Javascript Framework
  * @version: 0.5
  * @author: Dave Elkan
  * @copyright: Copyright 2007. Fairfax Digital.
  * * * * * * * * * * * * * * * * * * * * * * * * * *
  *             DO NOT ALTER THIS FILE.
  * If your requirements are not met by this widget
  * or this widget does not work please ask
  * Dave Elkan <delkan@fairfaxdigital.com.au>.
  * This widget is designed to to be used across
  * the Fairfax Digital Network and contains no
  * site specific code.
  * Altering this file will render it unsupportable.
  * * * * * * * * * * * * * * * * * * * * * * * * * *
  **/

var MooTools={version:"1.11"};function $defined(_1){return(_1!=undefined)}function $type(_2){if(!$defined(_2)){return false}if(_2.htmlElement){return"element"}var _3=typeof _2;if(_3=="object"&&_2.nodeName){switch(_2.nodeType){case 1:return"element";case 3:return(/\S/).test(_2.nodeValue)?"textnode":"whitespace"}}if(_3=="object"||_3=="function"){switch(_2.constructor){case Array:return"array";case RegExp:return"regexp";case Class:return"class"}if(typeof _2.length=="number"){if(_2.item){return"collection"}if(_2.callee){return"arguments"}}}return _3}function $merge(){var _4={};for(var i=0;i<arguments.length;i++){for(var _6 in arguments[i]){var ap=arguments[i][_6];var mp=_4[_6];if(mp&&$type(ap)=="object"&&$type(mp)=="object"){_4[_6]=$merge(mp,ap)}else{_4[_6]=ap}}}return _4}var $extend=function(){var _9=arguments;if(!_9[1]){_9=[this,_9[0]]}for(var _a in _9[1]){_9[0][_a]=_9[1][_a]}return _9[0]};var $native=function(){for(var i=0,l=arguments.length;i<l;i++){arguments[i].extend=function(_d){for(var _e in _d){if(!this.prototype[_e]){this.prototype[_e]=_d[_e]}if(!this[_e]){this[_e]=$native.generic(_e)}}}}};$native.generic=function(_f){return function(_10){return this.prototype[_f].apply(_10,Array.prototype.slice.call(arguments,1))}};$native(Function,Array,String,Number);function $chk(obj){return!!(obj||obj===0)}function $pick(obj,_13){return $defined(obj)?obj:_13}function $random(min,max){return Math.floor(Math.random()*(max-min+1)+min)}function $time(){return new Date().getTime()}function $clear(_16){clearTimeout(_16);clearInterval(_16);return null}var Abstract=function(obj){obj=obj||{};obj.extend=$extend;return obj};var Window=new Abstract(window);var Document=new Abstract(document);document.head=document.getElementsByTagName("head")[0];window.xpath=!!(document.evaluate);if(window.ActiveXObject){window.ie=window[window.XMLHttpRequest?"ie7":"ie6"]=true}else{if(document.childNodes&&!document.all&&!navigator.taintEnabled){window.webkit=window[window.xpath?"webkit420":"webkit419"]=true}else{if(document.getBoxObjectFor!=null){window.gecko=true}}}window.khtml=window.webkit;Object.extend=$extend;if(typeof HTMLElement=="undefined"){var HTMLElement=function(){};if(window.webkit){document.createElement("iframe")}HTMLElement.prototype=(window.webkit)?window["[[DOMElement.prototype]]"]:{}}HTMLElement.prototype.htmlElement=function(){};if(window.ie6){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}var Class=function(_18){var _19=function(){return(arguments[0]!==null&&this.initialize&&$type(this.initialize)=="function")?this.initialize.apply(this,arguments):this};$extend(_19,this);_19.prototype=_18;_19.constructor=Class;return _19};Class.empty=function(){};Class.prototype={extend:function(_1a){var _1b=new this(null);for(var _1c in _1a){var pp=_1b[_1c];_1b[_1c]=Class.Merge(pp,_1a[_1c])}return new Class(_1b)},implement:function(){for(var i=0,l=arguments.length;i<l;i++){$extend(this.prototype,arguments[i])}}};Class.Merge=function(_20,_21){if(_20&&_20!=_21){var _22=$type(_21);if(_22!=$type(_20)){return _21}switch(_22){case"function":var _23=function(){this.parent=arguments.callee.parent;return _21.apply(this,arguments)};_23.parent=_20;return _23;case"object":return $merge(_20,_21)}}return _21};Array.extend({forEach:function(fn,_25){for(var i=0,j=this.length;i<j;i++){fn.call(_25,this[i],i,this)}},filter:function(fn,_29){var _2a=[];for(var i=0,j=this.length;i<j;i++){if(fn.call(_29,this[i],i,this)){_2a.push(this[i])}}return _2a},map:function(fn,_2e){var _2f=[];for(var i=0,j=this.length;i<j;i++){_2f[i]=fn.call(_2e,this[i],i,this)}return _2f},every:function(fn,_33){for(var i=0,j=this.length;i<j;i++){if(!fn.call(_33,this[i],i,this)){return false}}return true},some:function(fn,_37){for(var i=0,j=this.length;i<j;i++){if(fn.call(_37,this[i],i,this)){return true}}return false},indexOf:function(_3a,_3b){var len=this.length;for(var i=(_3b<0)?Math.max(0,len+_3b):_3b||0;i<len;i++){if(this[i]===_3a){return i}}return-1},copy:function(_3e,_3f){_3e=_3e||0;if(_3e<0){_3e=this.length+_3e}_3f=_3f||(this.length-_3e);var _40=[];for(var i=0;i<_3f;i++){_40[i]=this[_3e++]}return _40},remove:function(_42){var i=0;var len=this.length;while(i<len){if(this[i]===_42){this.splice(i,1);len--}else{i++}}return this},contains:function(_45,_46){return this.indexOf(_45,_46)!=-1},associate:function(_47){var obj={},_49=Math.min(this.length,_47.length);for(var i=0;i<_49;i++){obj[_47[i]]=this[i]}return obj},extend:function(_4b){for(var i=0,j=_4b.length;i<j;i++){this.push(_4b[i])}return this},merge:function(_4e){for(var i=0,l=_4e.length;i<l;i++){this.include(_4e[i])}return this},include:function(_51){if(!this.contains(_51)){this.push(_51)}return this},getRandom:function(){return this[$random(0,this.length-1)]||null},getLast:function(){return this[this.length-1]||null}});Array.prototype.each=Array.prototype.forEach;Array.each=Array.forEach;function $A(_52){return Array.copy(_52)}function $each(_53,fn,_55){if(_53&&typeof _53.length=="number"&&$type(_53)!="object"){Array.forEach(_53,fn,_55)}else{for(var _56 in _53){fn.call(_55||_53,_53[_56],_56)}}}Array.prototype.test=Array.prototype.contains;Function.extend({create:function(_57){var fn=this;_57=$merge({"bind":fn,"event":false,"arguments":null,"delay":false,"periodical":false,"attempt":false},_57);if($chk(_57.arguments)&&$type(_57.arguments)!="array"){_57.arguments=[_57.arguments]}return function(_59){var _5a;if(_57.event){_59=_59||window.event;_5a=[(_57.event===true)?_59:new _57.event(_59)];if(_57.arguments){_5a.extend(_57.arguments)}}else{_5a=_57.arguments||arguments}var _5b=function(){return fn.apply($pick(_57.bind,fn),_5a)};if(_57.delay){return setTimeout(_5b,_57.delay)}if(_57.periodical){return setInterval(_5b,_57.periodical)}if(_57.attempt){try{return _5b()}catch(err){return false}}return _5b()}},pass:function(_5c,_5d){return this.create({"arguments":_5c,"bind":_5d})},attempt:function(_5e,_5f){return this.create({"arguments":_5e,"bind":_5f,"attempt":true})()},bind:function(_60,_61){return this.create({"bind":_60,"arguments":_61})},bindAsEventListener:function(_62,_63){return this.create({"bind":_62,"event":true,"arguments":_63})},delay:function(_64,_65,_66){return this.create({"delay":_64,"bind":_65,"arguments":_66})()},periodical:function(_67,_68,_69){return this.create({"periodical":_67,"bind":_68,"arguments":_69})()}});var Chain=new Class({chain:function(fn){this.chains=this.chains||[];this.chains.push(fn);return this},callChain:function(){if(this.chains&&this.chains.length){this.chains.shift().delay(10,this)}},clearChain:function(){this.chains=[]}});var Events=new Class({addEvent:function(_6b,fn){if(fn!=Class.empty){this.$events=this.$events||{};this.$events[_6b]=this.$events[_6b]||[];this.$events[_6b].include(fn)}return this},fireEvent:function(_6d,_6e,_6f){if(this.$events&&this.$events[_6d]){this.$events[_6d].each(function(fn){fn.create({"bind":this,"delay":_6f,"arguments":_6e})()},this)}return this},removeEvent:function(_71,fn){if(this.$events&&this.$events[_71]){this.$events[_71].remove(fn)}return this}});var Options=new Class({setOptions:function(){this.options=$merge.apply(null,[this.options].extend(arguments));if(this.addEvent){for(var _73 in this.options){if($type(this.options[_73]=="function")&&(/^on[A-Z]/).test(_73)){this.addEvent(_73,this.options[_73])}}}return this}});String.extend({test:function(_74,_75){return(($type(_74)=="string")?new RegExp(_74,_75):_74).test(this)},toInt:function(){return parseInt(this,10)},toFloat:function(){return parseFloat(this)},camelCase:function(){return this.replace(/-\D/g,function(_76){return _76.charAt(1).toUpperCase()})},hyphenate:function(){return this.replace(/\w[A-Z]/g,function(_77){return(_77.charAt(0)+"-"+_77.charAt(1).toLowerCase())})},capitalize:function(){return this.replace(/\b[a-z]/g,function(_78){return _78.toUpperCase()})},trim:function(){return this.replace(/^\s+|\s+$/g,"")},clean:function(){return this.replace(/\s{2,}/g," ").trim()},rgbToHex:function(_79){var rgb=this.match(/\d{1,3}/g);return(rgb)?rgb.rgbToHex(_79):false},hexToRgb:function(_7b){var hex=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(hex)?hex.slice(1).hexToRgb(_7b):false},contains:function(_7d,s){return(s)?(s+this+s).indexOf(s+_7d+s)>-1:this.indexOf(_7d)>-1},escapeRegExp:function(){return this.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")}});Array.extend({rgbToHex:function(_7f){if(this.length<3){return false}if(this.length==4&&this[3]==0&&!_7f){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 _7f?hex:"#"+hex.join("")},hexToRgb:function(_83){if(this.length!=3){return false}var rgb=[];for(var i=0;i<3;i++){rgb.push(parseInt((this[i].length==1)?this[i]+this[i]:this[i],16))}return _83?rgb:"rgb("+rgb.join(",")+")"}});Number.extend({toInt:function(){return parseInt(this)},toFloat:function(){return parseFloat(this)},limit:function(min,max){return Math.min(max,Math.max(min,this))},round:function(_88){_88=Math.pow(10,_88||0);return Math.round(this*_88)/_88},times:function(fn){for(var i=0;i<this;i++){fn(i)}}});var Element=new Class({initialize:function(el,_8c){if($type(el)=="string"){if(window.ie&&_8c&&(_8c.name||_8c.type)){var _8d=(_8c.name)?" name=\""+_8c.name+"\"":"";var _8e=(_8c.type)?" type=\""+_8c.type+"\"":"";delete _8c.name;delete _8c.type;el="<"+el+_8d+_8e+">"}el=document.createElement(el)}el=$(el);return(!_8c||!el)?el:el.set(_8c)}});var Elements=new Class({initialize:function(_8f){return(_8f)?$extend(_8f,this):this}});Elements.extend=function(_90){for(var _91 in _90){this.prototype[_91]=_90[_91];this[_91]=$native.generic(_91)}};function $(el){if(!el){return null}if(el.htmlElement){return Garbage.collect(el)}if([window,document].contains(el)){return el}var _93=$type(el);if(_93=="string"){el=document.getElementById(el);_93=(el)?"element":false}if(_93!="element"){return null}if(el.htmlElement){return Garbage.collect(el)}if(["object","embed"].contains(el.tagName.toLowerCase())){return el}$extend(el,Element.prototype);el.htmlElement=function(){};return Garbage.collect(el)}document.getElementsBySelector=document.getElementsByTagName;function $$(){var _94=[];for(var i=0,j=arguments.length;i<j;i++){var _97=arguments[i];switch($type(_97)){case"element":_94.push(_97);case"boolean":break;case false:break;case"string":_97=document.getElementsBySelector(_97,true);default:_94.extend(_97)}}return $$.unique(_94)}$$.unique=function(_98){var _99=[];for(var i=0,l=_98.length;i<l;i++){if(_98[i].$included){continue}var _9c=$(_98[i]);if(_9c&&!_9c.$included){_9c.$included=true;_99.push(_9c)}}for(var n=0,d=_99.length;n<d;n++){_99[n].$included=null}return new Elements(_99)};Elements.Multi=function(_9f){return function(){var _a0=arguments;var _a1=[];var _a2=true;for(var i=0,j=this.length,_a5;i<j;i++){_a5=this[i][_9f].apply(this[i],_a0);if($type(_a5)!="element"){_a2=false}_a1.push(_a5)}return(_a2)?$$.unique(_a1):_a1}};Element.extend=function(_a6){for(var _a7 in _a6){HTMLElement.prototype[_a7]=_a6[_a7];Element.prototype[_a7]=_a6[_a7];Element[_a7]=$native.generic(_a7);var _a8=(Array.prototype[_a7])?_a7+"Elements":_a7;Elements.prototype[_a8]=Elements.Multi(_a7)}};Element.extend({set:function(_a9){for(var _aa in _a9){var val=_a9[_aa];switch(_aa){case"styles":this.setStyles(val);break;case"events":if(this.addEvents){this.addEvents(val)}break;case"properties":this.setProperties(val);break;default:this.setProperty(_aa,val)}}return this},inject:function(el,_ad){el=$(el);switch(_ad){case"before":el.parentNode.insertBefore(this,el);break;case"after":var _ae=el.getNext();if(!_ae){el.parentNode.appendChild(this)}else{el.parentNode.insertBefore(this,_ae)}break;case"top":var _af=el.firstChild;if(_af){el.insertBefore(this,_af);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 _b4=[];$each(arguments,function(_b5){_b4=_b4.concat(_b5)});$$(_b4).inject(this);return this},remove:function(){return this.parentNode.removeChild(this)},clone:function(_b6){var el=$(this.cloneNode(_b6!==false));if(!el.$events){return el}el.$events={};for(var _b8 in this.$events){el.$events[_b8]={"keys":$A(this.$events[_b8].keys),"values":$A(this.$events[_b8].values)}}return el.removeEvents()},replaceWith:function(el){el=$(el);this.parentNode.replaceChild(el,this);return el},appendText:function(_ba){this.appendChild(document.createTextNode(_ba));return this},hasClass:function(_bb){return this.className.contains(_bb," ")},addClass:function(_bc){if(!this.hasClass(_bc)){this.className=(this.className+" "+_bc).clean()}return this},removeClass:function(_bd){this.className=this.className.replace(new RegExp("(^|\\s)"+_bd+"(?:\\s|$)"),"$1").clean();return this},toggleClass:function(_be){return this.hasClass(_be)?this.removeClass(_be):this.addClass(_be)},setStyle:function(_bf,_c0){switch(_bf){case"opacity":return this.setOpacity(parseFloat(_c0));case"float":_bf=(window.ie)?"styleFloat":"cssFloat"}_bf=_bf.camelCase();switch($type(_c0)){case"number":if(!["zIndex","zoom"].contains(_bf)){_c0+="px"}break;case"array":_c0="rgb("+_c0.join(",")+")"}this.style[_bf]=_c0;return this},setStyles:function(_c1){switch($type(_c1)){case"object":Element.setMany(this,"setStyle",_c1);break;case"string":this.style.cssText=_c1}return this},setOpacity:function(_c2){if(_c2==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(window.ie){this.style.filter=(_c2==1)?"":"alpha(opacity="+_c2*100+")"}this.style.opacity=this.$tmp.opacity=_c2;return this},getStyle:function(_c3){_c3=_c3.camelCase();var _c4=this.style[_c3];if(!$chk(_c4)){if(_c3=="opacity"){return this.$tmp.opacity}_c4=[];for(var _c5 in Element.Styles){if(_c3==_c5){Element.Styles[_c5].each(function(s){var _c7=this.getStyle(s);_c4.push(parseInt(_c7)?_c7:"0px")},this);if(_c3=="border"){var _c8=_c4.every(function(bit){return(bit==_c4[0])});return(_c8)?_c4[0]:false}return _c4.join(" ")}}if(_c3.contains("border")){if(Element.Styles.border.contains(_c3)){return["Width","Style","Color"].map(function(p){return this.getStyle(_c3+p)},this).join(" ")}else{if(Element.borderShort.contains(_c3)){return["Top","Right","Bottom","Left"].map(function(p){return this.getStyle("border"+p+_c3.replace("border",""))},this).join(" ")}}}if(document.defaultView){_c4=document.defaultView.getComputedStyle(this,null).getPropertyValue(_c3.hyphenate())}else{if(this.currentStyle){_c4=this.currentStyle[_c3]}}}if(window.ie){_c4=Element.fixStyle(_c3,_c4,this)}if(_c4&&_c3.test(/color/i)&&_c4.contains("rgb")){return _c4.split("rgb").splice(1,4).map(function(_cc){return _cc.rgbToHex()}).join(" ")}return _c4},getStyles:function(){return Element.getMany(this,"getStyle",arguments)},walk:function(_cd,_ce){_cd+="Sibling";var el=(_ce)?this[_ce]:this[_cd];while(el&&$type(el)!="element"){el=el[_cd]}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(_d1){var _d2=Element.Properties[_d1];if(_d2){return this[_d2]}var _d3=Element.PropertiesIFlag[_d1]||0;if(!window.ie||_d3){return this.getAttribute(_d1,_d3)}var _d4=this.attributes[_d1];return(_d4)?_d4.nodeValue:null},removeProperty:function(_d5){var _d6=Element.Properties[_d5];if(_d6){this[_d6]=""}else{this.removeAttribute(_d5)}return this},getProperties:function(){return Element.getMany(this,"getProperty",arguments)},setProperty:function(_d7,_d8){var _d9=Element.Properties[_d7];if(_d9){this[_d9]=_d8}else{this.setAttribute(_d7,_d8)}return this},setProperties:function(_da){return Element.setMany(this,"setProperty",_da)},setHTML:function(){this.innerHTML=$A(arguments).join("");return this},setText:function(_db){var tag=this.getTag();if(["style","script"].contains(tag)){if(window.ie){if(tag=="style"){this.styleSheet.cssText=_db}else{if(tag=="script"){this.setProperty("text",_db)}}return this}else{this.removeChild(this.firstChild);return this.appendText(_db)}}this[$defined(this.innerText)?"innerText":"textContent"]=_db;return this},getText:function(){var tag=this.getTag();if(["style","script"].contains(tag)){if(window.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("")}});Element.fixStyle=function(_de,_df,_e0){if($chk(parseInt(_df))){return _df}if(["height","width"].contains(_de)){var _e1=(_de=="width")?["left","right"]:["top","bottom"];var _e2=0;_e1.each(function(_e3){_e2+=_e0.getStyle("border-"+_e3+"-width").toInt()+_e0.getStyle("padding-"+_e3).toInt()});return _e0["offset"+_de.capitalize()]-_e2+"px"}else{if(_de.test(/border(.+)Width|margin|padding/)){return"0px"}}return _df};Element.Styles={"border":[],"padding":[],"margin":[]};["Top","Right","Bottom","Left"].each(function(_e4){for(var _e5 in Element.Styles){Element.Styles[_e5].push(_e5+_e4)}});Element.borderShort=["borderWidth","borderStyle","borderColor"];Element.getMany=function(el,_e7,_e8){var _e9={};$each(_e8,function(key){_e9[key]=el[_e7](key)});return _e9};Element.setMany=function(el,_ec,_ed){for(var key in _ed){el[_ec](key,_ed[key])}return el};Element.Properties=new Abstract({"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.PropertiesIFlag={"href":2,"src":2};Element.Methods={Listeners:{addListener:function(_ef,fn){if(this.addEventListener){this.addEventListener(_ef,fn,false)}else{this.attachEvent("on"+_ef,fn)}return this},removeListener:function(_f1,fn){if(this.removeEventListener){this.removeEventListener(_f1,fn,false)}else{this.detachEvent("on"+_f1,fn)}return this}}};window.extend(Element.Methods.Listeners);document.extend(Element.Methods.Listeners);Element.extend(Element.Methods.Listeners);var Garbage={elements:[],collect:function(el){if(!el.$tmp){Garbage.elements.push(el);el.$tmp={"opacity":1}}return el},trash:function(_f4){for(var i=0,j=_f4.length,el;i<j;i++){if(!(el=_f4[i])||!el.$tmp){continue}if(el.$events){el.fireEvent("trash").removeEvents()}for(var p in el.$tmp){el.$tmp[p]=null}for(var d in Element.prototype){el[d]=null}Garbage.elements[Garbage.elements.indexOf(el)]=null;el.htmlElement=el.$tmp=el=null}Garbage.elements.remove(null)},empty:function(){Garbage.collect(window);Garbage.collect(document);Garbage.trash(Garbage.elements)}};window.addListener("beforeunload",function(){window.addListener("unload",Garbage.empty);if(window.ie){window.addListener("unload",CollectGarbage)}});var Event=new Class({initialize:function(_fa){if(_fa&&_fa.$extended){return _fa}this.$extended=true;_fa=_fa||window.event;this.event=_fa;this.type=_fa.type;this.target=_fa.target||_fa.srcElement;if(this.target.nodeType==3){this.target=this.target.parentNode}this.shift=_fa.shiftKey;this.control=_fa.ctrlKey;this.alt=_fa.altKey;this.meta=_fa.metaKey;if(["DOMMouseScroll","mousewheel"].contains(this.type)){this.wheel=(_fa.wheelDelta)?_fa.wheelDelta/120:-(_fa.detail||0)/3}else{if(this.type.contains("key")){this.code=_fa.which||_fa.keyCode;for(var _fb in Event.keys){if(Event.keys[_fb]==this.code){this.key=_fb;break}}if(this.type=="keydown"){var _fc=this.code-111;if(_fc>0&&_fc<13){this.key="f"+_fc}}this.key=this.key||String.fromCharCode(this.code).toLowerCase()}else{if(this.type.test(/(click|mouse|menu)/)){this.page={"x":_fa.pageX||_fa.clientX+document.documentElement.scrollLeft,"y":_fa.pageY||_fa.clientY+document.documentElement.scrollTop};this.client={"x":_fa.pageX?_fa.pageX-window.pageXOffset:_fa.clientX,"y":_fa.pageY?_fa.pageY-window.pageYOffset:_fa.clientY};this.rightClick=(_fa.which==3)||(_fa.button==2);switch(this.type){case"mouseover":this.relatedTarget=_fa.relatedTarget||_fa.fromElement;break;case"mouseout":this.relatedTarget=_fa.relatedTarget||_fa.toElement}this.fixRelatedTarget()}}}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}});Event.fix={relatedTarget:function(){if(this.relatedTarget&&this.relatedTarget.nodeType==3){this.relatedTarget=this.relatedTarget.parentNode}},relatedTargetGecko:function(){try{Event.fix.relatedTarget.call(this)}catch(e){this.relatedTarget=this.target}}};Event.prototype.fixRelatedTarget=(window.gecko)?Event.fix.relatedTargetGecko:Event.fix.relatedTarget;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.Methods.Events={addEvent:function(_fd,fn){this.$events=this.$events||{};this.$events[_fd]=this.$events[_fd]||{"keys":[],"values":[]};if(this.$events[_fd].keys.contains(fn)){return this}this.$events[_fd].keys.push(fn);var _ff=_fd;var _100=Element.Events[_fd];if(_100){if(_100.add){_100.add.call(this,fn)}if(_100.map){fn=_100.map}if(_100.type){_ff=_100.type}}if(!this.addEventListener){fn=fn.create({"bind":this,"event":true})}this.$events[_fd].values.push(fn);return(Element.NativeEvents.contains(_ff))?this.addListener(_ff,fn):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 _105=this.$events[type].values.splice(pos,1)[0];var _106=Element.Events[type];if(_106){if(_106.remove){_106.remove.call(this,fn)}if(_106.type){type=_106.type}}return(Element.NativeEvents.contains(type))?this.removeListener(type,_105):this},addEvents:function(_107){return Element.setMany(this,"addEvent",_107)},removeEvents:function(type){if(!this.$events){return this}if(!type){for(var _109 in this.$events){this.removeEvents(_109)}this.$events=null}else{if(this.$events[type]){this.$events[type].keys.each(function(fn){this.removeEvent(type,fn)},this);this.$events[type]=null}}return this},fireEvent:function(type,args,_10d){if(this.$events&&this.$events[type]){this.$events[type].keys.each(function(fn){fn.create({"bind":this,"delay":_10d,"arguments":args})()},this)}return this},cloneEvents:function(from,type){if(!from.$events){return this}if(!type){for(var _111 in from.$events){this.cloneEvents(from,_111)}}else{if(from.$events[type]){from.$events[type].keys.each(function(fn){this.addEvent(type,fn)},this)}}return this}};window.extend(Element.Methods.Events);document.extend(Element.Methods.Events);Element.extend(Element.Methods.Events);Element.Events=new Abstract({"mouseenter":{type:"mouseover",map:function(_113){_113=new Event(_113);if(_113.relatedTarget!=this&&!this.hasChild(_113.relatedTarget)){this.fireEvent("mouseenter",_113)}}},"mouseleave":{type:"mouseout",map:function(_114){_114=new Event(_114);if(_114.relatedTarget!=this&&!this.hasChild(_114.relatedTarget)){this.fireEvent("mouseleave",_114)}}},"mousewheel":{type:(window.gecko)?"DOMMouseScroll":"mousewheel"}});Element.NativeEvents=["click","dblclick","mouseup","mousedown","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","keydown","keypress","keyup","load","unload","beforeunload","resize","move","focus","blur","change","submit","reset","select","error","abort","contextmenu","scroll"];Function.extend({bindWithEvent:function(bind,args){return this.create({"bind":bind,"arguments":args,"event":Event})}});Elements.extend({filterByTag:function(tag){return new Elements(this.filter(function(el){return(Element.getTag(el)==tag)}))},filterByClass:function(_119,_11a){var _11b=this.filter(function(el){return(el.className&&el.className.contains(_119," "))});return(_11a)?_11b:new Elements(_11b)},filterById:function(id,_11e){var _11f=this.filter(function(el){return(el.id==id)});return(_11e)?_11f:new Elements(_11f)},filterByAttribute:function(name,_122,_123,_124){var _125=this.filter(function(el){var _127=Element.getProperty(el,name);if(!_127){return false}if(!_122){return true}switch(_122){case"=":return(_127==_123);case"*=":return(_127.contains(_123));case"^=":return(_127.substr(0,_123.length)==_123);case"$=":return(_127.substr(_127.length-_123.length)==_123);case"!=":return(_127!=_123);case"~=":return _127.contains(_123," ")}return false});return(_124)?_125:new Elements(_125)}});function $E(_128,_129){return($(_129)||document).getElement(_128)}function $ES(_12a,_12b){return($(_12b)||document).getElementsBySelector(_12a)}$$.shared={"regexp":/^(\w*|\*)(?:#([\w-]+)|\.([\w-]+))?(?:\[(\w+)(?:([!*^$]?=)["']?([^"'\]]*)["']?)?])?$/,"xpath":{getParam:function(_12c,_12d,_12e,i){var temp=[_12d.namespaceURI?"xhtml:":"",_12e[1]];if(_12e[2]){temp.push("[@id=\"",_12e[2],"\"]")}if(_12e[3]){temp.push("[contains(concat(\" \", @class, \" \"), \" ",_12e[3]," \")]")}if(_12e[4]){if(_12e[5]&&_12e[6]){switch(_12e[5]){case"*=":temp.push("[contains(@",_12e[4],", \"",_12e[6],"\")]");break;case"^=":temp.push("[starts-with(@",_12e[4],", \"",_12e[6],"\")]");break;case"$=":temp.push("[substring(@",_12e[4],", string-length(@",_12e[4],") - ",_12e[6].length," + 1) = \"",_12e[6],"\"]");break;case"=":temp.push("[@",_12e[4],"=\"",_12e[6],"\"]");break;case"!=":temp.push("[@",_12e[4],"!=\"",_12e[6],"\"]")}}else{temp.push("[@",_12e[4],"]")}}_12c.push(temp.join(""));return _12c},getItems:function(_131,_132,_133){var _134=[];var _135=document.evaluate(".//"+_131.join("//"),_132,$$.shared.resolver,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(var i=0,j=_135.snapshotLength;i<j;i++){_134.push(_135.snapshotItem(i))}return(_133)?_134:new Elements(_134.map($))}},"normal":{getParam:function(_138,_139,_13a,i){if(i==0){if(_13a[2]){var el=_139.getElementById(_13a[2]);if(!el||((_13a[1]!="*")&&(Element.getTag(el)!=_13a[1]))){return false}_138=[el]}else{_138=$A(_139.getElementsByTagName(_13a[1]))}}else{_138=$$.shared.getElementsByTagName(_138,_13a[1]);if(_13a[2]){_138=Elements.filterById(_138,_13a[2],true)}}if(_13a[3]){_138=Elements.filterByClass(_138,_13a[3],true)}if(_13a[4]){_138=Elements.filterByAttribute(_138,_13a[4],_13a[5],_13a[6],true)}return _138},getItems:function(_13d,_13e,_13f){return(_13f)?_13d:$$.unique(_13d)}},resolver:function(_140){return(_140=="xhtml")?"http://www.w3.org/1999/xhtml":false},getElementsByTagName:function(_141,_142){var _143=[];for(var i=0,j=_141.length;i<j;i++){_143.extend(_141[i].getElementsByTagName(_142))}return _143}};$$.shared.method=(window.xpath)?"xpath":"normal";Element.Methods.Dom={getElements:function(_146,_147){var _148=[];_146=_146.trim().split(" ");for(var i=0,j=_146.length;i<j;i++){var sel=_146[i];var _14c=sel.match($$.shared.regexp);if(!_14c){break}_14c[1]=_14c[1]||"*";var temp=$$.shared[$$.shared.method].getParam(_148,this,_14c,i);if(!temp){break}_148=temp}return $$.shared[$$.shared.method].getItems(_148,this,_147)},getElement:function(_14e){return $(this.getElements(_14e,true)[0]||false)},getElementsBySelector:function(_14f,_150){var _151=[];_14f=_14f.split(",");for(var i=0,j=_14f.length;i<j;i++){_151=_151.concat(this.getElements(_14f[i],true))}return(_150)?_151:$$.unique(_151)}};Element.extend({getElementById:function(id){var el=document.getElementById(id);if(!el){return false}for(var _156=el.parentNode;_156!=this;_156=_156.parentNode){if(!_156){return false}}return el},getElementsByClassName:function(_157){return this.getElements("."+_157)}});document.extend(Element.Methods.Dom);Element.extend(Element.Methods.Dom);Element.extend({getValue:function(){switch(this.getTag()){case"select":var _158=[];$each(this.options,function(_159){if(_159.selected){_158.push($pick(_159.value,_159.text))}});return(this.multiple)?_158:_158[0];case"input":if(!(this.checked&&["checkbox","radio"].contains(this.type))&&!["hidden","text","password"].contains(this.type)){break}case"textarea":return this.value}return false},getFormElements:function(){return $$(this.getElementsByTagName("input"),this.getElementsByTagName("select"),this.getElementsByTagName("textarea"))},toQueryString:function(){var _15a=[];this.getFormElements().each(function(el){var name=el.name;var _15d=el.getValue();if(_15d===false||!name||el.disabled){return}var qs=function(val){_15a.push(name+"="+encodeURIComponent(val))};if($type(_15d)=="array"){_15d.each(qs)}else{qs(_15d)}});return _15a.join("&")}});Element.Events.domready={add:function(fn){if(window.loaded){fn.call(this);return}var _161=function(){if(window.loaded){return}window.loaded=true;window.timer=$clear(window.timer);this.fireEvent("domready")}.bind(this);if(document.readyState&&window.webkit){window.timer=function(){if(["loaded","complete"].contains(document.readyState)){_161()}}.periodical(50)}else{if(document.readyState&&window.ie){if(!$("ie_ready")){var src=(window.location.protocol=="https:")?"://0":"javascript:void(0)";document.write("<script id=\"ie_ready\" defer src=\""+src+"\"></script>");$("ie_ready").onreadystatechange=function(){if(this.readyState=="complete"){_161()}}}}else{window.addListener("load",_161);document.addListener("DOMContentLoaded",_161)}}}};window.onDomReady=function(fn){return this.addEvent("domready",fn)};var Fx={};Fx.Base=new Class({options:{onStart:Class.empty,onComplete:Class.empty,onCancel:Class.empty,transition:function(p){return-(Math.cos(Math.PI*p)-1)/2},duration:500,unit:"px",wait:true,fps:50},initialize:function(_165){this.element=this.element||null;this.setOptions(_165);if(this.options.initialize){this.options.initialize.call(this)}},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.set(this.to);this.fireEvent("onComplete",this.element,10);this.callChain()}},set:function(to){this.now=to;this.increase();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},custom:function(from,to){return this.start(from,to)},clearTimer:function(end){return this.stop(end)}});Fx.Base.implement(new Chain,new Events,new Options);Fx.Transition=function(_170,_171){_171=_171||[];if($type(_171)!="array"){_171=[_171]}return $extend(_170,{easeIn:function(pos){return _170(pos,_171)},easeOut:function(pos){return 1-_170(1-pos,_171)},easeInOut:function(pos){return(pos<=0.5)?_170(2*pos,_171)/2:(2-_170(2*(1-pos),_171))/2}})};Fx.Transitions=new Abstract({linear:function(p){return p}});Fx.Transitions.extend=function(_176){for(var _177 in _176){Fx.Transitions[_177]=new Fx.Transition(_176[_177]);Fx.Transitions.compat(_177)}};Fx.Transitions.compat=function(_178){["In","Out","InOut"].each(function(_179){Fx.Transitions[_178.toLowerCase()+_179]=Fx.Transitions[_178]["ease"+_179]})};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 _182;for(var a=0,b=1;1;a+=b,b/=2){if(p>=(7-4*a)/11){_182=-Math.pow((11-6*a-11*p)/4,2)+b*b;break}}return _182},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(_187,i){Fx.Transitions[_187]=new Fx.Transition(function(p){return Math.pow(p,[i+2])});Fx.Transitions.compat(_187)});var Asset=new Abstract({javascript:function(_18a,_18b){_18b=$merge({"onload":Class.empty},_18b);var _18c=new Element("script",{"src":_18a}).addEvents({"load":_18b.onload,"readystatechange":function(){if(this.readyState=="complete"){this.fireEvent("load")}}});delete _18b.onload;return _18c.setProperties(_18b).inject(document.head)},css:function(_18d,_18e){return new Element("link",$merge({"rel":"stylesheet","media":"screen","type":"text/css","href":_18d},_18e)).inject(document.head)},image:function(_18f,_190){_190=$merge({"onload":Class.empty,"onabort":Class.empty,"onerror":Class.empty},_190);var _191=new Image();_191.src=_18f;var _192=new Element("img",{"src":_18f});["load","abort","error"].each(function(type){var _194=_190["on"+type];delete _190["on"+type];_192.addEvent(type,function(){this.removeEvent(type,arguments.callee);_194.call(this)})});if(_191.width&&_191.height){_192.fireEvent("load",_192,1)}return _192.setProperties(_190)},images:function(_195,_196){_196=$merge({onComplete:Class.empty,onProgress:Class.empty},_196);if(!_195.push){_195=[_195]}var _197=[];var _198=0;_195.each(function(_199){var img=new Asset.image(_199,{"onload":function(){_196.onProgress.call(this,_198);_198++;if(_198==_195.length){_196.onComplete()}}});_197.push(img)});return new Elements(_197)}});var XHR=new Class({options:{method:"post",async:true,onRequest:Class.empty,onSuccess:Class.empty,onFailure:Class.empty,urlEncoded:true,encoding:"utf-8",autoCancel:false,headers:{}},setTransport:function(){this.transport=(window.XMLHttpRequest)?new XMLHttpRequest():(window.ie?new ActiveXObject("Microsoft.XMLHTTP"):false);return this},initialize:function(_19b){this.setTransport().setOptions(_19b);this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.headers={};if(this.options.urlEncoded&&this.options.method=="post"){var _19c=(this.options.encoding)?"; charset="+this.options.encoding:"";this.setHeader("Content-type","application/x-www-form-urlencoded"+_19c)}if(this.options.initialize){this.options.initialize.call(this)}},onStateChange:function(){if(this.transport.readyState!=4||!this.running){return}this.running=false;var _19d=0;try{_19d=this.transport.status}catch(e){}if(this.options.isSuccess.call(this,_19d)){this.onSuccess()}else{this.onFailure()}this.transport.onreadystatechange=Class.empty},isSuccess:function(_19e){return((_19e>=200)&&(_19e<300))},onSuccess:function(){this.response={"text":this.transport.responseText,"xml":this.transport.responseXML};this.fireEvent("onSuccess",[this.response.text,this.response.xml]);this.callChain()},onFailure:function(){this.fireEvent("onFailure",this.transport)},setHeader:function(name,_1a0){this.headers[name]=_1a0;return this},send:function(url,data){if(this.options.autoCancel){this.cancel()}else{if(this.running){return this}}this.running=true;if(data&&this.options.method=="get"){url=url+(url.contains("?")?"&":"?")+data;data=null}this.transport.open(this.options.method.toUpperCase(),url,this.options.async);this.transport.onreadystatechange=this.onStateChange.bind(this);if((this.options.method=="post")&&this.transport.overrideMimeType){this.setHeader("Connection","close")}$extend(this.headers,this.options.headers);for(var type in this.headers){try{this.transport.setRequestHeader(type,this.headers[type])}catch(e){}}this.fireEvent("onRequest");this.transport.send($pick(data,null));return this},cancel:function(){if(!this.running){return this}this.running=false;this.transport.abort();this.transport.onreadystatechange=Class.empty;this.setTransport();this.fireEvent("onCancel");return this}});XHR.implement(new Chain,new Events,new Options);var Ajax=XHR.extend({options:{data:null,update:null,onComplete:Class.empty,evalScripts:false,evalResponse:false},initialize:function(url,_1a5){this.addEvent("onSuccess",this.onComplete);this.setOptions(_1a5);this.options.data=this.options.data||this.options.postBody;if(!["post","get"].contains(this.options.method)){this._method="_method="+this.options.method;this.options.method="post"}this.parent();this.setHeader("X-Requested-With","XMLHttpRequest");this.setHeader("Accept","text/javascript, text/html, application/xml, text/xml, */*");this.url=url},onComplete:function(){if(this.options.update){$(this.options.update).empty().setHTML(this.response.text)}if(this.options.evalScripts||this.options.evalResponse){this.evalScripts()}this.fireEvent("onComplete",[this.response.text,this.response.xml],20)},request:function(data){data=data||this.options.data;switch($type(data)){case"element":data=$(data).toQueryString();break;case"object":data=Object.toQueryString(data)}if(this._method){data=(data)?[this._method,data].join("&"):this._method}return this.send(this.url,data)},evalScripts:function(){var _1a7,_1a8;if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader("Content-type"))){_1a8=this.response.text}else{_1a8=[];var _1a9=/<script[^>]*>([\s\S]*?)<\/script>/gi;while((_1a7=_1a9.exec(this.response.text))){_1a8.push(_1a7[1])}_1a8=_1a8.join("\n")}if(_1a8){(window.execScript)?window.execScript(_1a8):window.setTimeout(_1a8,0)}},getHeader:function(name){try{return this.transport.getResponseHeader(name)}catch(e){}return null}});Object.toQueryString=function(_1ab){var _1ac=[];for(var _1ad in _1ab){_1ac.push(encodeURIComponent(_1ad)+"="+encodeURIComponent(_1ab[_1ad]))}return _1ac.join("&")};Element.extend({send:function(_1ae){return new Ajax(this.getProperty("action"),$merge({data:this.toQueryString()},_1ae,{method:"post"})).request()}});var FDBase=new Class({_removeAds:false,_registeredWidgets:[],_widgets:[],_ads:[],_adLU:[],_scripts:[],_images:[],_trackingImages:[],_useWidgetPriority:false,initialize:function(){window.addEvent("domready",this._init.bind(this))},_init:function(){if(eval("typeof(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._useWidgetPriority){this._widgets.sort(this._sortByPriority)}for(var a=0;a<this._widgets.length;a++){var _1b2=this._widgets[a];if(_1b2.type=="ad"&&!this._removeAds&&!_1b2.exclude){this._spawnAd(_1b2)}else{if(!_1b2.exclude&&$type(eval(_1b2.initF))=="function"){eval(_1b2.initF).call()}}}},exclude:function(_1b3){for(var a=0;a<this._widgets.length;a++){var _1b5=this._widgets[a];if(_1b5.name==_1b3){_1b5.exclude=true}}},register:function(name,_1b7,_1b8){if(name&&_1b7){if(!this.inArray(this._registeredWidgets,name)){if(isNaN(_1b8)){_1b8=99}else{this._useWidgetPriority=true}this._registeredWidgets.push(name);this._widgets.push({name:name,initF:_1b7,priority:_1b8})}}},setWidgetPriority:function(_1b9,_1ba){for(var a=0;a<this._widgets.length;a++){if(this._widgets[a].name==_1b9){this._widgets[a].priority=_1ba}}},_injectScript:function(id,src){if(!$(id)){this._scripts[id]=new Asset.javascript(src,{id:id})}},_spawnScripts:function(){var _1be;for(var x=0;x<this._scripts.length;x++){_1be=this._scripts[x];this._injectScript(_1be.id,_1be.src)}},addScript:function(id,src){if(!this.inArray(this._scripts,id)){this._scripts[this._scripts.length]={id:id,src:src}}},_spawnImages:function(){for(var x=0;x<this._images.length;x++){this.injectImage(this._images[x].id,this._images[x].src,this._images[x].width,this._images[x].height)}},addImage:function(id,src,_1c5,_1c6){if(!this.inArray(this._images,id)){this._images[this._images.length]={id:id,src:src,width:_1c5,height:_1c6}}},injectImage:function(id,src,_1c9,_1ca){if(!$(id)){this._images[id]=Asset.image(src,{"src":src,"width":_1c9,"height":_1ca})}},_spawnAd:function(_1cb){var _1cc;if(_1cc=$(_1cb.id)){if(_1cb.addSmall){var _1cd=new Element("small");_1cd.setHTML("Advertisement")}if($type(_1cb.src)=="string"){_1cb.src=[_1cb.src]}if(_1cb.addSmall){_1cd.injectInside(_1cc)}var _1ce={frameBorder:"0",marginHeight:"0",marginWidth:"0",hspace:"0",vspace:"0",scrolling:"no"};if(_1cb.src.length>1){for(var i=_1cb.src.length-1;i>=0;--i){var j=Math.floor(Math.random()*(i+1));if(i==j){continue}var temp=_1cb.src[i];_1cb.src[i]=_1cb.src[j];_1cb.src[j]=temp}}for(var a=0;a<_1cb.src.length;a++){var src=_1cb.src[a];var _1d4={};if(src.indexOf("/js.ng/")>-1){src=src.replace(/(\/js.ng\/)/i,"/html.ng/")}var _1d5=_1cb.width;var _1d6=_1cb.height;if(isNaN(_1d5)||isNaN(_1d6)){if(src.indexOf("adspace=")>-1){var _1d7;if(_1d7=src.match(/adspace=([0-9]+)x([0-9]+)/i)){if(!isNaN(_1d7[1])&&!isNaN(_1d7[2])){_1d5=_1d7[1];_1d6=_1d7[2]}}}}_1d4.src=src;_1d4.id=_1cb.iframeId;if(a>0){_1d4.id+=a}_1d4.name=_1d4.id;var _1d8="<iframe ";var _1d9=$extend(_1ce,_1d4);for(var p in _1d9){_1d8+=p+"='"+_1d9[p]+"' "}if(_1d5&&_1d6){_1d8+="style='width: "+_1d5+"px; height: "+_1d6+"px'"}_1d8+="></iframe>";_1cc.innerHTML+=_1d8}if(_1cb.addSmall){_1cd.clone().injectInside(_1cc)}}},_excludeAds:function(){if(typeof(ffxAdExclusionList)!="undefined"){var _1db=window.location.pathname;for(var i=0;i<ffxAdExclusionList.length;i++){var _1dd=ffxAdExclusionList[i];if(_1dd=="remove_all_ads"){this._removeAds=true}else{if(_1dd=="remove_article_ads"){if(_1db.match(/\/news\/[a-zA-Z0-9-]+\/[a-zA-Z0-9-]+\/[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/[0-9]+.html/)||_1db.match(/\/articles\/.*?/)){this._removeAds=true}}else{if(_1dd=="remove_index_ads"){if(_1db.match(/\/index.html$/)||!_1db.match(/.html$/)){this._removeAds=true}}else{if(_1dd==_1db){this._removeAds=true}}}}}}},addAd:function(id,_1df,src,_1e1,_1e2,_1e3,_1e4){var _1e5=["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[_1e5[a]]=arguments[a]}}obj.type="ad";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 _1e9=$(obj.id);if(isNaN(obj.priority)){obj.priority=99}else{this._useWidgetPriority=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 _1ec;var _1ed;if(_1ed=this._ads[id]){if(ad=$(_1ed.iframeId)){ad.src=ad.src}}}}},_getNielsonURL:function(){return this.getProtocol()+"//secure-au.imrworldwide.com/"},_nnRecordFactory:function(_1ee){if(_1ee.indexOf("http")==-1){var _1ef=window.location;var _1f0="";if(_1ee.charAt(0)!="/"){_1f0="/"}_1ee=_1ef.protocol+"//"+_1ef.host+_1f0+_1ee}var _1f1="f2";var _1f2="au";var _1f3=0;if(typeof(_nnCG)=="undefined"){if(typeof(_rsCG)!="undefined"){_nnCG=_rsCG}else{_nnCG=0}}var _1f4=this._getNielsonURL();var _1f5=_1f4+"cgi-bin/m?rnd="+(new Date()).getTime();_1f5+="&ci="+_1f1;_1f5+="&cg="+escape(_nnCG);_1f5+="&cc="+_1f3;_1f5+="&si="+_1f1+"-ctgw-"+escape(_1ee);_1f5+="&rp="+escape(window.location);return _1f5},_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._trackingImages[id]){this._trackingImages[id].shift()}},doContentImpression:function(id,url){if(!this._trackingImages[id]){this._trackingImages[id]=[]}var _1fb=this._trackingImages[id].length;var src=this._nnRecordFactory(url);this._trackingImages[id][_1fb]=new Element("img");this._trackingImages[id][_1fb].src=src;this._trackingImages[id][_1fb].onload=this._trackingImageLoaded.bind(this,[id,_1fb])},addTag:function(type,dest,tag){var _200=false;var _201=tag.split(/ /);var _202={};for(var a=0;a<_201.length;a++){var _204;if(_201[a].indexOf("\"")>-1||_201[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(_204=_201[a].match(re)){_202[_204[1]]=_204[2]}}var _206=new Element(type);_206.setProperties(_202);_206.injectInside($$(dest)[0])},getProtocol:function(){return location.protocol.indexOf("https")>-1?"https:":"http:"},inArray:function(_207,_208){for(var x=0;x<_207.length;x++){if(_207[x]==_208){return true}}},setBatchStyle:function(_20a,_20b,_20c){for(var a=0;a<_20a.length;a++){_20a[a].setStyle(_20b,_20c)}}});var FD=new FDBase();