function iotbs(){var switcher=new switchManager('body','');var fontSwitcher=new bodySwitcher('font-switcher','Rozmiar czcionki:','no','');fontSwitcher.defineClass('default','Normalna');fontSwitcher.defineClass('fsmall','Mała');fontSwitcher.defineClass('flarge','Duża');};;function bodySwitcher(divid,label,isnative,selected)
{if(switcher.path!=null&&!switcher.isie&&typeof isnative!='undefined'&&isnative=='yes')
{switcher.integrate(this,divid);}
this.classes=[];if(document.getElementById(divid)==null){return false;}
this.labels=[];var attrs={'id':'select-'+divid};this.dl=document.getElementById(divid).appendChild(switcher.create('dl',attrs));attrs={'text':label};this.dl.appendChild(switcher.create('dt',attrs));this.selected=typeof selected!='undefined'?selected:'';return true;};bodySwitcher.prototype.defineClass=function(key,val)
{this.classes[this.classes.length]=key;if(typeof this.dl=='undefined'){return false;}
var self=this;this.labels[this.labels.length]=val;var item=this.dl.appendChild(switcher.create('dd'));item.className='selected';item.onmouseout=null;if(key=='default')
{var link=item.appendChild(document.createTextNode(val+this.selected));}
else if(switcher.cookie!=null&&switcher.cookie.indexOf(' '+key+' ')!=-1)
{link=item.appendChild(document.createTextNode(val+this.selected));if(key!='default')
{var defitem=this.dl.childNodes[1];defitem.className='';defitem.onmouseover=function(){this.className='selected';};defitem.onmouseout=function(){this.className='';};this.dl.childNodes[1].removeChild(defitem.firstChild);var attrs={'href':'javascript:void("'+this.classes[0]+'", "'+this.labels[0]+'")','text':this.labels[0]};link=defitem.appendChild(switcher.create('a',attrs));}}
else
{item.className='';item.onmouseover=function(){this.className='selected';};item.onmouseout=function(){this.className='';};attrs={'href':'javascript:void("'+key+'", "'+val+'")','text':val};link=item.appendChild(switcher.create('a',attrs));}
item.onclick=function()
{if(this.getElementsByTagName('a').length==0){return false;}
var items=self.dl.getElementsByTagName('dd');var len=items.length;for(var i=0;i<len;i++)
{if(items[i]==this)
{var ind=i;break;}}
switcher.save(self.dl.id.replace('select-',''),self.classes[ind],ind,self);self.redraw(ind,this);return true;};return true;};bodySwitcher.prototype.redraw=function(ind,link)
{var items=this.dl.getElementsByTagName('dd');var len=items.length;for(var i=0;i<len;i++)
{if(items[i].firstChild.nodeName=='#text')
{items[i].className='';items[i].onmouseover=function(){this.className='selected';};items[i].onmouseout=function(){this.className='';};items[i].removeChild(items[i].firstChild);var attrs={'href':'javascript:void("'+this.classes[i]+'", "'+this.labels[i]+'")','text':this.labels[i]};items[i].appendChild(switcher.create('a',attrs));}}
items[(ind==len-1?0:ind+1)].firstChild.focus();link.removeChild(link.firstChild);link.appendChild(document.createTextNode(this.labels[ind]+this.selected));items[ind].className='selected';items[ind].onmouseout=null;};bodySwitcher.prototype.update=function(ind)
{if(typeof this.dl!='undefined')
{this.redraw(ind,this.dl.getElementsByTagName('dd')[ind]);}};;var switcher;function switchManager(canvas,path){switcher=this;this.canvas=canvas=='body'&&typeof document.body!='undefined'?document.body:document.getElementsByTagName(canvas)[0];this.initial=this.canvas.className;if(this.initial==''){this.initial='itobs';}this.path=(typeof path!='undefined'&&path!=''?path:null);this.itoken=/(\:\[[0-9]+\])/;if(this.path!=null){this.tokenrefs=['',-1];this.linkeles=document.getElementsByTagName('link');}this.master=null;this.string='';this.idstring='';this.isop=typeof window.opera!='undefined';this.isie=typeof window.attachEvent!='undefined'&&!this.isop;this.iskde=navigator.vendor=='KDE';this.cookie=this.read();if(this.cookie!=null){this.string=this.cookie;if(this.path==null){this.canvas.className=this.initial+this.string;}for(var i=0;i<this.idcookie.length;i++){this.idstring+=this.idcookie[i][0]+'='+this.idcookie[i][1]+'&';if(this.path!=null){this.linkele=document.getElementById(this.idcookie[i][0]+'-stylesheet');if(this.linkele!=null){if(this.tokenrefs[0]==this.idcookie[i][0]){this.alternates=[this.linkele];var inscope=false;var len=this.linkeles.length;for(var j=0;j<len;j++){if(this.linkeles[j]==this.alternates[0]){inscope=true;var ind=j;}else if(inscope&&(this.linkeles[j].getAttribute('rel')==null||!/(alternat)(iv)?(e stylesheet)/i.test(this.linkeles[j].rel))){inscope=false;this.linkeles[this.tokenrefs[1]+ind].disabled=false;break;}if(inscope&&this.linkeles[j].getAttribute('rel')!=null&&/(stylesheet)/i.test(this.linkeles[j].rel)&&this.linkeles[j].getAttribute('title')!=null&&this.linkeles[j].title!=''){this.linkeles[j].disabled=true;}}}else{this.linkele.href=this.path+this.idcookie[i][0]+'-'+this.idcookie[i][1]+'.css';}}}}}if(typeof window.attachEvent!='undefined'){window.attachEvent('onunload',function(){var closures=['onchange','onclick','onkeydown','checker'];for(var i=0;i<document.all.length;i++){for(var j=0;j<closures.length;j++){document.all[i][closures[j]]=null;}}});}};switchManager.prototype.set=function(days){var thedate=new Date();thedate.setTime(thedate.getTime()+(days*24*60*60*1000));var info=this.idstring;if(info==''){thedate.setTime(0);}document.cookie='bodySwitcherKV='+info+'; expires='+thedate.toGMTString()+'; path=/';};switchManager.prototype.read=function(){this.cookie=null;if(document.cookie&&document.cookie.indexOf('bodySwitcherKV=')!=-1){this.idcookie=[];this.cookie=document.cookie.split('bodySwitcherKV=')[1].split(';')[0].split('&');var tmp='',len=this.cookie.length;for(var i=0;i<len;i++){this.cookie[i]=this.cookie[i].split('=');if(this.cookie[i].length>1){if(this.path!=null&&this.itoken.test(this.cookie[i][1])){this.tokenrefs=[this.cookie[i][0],parseInt(this.cookie[i][1].split(':[')[1],10)];}this.cookie[i][1]=this.cookie[i][1].replace(this.itoken,'');tmp+=' '+this.cookie[i][1]+' ';this.idcookie[i]=this.cookie[i];}}this.cookie=tmp;}return this.cookie;};switchManager.prototype.save=function(ident,chosen,ind,obj){this.ident=ident;this.idstring=this.idstring.replace(this.ident+'=','');var len=obj.classes.length;for(var i=0;i<len;i++){this.string=this.string.replace(' '+obj.classes[i]+' ','');var reg=new RegExp('('+obj.classes[i]+')'+'(\:\[[0-9]+\])?'+'&','');this.idstring=this.idstring.replace(reg,'');}if(chosen!='default'){this.string+=' '+chosen+' ';this.idstring+=this.ident+'='+chosen;if(this.master==obj){this.idstring+=':['+ind+']';}this.idstring+='&';}if(this.path!=null){if(this.master!=obj){var linkele=document.getElementById(this.ident+'-stylesheet');if(linkele!=null){var sheetpath=this.path+this.ident+'-'+chosen+'.css';if(this.isop){setTimeout(function(){linkele.href=sheetpath;},10);}if(this.isie){var request=new ActiveXObject('Microsoft.XMLHTTP');request.onreadystatechange=function(){if(request.readyState==4&&/(200|304)/.test(request.status.toString())){linkele.href='';linkele.href=sheetpath;}};request.open('GET',sheetpath,true);request.send(null);}linkele.href=sheetpath;}}else{len=this.alternates.length;for(i=0;i<len;i++){this.alternates[i].disabled=i!=ind;}}}else{this.canvas.className=this.initial+this.string;}this.set(365);};switchManager.prototype.integrate=function(obj,divid){this.master=obj;this.alternates=[document.getElementById(divid+'-stylesheet')];var inscope=false;var len=this.linkeles.length;for(var i=0;i<len;i++){if(i>0&&this.linkeles[i-1]==this.alternates[0]){inscope=true;}if(inscope){if(this.linkeles[i].getAttribute('title')!=null&&this.linkeles[i].getAttribute('rel')!=null&&/(alternat)(iv)?(e stylesheet)/i.test(this.linkeles[i].rel)){this.alternates[this.alternates.length]=this.linkeles[i];}else{inscope=false;break;}}}var isenabled=0;var watcher=window.setInterval(function(){var len=switcher.alternates.length;for(var i=0;i<len;i++){if(!switcher.alternates[i].disabled){if(i!=isenabled){isenabled=i;obj.update(i);switcher.save(divid,switcher.alternates[i].href.split(divid+'-')[1].split('.css')[0],i,obj);}break;}}},55);};switchManager.prototype.create=function(tag,attrs){var ele=(typeof document.createElementNS!='undefined')?document.createElementNS('http://www.w3.org/1999/xhtml',tag):document.createElement(tag);if(typeof attrs!='undefined'){for(var i in attrs){switch(i){case'text':ele.appendChild(document.createTextNode(attrs[i]));break;case'class':ele.className=attrs[i];break;case'for':ele.setAttribute('htmlFor',attrs[i]);break;default:ele.setAttribute(i,'');ele[i]=attrs[i];break;}}}return ele;};function domReady(){this.n=typeof this.n=='undefined'?0:this.n+1;if(typeof document.getElementsByTagName!='undefined'&&(document.getElementsByTagName('body')[0]!=null||document.body!=null)){if(!(typeof document.all!='undefined'&&typeof window.opera=='undefined'&&typeof document.mimeType=='undefined'&&typeof window.sidebar=='undefined')){iotbs();}}else if(this.n<60){setTimeout('domReady()',250);}};domReady();;function checksf(){var sstring=document.forms['sf'].s.value;document.forms['sf'].s.value=sstring.clean();if(sstring.clean()==''){alert('Wpisz szukaną frazę');return false;}
else{return true;}};function checkpoll(){for(i=0;i<document.forms['pollform'].vote.length;i++){if(document.forms['pollform'].vote[i].checked)return true;}
alert('Wybierz odpowiedź');return false;};function decloak(co){var n=0;var output='';for(var i=0;i<co.length;i++){n=co.charCodeAt(i);output+=String.fromCharCode(n-(1));}
return output;};function emailto(co){location.href=decloak(co);};function roundedIns(){$$('ins').each(function(el){if(el.parentNode.className.contains('entry')){el.addClass('rounded');var p=new Element('p').injectTop(el);var strong=new Element('strong').injectInside(p).appendText('Aktualizacja');}});Nifty('ins.rounded','big right');};function styleol(){var obj1,obj2,obj3;obj1=$$('.entry');if(obj1){for(var i=0;i<obj1.length;i++){obj2=obj1[i].getElementsByTagName('ol');for(var j=0;j<obj2.length;j++){if(obj2[j].className.match('styled','i')){var counter=0;if(obj2[j].getAttribute('start'))counter+=(obj2[j].getAttribute('start')*1-1);obj2[j].className+=' ollistnone';obj3=obj2[j].getElementsByTagName('li');for(var k=0;k<obj3.length;k++){if(obj3[k].parentNode.className.match('styled','i')){obj3[k].className='olbgimage';obj3[k].className+=' ol'+(counter+1);counter++;}}}}}}};function sScroll(){var lnks=[];$$('a').each(function(el){if(el.id!='cancel-comment-reply-link'&&el.parentNode.parentNode.id!='bash-nav'&&el.parentNode.parentNode.id!='comments-pings-tabs-nav')
lnks.push(el);});new SmoothScroll({duration:1000,links:lnks});};function toolTips(el){var Tips=new Class({options:{onShow:function(tip){tip.setStyle('visibility','visible');},onHide:function(tip){tip.setStyle('visibility','hidden');},maxTitleChars:30,showDelay:100,hideDelay:100,className:'tool',offsets:{'x':16,'y':16},fixed:false},initialize:function(elements,options){this.setOptions(options);this.toolTip=new Element('div',{'class':this.options.className+'-tip','styles':{'position':'absolute','top':'0','left':'0','z-index':'1000','visibility':'hidden'}}).inject(document.body);this.toolTipBg=new Element('div',{'class':this.options.className+'-tip-bg','styles':{'position':'absolute','top':'0','left':'0','z-index':'999','visibility':'hidden'}}).inject(document.body);this.wrapper=new Element('div').inject(this.toolTip);this.wrapperBg=new Element('div').inject(this.toolTipBg);$$(elements).each(this.build,this);if(this.options.initialize)this.options.initialize.call(this);},build:function(el){el.$tmp.myTitle=(el.href&&el.getTag()=='a')?el.href.replace('http://',''):(el.rel||false);if(el.title){var dual=el.title.split('::');if(dual.length>1){el.$tmp.myTitle=dual[0].trim();el.$tmp.myText=dual[1].trim();}else{el.$tmp.myText=el.title;}
el.removeAttribute('title');}else{el.$tmp.myText=false;}
if(el.$tmp.myTitle&&el.$tmp.myTitle.length>this.options.maxTitleChars)el.$tmp.myTitle=el.$tmp.myTitle.substr(0,this.options.maxTitleChars-1)+"&hellip;";el.addEvent('mouseenter',function(event){this.start(el);if(!this.options.fixed)this.locate(event);else this.position(el);}.bind(this));if(!this.options.fixed)el.addEvent('mousemove',this.locate.bindWithEvent(this));var end=this.end.bind(this);el.addEvent('mouseleave',end);el.addEvent('trash',end);},start:function(el){this.wrapper.empty();this.wrapperBg.empty();if(el.$tmp.myTitle){this.title=new Element('span').inject(new Element('div',{'class':this.options.className+'-title'}).inject(this.wrapper)).setHTML(el.$tmp.myTitle);this.titleBg=new Element('span').inject(new Element('div',{'class':this.options.className+'-title'}).inject(this.wrapperBg)).setHTML(el.$tmp.myTitle);}
if(el.$tmp.myText){this.text=new Element('span').inject(new Element('div',{'class':this.options.className+'-text'}).inject(this.wrapper)).setHTML(el.$tmp.myText);this.textBg=new Element('span').inject(new Element('div',{'class':this.options.className+'-text'}).inject(this.wrapperBg)).setHTML(el.$tmp.myText);}
$clear(this.timer);this.timer=this.show.delay(this.options.showDelay,this);},end:function(event){$clear(this.timer);this.timer=this.hide.delay(this.options.hideDelay,this);},position:function(element){var pos=element.getPosition();this.toolTip.setStyles({'left':pos.x+this.options.offsets.x,'top':pos.y+this.options.offsets.y});this.toolTipBg.setStyles({'left':pos.x+this.options.offsets.x,'top':pos.y+this.options.offsets.y});},locate:function(event){var win={'x':window.getWidth(),'y':window.getHeight()};var scroll={'x':window.getScrollLeft(),'y':window.getScrollTop()};var tip={'x':this.toolTip.offsetWidth,'y':this.toolTip.offsetHeight};var prop={'x':'left','y':'top'};for(var z in prop){var pos=event.page[z]+this.options.offsets[z];if((pos+tip[z]-scroll[z])>win[z])pos=event.page[z]-this.options.offsets[z]-tip[z];this.toolTip.setStyle(prop[z],pos);this.toolTipBg.setStyle(prop[z],pos);};},show:function(){if(this.options.timeout)this.timer=this.hide.delay(this.options.timeout,this);this.fireEvent('onShow',[this.toolTip]);this.fireEvent('onShow',[this.toolTipBg]);},hide:function(){this.fireEvent('onHide',[this.toolTip]);this.fireEvent('onHide',[this.toolTipBg]);}});Tips.implement(new Events,new Options);if(window.opera)return;if(el){var myCustomTips=new Tips(el,{maxTitleChars:25});return;}
var as=[];$$('li').each(function(a){if(a.getAttribute('title'))as.push(a);});$$('abbr').each(function(a){if(a.getAttribute('title'))as.push(a);});$$('.uttAbbreviation').each(function(a){if(a.getAttribute('title'))as.push(a);});$$('.floatright img').each(function(a){if(a.getAttribute('alt')){a.title=a.getAttribute('alt');as.push(a);}});$$('.floatleft img').each(function(a){if(a.getAttribute('alt')){a.title=a.getAttribute('alt');as.push(a);}});$$('.centered img').each(function(a){if(a.getAttribute('alt')){a.title=a.getAttribute('alt');as.push(a);}});$$('.car-month-count').each(function(a){if(a.getAttribute('title'))as.push(a);});$$('a').each(function(a){if(a.getAttribute('title')&&a.id!='layoutbar-link'&&a.parentNode.id!='tags-link')as.push(a);});var myTips=new Tips(as,{maxTitleChars:25});};String.prototype.polish2english=function(){return this.toLowerCase().replace(/ą/g,'a').replace(/ę/g,'e').replace(/ś/g,'s').replace(/ć/g,'c').replace(/ż/g,'z').replace(/ź/g,'z').replace(/ń/g,'n').replace(/ł/g,'l').replace(/ó/g,'o');};function anchorheadings(){$$('.entry h3').each(function(element){element.id=element.getText().polish2english().replace(/[^a-z1-9,\s]/g,'').clean().replace(/\s/g,'-');element.setHTML('<a href="#'+element.id+'">'+element.innerHTML+'</a>');});};function urljump(s){var s=document.forms.authorsform.url;var gourl=s.options[s.selectedIndex].value;if(gourl){window.top.location.href=gourl;}};function draw_tagslink(){var linkcnt=new Element('span',{'id':'tags-link'});linkcnt.injectInside($$('.singlepage h2')[0]);var obj=$('tags-link');if(obj){obj.innerHTML='<a title="Pokaż tagi - kliknij, aby otworzyć" href="javascript:void(0)" class="on2" onclick="this.title=(this.title==\'Kliknij, aby zamknać\')?\'Chmura tagów - kliknij, aby otworzyć\':\'Kliknij, aby zamknać\';this.toggleClass(\'on2\');kmtoggle(\'tagcloud\', function(){createCookie(\'showtagcloud\',\'1\',0);}, function(){eraseCookie(\'showtagcloud\');})">Chmura tagów</a>';}
if(!readCookie('showtagcloud')){if($('tagcloud')&&$$('#tags-link a')){$('tagcloud').setStyle('display','none');$$('#tags-link a').toggleClass('on2');}}else{if($$('#tags-link a')){$$('#tags-link a').setProperty('title','Kliknij, aby zamknać');}}};function kmtoggle(obj,onshowfunc,onhidefunc){var e=$(obj);var anim=new Fx.Style(e,'opacity',{duration:500});if(e.style.display!='none'){anim.start(1,0).chain(function(){e.style.display='none';});if(onhidefunc){onhidefunc();}}
else{anim.set(0);e.style.display='';anim.start(0,1);if(onshowfunc){onshowfunc();}}};function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie=name+"="+value+expires+"; path=/";};function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;};function eraseCookie(name){createCookie(name,"",-1);};function getPageCoords(element){var coords={x:0,y:0};while(element){coords.x+=element.offsetLeft;coords.y+=element.offsetTop;element=element.offsetParent;}
return coords;};function smartbacktotop(){var viewport_height=(self.innerHeight)?self.innerHeight:(document.documentElement&&document.documentElement.clientHeight)?document.documentElement.clientHeight:(document.body)?document.body.clientHeight:0;var allNodes=$$('.bookmark');for(var i=0;i<allNodes.length;i++){var coords=getPageCoords(allNodes[i]);if(!(coords.y<viewport_height)){var obj=document.createElement('li');obj.innerHTML='<a title="Powrót do początku strony" href="#poczatek">Początek strony</a>';obj.className='icon top';allNodes[i].appendChild(obj);}}};function draw_layoutbar(){var navitem=document.createElement('li');navitem.setAttribute('id','nav-layoutbar-link');var obj=$('nav');obj.appendChild(navitem);var obj2=$('nav-layoutbar-link');obj2.innerHTML='<a id="layoutbar-link" href="javascript:void(0);" onclick="javascript:show_layoutbar(); return false;" title="Opcje wyglądu strony - kliknij, aby otworzyć">Opcje wyglądu strony</a>';};var layoutbar;function show_layoutbar(){var obj=$('strip4');var obj2=$('layoutbar-link');var obj3=$('strip3');var kmanimation=$('custom-doc-header4').effects({duration:500});var kmanimationoff=$('custom-doc-header4').effects({duration:400,onComplete:function(){obj.style.display='none';}});if(layoutbar){kmanimationoff.start({"opacity":[1,0]});layoutbar=0;obj2.className='';obj2.title='Opcje wyglądu strony - kliknij, aby otworzyć';if(obj3.focus){obj3.focus();}}
else{obj.style.display='block';kmanimation.start({"opacity":[0,1]});layoutbar=1;obj2.className='on';obj2.title='Kliknij, aby zamknąć';if(obj.focus){obj.focus();}}};var JSTarget={init:function(att,val,warning,elements){if(document.getElementById&&document.createElement&&document.appendChild){var strAtt=((typeof att=='undefined')||(att==null))?'class':att;var strVal=((typeof val=='undefined')||(val==null))?'non-html':val;var strWarning=((typeof warning=='undefined')||(warning==null))?'':warning;var oWarning;if(elements){if(elements[0])var arrLinks=elements;else{var arrLinks=new Array();arrLinks.push(elements);}}else{var arrLinks=[];var twitter=$('twitter');if(twitter){$$('a').each(function(el){if(!twitter.hasChild(el))arrLinks.push(el);});}else arrLinks=document.getElementsByTagName('a');}
var oLink;var oRegExp=new RegExp("(^|\\s)"+strVal+"(\\s|$)");for(var i=0;i<arrLinks.length;i++){oLink=arrLinks[i];if((strAtt=='class')&&(oRegExp.test(oLink.className))||(oRegExp.test(oLink.getAttribute(strAtt)))){var nwl=document.createElement('a');nwl.setAttribute('title','Otworz ten link w nowym oknie przeglądarki');nwl.setAttribute('href',oLink.getAttribute('href'));var oWarning=document.createElement('img');if(oLink.parentNode.parentNode.parentNode.className.contains('bypostauthor',' ')||elements){oWarning.src='/img/external_white.gif';}
else if(oLink.parentNode.parentNode.parentNode.id=='jobs'){oWarning.src='/img/external_gray.gif';}
else{oWarning.src='/img/external.gif';}
nwl.appendChild(oWarning);oLink.parentNode.insertBefore(nwl,oLink.nextSibling);nwl.className='linkimage';nwl.onclick=JSTarget.openWin;}
oWarning=null;}}},openWin:function(e){var event=(!e)?window.event:e;if(event.shiftKey||event.altKey||event.ctrlKey||event.metaKey)return true;else{var oWin=window.open(this.getAttribute('href'),'_blank');if(oWin){if(oWin.focus)oWin.focus();return false;}
oWin=null;return true;}}};var niftyOk=(document.getElementById&&document.createElement&&Array.prototype.push);var niftyCss=true;String.prototype.find=function(what){return(this.indexOf(what)>=0?true:false);};function Nifty(selector,options){if(niftyOk==false)return;if(niftyCss==false)AddCss();var i,v=selector.split(","),h=0;if(options==null)options="";if(options.find("fixed-height"))
h=getElementsBySelector(v[0])[0].offsetHeight;for(i=0;i<v.length;i++)
Rounded(v[i],options);if(options.find("height"))SameHeight(selector,h);};function Rounded(selector,options){var i,top="",bottom="",v=new Array();if(options!=""){options=options.replace("left","tl bl");options=options.replace("right","tr br");options=options.replace("top","tr tl");options=options.replace("bottom","br bl");options=options.replace("transparent","alias");if(options.find("tl")){top="both";if(!options.find("tr"))top="left";}
else if(options.find("tr"))top="right";if(options.find("bl")){bottom="both";if(!options.find("br"))bottom="left";}
else if(options.find("br"))bottom="right";}
if(top==""&&bottom==""&&!options.find("none")){top="both";bottom="both";}
v=getElementsBySelector(selector);for(i=0;i<v.length;i++){FixIE(v[i]);if(top!="")AddTop(v[i],top,options);if(bottom!="")AddBottom(v[i],bottom,options);}};function AddTop(el,side,options){var d=CreateEl("b"),lim=4,border="",p,i,btype="r",bk,color;d.style.marginLeft="-"+getPadding(el,"Left")+"px";d.style.marginRight="-"+getPadding(el,"Right")+"px";if(options.find("alias")||(color=getBk(el))=="transparent"){color="transparent";bk="transparent";border=getParentBk(el);btype="t";}
else{bk=getParentBk(el);border=Mix(color,bk);}
d.style.background=bk;d.className="niftycorners";p=getPadding(el,"Top");if(options.find("small")){d.style.marginBottom=(p-2)+"px";btype+="s";lim=2;}
else if(options.find("big")){d.style.marginBottom=(p-10)+"px";btype+="b";lim=8;}
else d.style.marginBottom=(p-5)+"px";for(i=1;i<=lim;i++)
d.appendChild(CreateStrip(i,side,color,border,btype));el.style.paddingTop="0";el.insertBefore(d,el.firstChild);};function AddBottom(el,side,options){var d=CreateEl("b"),lim=4,border="",p,i,btype="r",bk,color;d.style.marginLeft="-"+getPadding(el,"Left")+"px";d.style.marginRight="-"+getPadding(el,"Right")+"px";if(options.find("alias")||(color=getBk(el))=="transparent"){color="transparent";bk="transparent";border=getParentBk(el);btype="t";}
else{bk=getParentBk(el);border=Mix(color,bk);}
d.style.background=bk;d.className="niftycorners";p=getPadding(el,"Bottom");if(options.find("small")){d.style.marginTop=(p-2)+"px";btype+="s";lim=2;}
else if(options.find("big")){d.style.marginTop=(p-10)+"px";btype+="b";lim=8;}
else d.style.marginTop=(p-5)+"px";for(i=lim;i>0;i--)
d.appendChild(CreateStrip(i,side,color,border,btype));el.style.paddingBottom=0;el.appendChild(d);};function CreateStrip(index,side,color,border,btype){var x=CreateEl("b");x.className=btype+index;x.style.backgroundColor=color;x.style.borderColor=border;if(side=="left"){x.style.borderRightWidth="0";x.style.marginRight="0";}
else if(side=="right"){x.style.borderLeftWidth="0";x.style.marginLeft="0";}
return(x);};function CreateEl(x){return(document.createElement(x));};function FixIE(el){if(!window.ie7){if(el.currentStyle!=null&&el.currentStyle.hasLayout!=null&&el.currentStyle.hasLayout==false)
el.style.display="inline-block";}};function SameHeight(selector,maxh){var i,v=selector.split(","),t,j,els=[],gap;for(i=0;i<v.length;i++){t=getElementsBySelector(v[i]);els=els.concat(t);}
for(i=0;i<els.length;i++){if(els[i].offsetHeight>maxh)maxh=els[i].offsetHeight;els[i].style.height="auto";}
for(i=0;i<els.length;i++){gap=maxh-els[i].offsetHeight;if(gap>0){t=CreateEl("b");t.className="niftyfill";t.style.height=gap+"px";nc=els[i].lastChild;if(nc.className=="niftycorners")
els[i].insertBefore(t,nc);else els[i].appendChild(t);}}};function getElementsBySelector(selector){var i,j,selid="",selclass="",tag=selector,tag2="",v2,k,f,a,s=[],objlist=[],c;if(selector.find("#")){if(selector.find(" ")){s=selector.split(" ");var fs=s[0].split("#");if(fs.length==1)return(objlist);f=document.getElementById(fs[1]);if(f){v=f.getElementsByTagName(s[1]);for(i=0;i<v.length;i++)objlist.push(v[i]);}
return(objlist);}
else{s=selector.split("#");tag=s[0];selid=s[1];if(selid!=""){f=document.getElementById(selid);if(f)objlist.push(f);return(objlist);}}}
if(selector.find(".")){s=selector.split(".");tag=s[0];selclass=s[1];if(selclass.find(" ")){s=selclass.split(" ");selclass=s[0];tag2=s[1];}}
var v=document.getElementsByTagName(tag);if(selclass==""){for(i=0;i<v.length;i++)objlist.push(v[i]);return(objlist);}
for(i=0;i<v.length;i++){c=v[i].className.split(" ");for(j=0;j<c.length;j++){if(c[j]==selclass){if(tag2=="")objlist.push(v[i]);else{v2=v[i].getElementsByTagName(tag2);for(k=0;k<v2.length;k++)objlist.push(v2[k]);}}}}
return(objlist);};function getParentBk(x){var el=x.parentNode,c;while(el.tagName.toUpperCase()!="HTML"&&(c=getBk(el))=="transparent")
el=el.parentNode;if(c=="transparent")c="#FFFFFF";return(c);};function getBk(x){var c=getStyleProp(x,"backgroundColor");if(c==null||c=="transparent"||c.find("rgba(0, 0, 0, 0)"))
return("transparent");if(c.find("rgb"))c=rgb2hex(c);return(c);};function getPadding(x,side){var p=getStyleProp(x,"padding"+side);if(p==null||!p.find("px"))return(0);return(parseInt(p));};function getStyleProp(x,prop){if(x.currentStyle)
return(x.currentStyle[prop]);if(document.defaultView.getComputedStyle)
return(document.defaultView.getComputedStyle(x,'')[prop]);return(null);};function rgb2hex(value){var hex="",v,h,i;var regexp=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;var h=regexp.exec(value);for(i=1;i<4;i++){v=parseInt(h[i]).toString(16);if(v.length==1)hex+="0"+v;else hex+=v;}
return("#"+hex);};function Mix(c1,c2){var i,step1,step2,x,y,r=new Array(3);if(c1.length==4)step1=1;else step1=2;if(c2.length==4)step2=1;else step2=2;for(i=0;i<3;i++){x=parseInt(c1.substr(1+step1*i,step1),16);if(step1==1)x=16*x+x;y=parseInt(c2.substr(1+step2*i,step2),16);if(step2==1)y=16*y+y;r[i]=Math.floor((x*50+y*50)/100);r[i]=r[i].toString(16);if(r[i].length==1)r[i]="0"+r[i];}
return("#"+r[0]+r[1]+r[2]);};function Yetii(){this.defaults={id:null,active:1,interval:null,wait:null,persist:null,tabclass:'tab',activeclass:'active',callback:null,leavecallback:null};this.activebackup=null;for(var n in arguments[0]){this.defaults[n]=arguments[0][n];};this.getTabs=function(){var retnode=[];var elem=document.getElementById(this.defaults.id).getElementsByTagName('*');var regexp=new RegExp("(^|\\s)"+this.defaults.tabclass.replace(/\-/g,"\\-")+"(\\s|$)");for(var i=0;i<elem.length;i++){if(regexp.test(elem[i].className))retnode.push(elem[i]);}
return retnode;};this.links=document.getElementById(this.defaults.id+'-nav').getElementsByTagName('a');this.listitems=document.getElementById(this.defaults.id+'-nav').getElementsByTagName('li');this.show=function(number){for(var i=0;i<this.tabs.length;i++){this.tabs[i].style.display=((i+1)==number)?'block':'none';if((i+1)==number){this.addClass(this.links[i],this.defaults.activeclass);this.addClass(this.listitems[i],this.defaults.activeclass+'li');}else{this.removeClass(this.links[i],this.defaults.activeclass);this.removeClass(this.listitems[i],this.defaults.activeclass+'li');}}
if(this.defaults.leavecallback&&(number!=this.activebackup))this.defaults.leavecallback(this.defaults.active);this.activebackup=number;this.defaults.active=number;if(this.defaults.callback)this.defaults.callback(number);};this.rotate=function(interval){this.show(this.defaults.active);this.defaults.active++;if(this.defaults.active>this.tabs.length)this.defaults.active=1;var self=this;if(this.defaults.wait)clearTimeout(this.timer2);this.timer1=setTimeout(function(){self.rotate(interval);},interval*1000);};this.next=function(){this.defaults.active++;if(this.defaults.active>this.tabs.length)this.defaults.active=1;this.show(this.defaults.active);};this.previous=function(){this.defaults.active--;if(!this.defaults.active)this.defaults.active=this.tabs.length;this.show(this.defaults.active);};this.gup=function(name){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)return null;else return results[1];};this.parseurl=function(tabinterfaceid){var result=this.gup(tabinterfaceid);if(result==null)return null;if(parseInt(result))return parseInt(result);if(document.getElementById(result)){for(var i=0;i<this.tabs.length;i++){if(this.tabs[i].id==result)return(i+1);}}
return null;};this.createCookie=function(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie=name+"="+value+expires+"; path=/";};this.readCookie=function(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;};this.contains=function(el,item,from){return el.indexOf(item,from)!=-1;};this.hasClass=function(el,className){return this.contains(el.className,className,' ');};this.addClass=function(el,className){if(!this.hasClass(el,className))el.className=(el.className+' '+className).replace(/\s{2,}/g,' ').replace(/^\s+|\s+$/g,'');};this.removeClass=function(el,className){el.className=el.className.replace(new RegExp('(^|\\s)'+className+'(?:\\s|$)'),'$1');el.className.replace(/\s{2,}/g,' ').replace(/^\s+|\s+$/g,'');};this.tabs=this.getTabs();this.defaults.active=(this.parseurl(this.defaults.id))?this.parseurl(this.defaults.id):this.defaults.active;if(this.defaults.persist&&this.readCookie(this.defaults.id))this.defaults.active=this.readCookie(this.defaults.id);this.activebackup=this.defaults.active;this.show(this.defaults.active);var self=this;for(var i=0;i<this.links.length;i++){this.links[i].customindex=i+1;this.links[i].onclick=function(){if(self.timer1)clearTimeout(self.timer1);if(self.timer2)clearTimeout(self.timer2);self.show(this.customindex);if(self.defaults.persist)self.createCookie(self.defaults.id,this.customindex,0);if(self.defaults.wait)self.timer2=setTimeout(function(){self.rotate(self.defaults.interval);},self.defaults.wait*1000);return false;};}
if(this.defaults.interval)this.rotate(this.defaults.interval);};if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var sourceimg=new Array();var replaceimg=new Array();var kmt;function preloadimages(){var obj1=$$('.floatleft');var obj2=$$('.floatright');var obj=obj1.concat(obj2);if(obj.length>0){for(var i=0;i<obj.length;i++){if(obj[i].parentNode.parentNode.parentNode.className=='old'){var imgs=obj[i].getElementsByTagName('img');sourceimg.push(imgs[0]);}}}
for(var i=0;i<sourceimg.length;i++){var tmpp=new Image();var ext=sourceimg[i].src.substr(sourceimg[i].src.length-3,sourceimg[i].src.length);tmpp.src=sourceimg[i].src.substr(0,sourceimg[i].src.length-4)+'_old.'+ext;replaceimg.push(tmpp);}};function checkimages(){if(replaceimg.length>0){var c=0;for(var i=0;i<replaceimg.length;i++){if(replaceimg[i].complete){c++;}}
if(c==replaceimg.length){for(var i=0;i<sourceimg.length;i++){sourceimg[i].src=replaceimg[i].src;}
clearInterval(kmt);}}};function fadeimages2(){preloadimages();kmt=setInterval('checkimages()',500);};function animated_quotes(){var d=[];$$('blockquote.pullquote').each(function(a){a.setStyles('background-image: url(/img/quote1.gif); background-position: 0 -43px;');a.getElement('p').setStyles('background-image: url(/img/quote2.gif); background-position: 138px '+(a.getStyle('height').toInt())+'px;');d.push(a)});function animate(b){var c=new Fx.Styles(b,{duration:300,units:'px',transition:Fx.Transitions.linear});c.start({'background-position':['0 0']}).chain(function(){var a=new Fx.Styles(b.getElement('p'),{duration:300,transition:Fx.Transitions.linear});a.start({'background-position':['138 '+(b.getElement('p').getStyle('height').toInt()-40)]})})};function quotes(){if(d.length){for(var i=0;i<d.length;i++){var y=d[i].getTop()+d[i].getStyle('height').toInt();var a=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);var b=window.getHeight();var c=parseInt(b+a);if(c>=y){animate(d[i]);d.remove(d[i])}}}};addEvent('scroll',quotes);quotes()};var pullquote={init:function(){if(!document.getElementById||!document.createElement||!document.appendChild)return false;var a,oPullquote,oPullquoteP,oQuoteContent,i,j;var b=document.getElementsByTagName('span');var c=new RegExp("(^|\\s)pullquote(\\s|$)");for(i=0;i<b.length;i++){a=b[i];if(c.test(a.className)){oPullquote=document.createElement('blockquote');oPullquote.className=a.className;oPullquoteP=document.createElement('p');oPullquotespn=document.createElement('em');var d=document.createTextNode($(a).getText());oPullquotespn.appendChild(d);oPullquoteP.appendChild(oPullquotespn);oPullquote.appendChild(oPullquoteP);a.parentNode.parentNode.insertBefore(oPullquote,a.parentNode)}}}};;eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('o 8z={8A:\'1.11\'};k $4d(U){h(U!=6t)};k $r(U){m(!$4d(U))h Y;m(U.2P)h\'V\';o r=3K U;m(r==\'2C\'&&U.8y){1J(U.4z){W 1:h\'V\';W 3:h(/\\S/).2f(U.6g)?\'8x\':\'8v\'}}m(r==\'2C\'||r==\'k\'){1J(U.6y){W 1F:h\'1b\';W 4D:h\'5c\';W 1l:h\'4y\'}m(3K U.I==\'49\'){m(U.24)h\'8w\';m(U.6s)h\'T\'}}h r};k $3b(){o 3q={};F(o i=0;i<T.I;i++){F(o t 1d T[i]){o ap=T[i][t];o 4b=3q[t];m(4b&&$r(ap)==\'2C\'&&$r(4b)==\'2C\')3q[t]=$3b(4b,ap);15 3q[t]=ap}}h 3q};o $K=k(){o 12=T;m(!12[1])12=[c,12[0]];F(o t 1d 12[1])12[0][t]=12[1][t];h 12[0]};o $33=k(){F(o i=0,l=T.I;i<l;i++){T[i].K=k(1k){F(o 1r 1d 1k){m(!c.1h[1r])c.1h[1r]=1k[1r];m(!c[1r])c[1r]=$33.3H(1r)}}}};$33.3H=k(1r){h k(N){h c.1h[1r].35(N,1F.1h.6i.21(T,1))}};$33(58,1F,4E,6l);k $2Z(U){h!!(U||U===0)};k $53(U,6v){h $4d(U)?U:6v};k $4x(2J,1U){h 18.8C(18.4x()*(1U-2J+1)+2J)};k $2m(){h X 8H().8G()};k $5V(1T){8F(1T);8D(1T);h 1i};o 2L=k(U){U=U||{};U.K=$K;h U};o 8E=X 2L(Q);o 8u=X 2L(M);M.6u=M.2o(\'6u\')[0];Q.2p=!!(M.75);m(Q.8t)Q.1V=Q[Q.8j?\'8k\':\'6x\']=1c;15 m(M.6E&&!M.8i&&!8h.8f)Q.2V=Q[Q.2p?\'8g\':\'4h\']=1c;15 m(M.8l!=1i)Q.59=1c;Q.8m=Q.2V;8r.K=$K;m(3K 3s==\'6t\'){o 3s=k(){};m(Q.2V)M.6q("8q");3s.1h=(Q.2V)?Q["[[8p.1h]]"]:{}}3s.1h.2P=k(){};m(Q.6x)52{M.8n("8o",Y,1c)}57(e){};o 1l=k(2c){o 3d=k(){h(T[0]!==1i&&c.1H&&$r(c.1H)==\'k\')?c.1H.35(c,T):c};$K(3d,c);3d.1h=2c;3d.6y=1l;h 3d};1l.2t=k(){};1l.1h={K:k(2c){o 41=X c(1i);F(o t 1d 2c){o 6B=41[t];41[t]=1l.6z(6B,2c[t])}h X 1l(41)},63:k(){F(o i=0,l=T.I;i<l;i++)$K(c.1h,T[i])}};1l.6z=k(2B,1t){m(2B&&2B!=1t){o r=$r(1t);m(r!=$r(2B))h 1t;1J(r){W\'k\':o 4t=k(){c.1o=T.6s.1o;h 1t.35(c,T)};4t.1o=2B;h 4t;W\'2C\':h $3b(2B,1t)}}h 1t};o 6c=X 1l({91:k(G){c.2I=c.2I||[];c.2I.19(G);h c},5Z:k(){m(c.2I&&c.2I.I)c.2I.5R().1D(10,c)},8Z:k(){c.2I=[]}});o 2n=X 1l({22:k(r,G){m(G!=1l.2t){c.$O=c.$O||{};c.$O[r]=c.$O[r]||[];c.$O[r].4u(G)}h c},2r:k(r,12,1D){m(c.$O&&c.$O[r]){c.$O[r].1w(k(G){G.1Y({\'N\':c,\'1D\':1D,\'T\':12})()},c)}h c},47:k(r,G){m(c.$O&&c.$O[r])c.$O[r].2O(G);h c}});o 6d=X 1l({7t:k(){c.B=$3b.35(1i,[c.B].K(T));m(c.22){F(o 3n 1d c.B){m($r(c.B[3n]==\'k\')&&(/^4C[A-Z]/).2f(3n))c.22(3n,c.B[3n])}}h c}});1F.K({3O:k(G,N){F(o i=0,j=c.I;i<j;i++)G.21(N,c[i],i,c)},28:k(G,N){o 2X=[];F(o i=0,j=c.I;i<j;i++){m(G.21(N,c[i],i,c))2X.19(c[i])}h 2X},1R:k(G,N){o 2X=[];F(o i=0,j=c.I;i<j;i++)2X[i]=G.21(N,c[i],i,c);h 2X},4e:k(G,N){F(o i=0,j=c.I;i<j;i++){m(!G.21(N,c[i],i,c))h Y}h 1c},95:k(G,N){F(o i=0,j=c.I;i<j;i++){m(G.21(N,c[i],i,c))h 1c}h Y},2E:k(24,L){o 34=c.I;F(o i=(L<0)?18.1U(0,34+L):L||0;i<34;i++){m(c[i]===24)h i}h-1},6k:k(1v,I){1v=1v||0;m(1v<0)1v=c.I+1v;I=I||(c.I-1v);o 4w=[];F(o i=0;i<I;i++)4w[i]=c[1v++];h 4w},2O:k(24){o i=0;o 34=c.I;5C(i<34){m(c[i]===24){c.3M(i,1);34--}15{i++}}h c},1a:k(24,L){h c.2E(24,L)!=-1},9a:k(1p){o U={},I=18.2J(c.I,1p.I);F(o i=0;i<I;i++)U[1p[i]]=c[i];h U},K:k(1b){F(o i=0,j=1b.I;i<j;i++)c.19(1b[i]);h c},3b:k(1b){F(o i=0,l=1b.I;i<l;i++)c.4u(1b[i]);h c},4u:k(24){m(!c.1a(24))c.19(24);h c},99:k(){h c[$4x(0,c.I-1)]||1i},6F:k(){h c[c.I-1]||1i}});1F.1h.1w=1F.1h.3O;1F.1w=1F.3O;k $A(1b){h 1F.6k(1b)};k $1w(2D,G,N){m(2D&&3K 2D.I==\'49\'&&$r(2D)!=\'2C\'){1F.3O(2D,G,N)}15{F(o 1A 1d 2D)G.21(N||2D,2D[1A],1A)}};1F.1h.2f=1F.1h.1a;4E.K({2f:k(3I,1K){h(($r(3I)==\'2b\')?X 4D(3I,1K):3I).2f(c)},4a:k(){h 3e(c,10)},6m:k(){h 3D(c)},4H:k(){h c.2z(/-\\D/g,k(1Z){h 1Z.4T(1).6j()})},6H:k(){h c.2z(/\\w[A-Z]/g,k(1Z){h(1Z.4T(0)+\'-\'+1Z.4T(1).3f())})},5O:k(){h c.2z(/\\b[a-z]/g,k(1Z){h 1Z.6j()})},5b:k(){h c.2z(/^\\s+|\\s+$/g,\'\')},4A:k(){h c.2z(/\\s{2,}/g,\' \').5b()},3W:k(1b){o 1Q=c.1Z(/\\d{1,3}/g);h(1Q)?1Q.3W(1b):Y},3X:k(1b){o 2K=c.1Z(/^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$/);h(2K)?2K.6i(1).3X(1b):Y},1a:k(2b,s){h(s)?(s+c+s).2E(s+2b+s)>-1:c.2E(2b)>-1},8K:k(){h c.2z(/([.*+?^${}()|[\\]\\/\\\\])/g,\'\\\\$1\')}});1F.K({3W:k(1b){m(c.I<3)h Y;m(c.I==4&&c[3]==0&&!1b)h\'8L\';o 2K=[];F(o i=0;i<3;i++){o 2R=(c[i]-0).8Q(16);2K.19((2R.I==1)?\'0\'+2R:2R)}h 1b?2K:\'#\'+2K.1P(\'\')},3X:k(1b){m(c.I!=3)h Y;o 1Q=[];F(o i=0;i<3;i++){1Q.19(3e((c[i].I==1)?c[i]+c[i]:c[i],16))}h 1b?1Q:\'1Q(\'+1Q.1P(\',\')+\')\'}});58.K({1Y:k(B){o G=c;B=$3b({\'N\':G,\'u\':Y,\'T\':1i,\'1D\':Y,\'30\':Y,\'3N\':Y},B);m($2Z(B.T)&&$r(B.T)!=\'1b\')B.T=[B.T];h k(u){o 12;m(B.u){u=u||Q.u;12=[(B.u===1c)?u:X B.u(u)];m(B.T)12.K(B.T)}15 12=B.T||T;o 2j=k(){h G.35($53(B.N,G),12)};m(B.1D)h 8R(2j,B.1D);m(B.30)h 8e(2j,B.30);m(B.3N)52{h 2j()}57(8V){h Y};h 2j()}},8U:k(12,N){h c.1Y({\'T\':12,\'N\':N})},3N:k(12,N){h c.1Y({\'T\':12,\'N\':N,\'3N\':1c})()},N:k(N,12){h c.1Y({\'N\':N,\'T\':12})},8S:k(N,12){h c.1Y({\'N\':N,\'u\':1c,\'T\':12})},1D:k(1D,N,12){h c.1Y({\'1D\':1D,\'N\':N,\'T\':12})()},30:k(6h,N,12){h c.1Y({\'30\':6h,\'N\':N,\'T\':12})()}});6l.K({4a:k(){h 3e(c)},6m:k(){h 3D(c)},6Z:k(2J,1U){h 18.2J(1U,18.1U(2J,c))},2T:k(3v){3v=18.2N(10,3v||0);h 18.2T(c*3v)/3v},9c:k(G){F(o i=0;i<c;i++)G(i)}});o C=X 1l({1H:k(q,1k){m($r(q)==\'2b\'){m(Q.1V&&1k&&(1k.1A||1k.r)){o 1A=(1k.1A)?\' 1A="\'+1k.1A+\'"\':\'\';o r=(1k.r)?\' r="\'+1k.r+\'"\':\'\';56 1k.1A;56 1k.r;q=\'<\'+q+1A+r+\'>\'}q=M.6q(q)}q=$(q);h(!1k||!q)?q:q.2G(1k)}});o 1u=X 1l({1H:k(J){h(J)?$K(J,c):c}});1u.K=k(1k){F(o 1r 1d 1k){c.1h[1r]=1k[1r];c[1r]=$33.3H(1r)}};k $(q){m(!q)h 1i;m(q.2P)h 1E.2W(q);m([Q,M].1a(q))h q;o r=$r(q);m(r==\'2b\'){q=M.3U(q);r=(q)?\'V\':Y}m(r!=\'V\')h 1i;m(q.2P)h 1E.2W(q);m([\'2C\',\'82\'].1a(q.44.3f()))h q;$K(q,C.1h);q.2P=k(){};h 1E.2W(q)};M.4k=M.2o;k $$(){o J=[];F(o i=0,j=T.I;i<j;i++){o 1j=T[i];1J($r(1j)){W\'V\':J.19(1j);W\'7M\':1m;W Y:1m;W\'2b\':1j=M.4k(1j,1c);4R:J.K(1j)}}h $$.3A(J)};$$.3A=k(1b){o J=[];F(o i=0,l=1b.I;i<l;i++){m(1b[i].$3J)6b;o V=$(1b[i]);m(V&&!V.$3J){V.$3J=1c;J.19(V)}}F(o n=0,d=J.I;n<d;n++)J[n].$3J=1i;h X 1u(J)};1u.42=k(t){h k(){o 12=T;o 17=[];o J=1c;F(o i=0,j=c.I,2j;i<j;i++){2j=c[i][t].35(c[i],12);m($r(2j)!=\'V\')J=Y;17.19(2j)};h(J)?$$.3A(17):17}};C.K=k(2c){F(o t 1d 2c){3s.1h[t]=2c[t];C.1h[t]=2c[t];C[t]=$33.3H(t);o 6o=(1F.1h[t])?t+\'1u\':t;1u.1h[6o]=1u.42(t)}};C.K({2G:k(1k){F(o 1r 1d 1k){o 3w=1k[1r];1J(1r){W\'7x\':c.6V(3w);1m;W\'O\':m(c.4Z)c.4Z(3w);1m;W\'2c\':c.6N(3w);1m;4R:c.4c(1r,3w)}}h c},2Y:k(q,6n){q=$(q);1J(6n){W\'6D\':q.25.55(c,q);1m;W\'6T\':o 3B=q.6G();m(!3B)q.25.4G(c);15 q.25.55(c,3B);1m;W\'2l\':o 54=q.4J;m(54){q.55(c,54);1m}4R:q.4G(c)}h c},86:k(q){h c.2Y(q,\'6D\')},84:k(q){h c.2Y(q,\'6T\')},87:k(q){h c.2Y(q,\'5x\')},88:k(q){h c.2Y(q,\'2l\')},8c:k(){o J=[];$1w(T,k(6S){J=J.5n(6S)});$$(J).2Y(c);h c},2O:k(){h c.25.6M(c)},89:k(6R){o q=$(c.81(6R!==Y));m(!q.$O)h q;q.$O={};F(o r 1d c.$O)q.$O[r]={\'1p\':$A(c.$O[r].1p),\'1x\':$A(c.$O[r].1x)};h q.3P()},7V:k(q){q=$(q);c.25.7W(q,c);h q},6L:k(2h){c.4G(M.7Y(2h));h c},4B:k(1e){h c.1e.1a(1e,\' \')},6U:k(1e){m(!c.4B(1e))c.1e=(c.1e+\' \'+1e).4A();h c},6Q:k(1e){c.1e=c.1e.2z(X 4D(\'(^|\\\\s)\'+1e+\'(?:\\\\s|$)\'),\'$1\').4A();h c},8d:k(1e){h c.4B(1e)?c.6Q(1e):c.6U(1e)},45:k(t,H){1J(t){W\'1C\':h c.6Y(3D(H));W\'7S\':t=(Q.1V)?\'7U\':\'7P\'}t=t.4H();1J($r(H)){W\'49\':m(![\'7D\',\'6P\'].1a(t))H+=\'3t\';1m;W\'1b\':H=\'1Q(\'+H.1P(\',\')+\')\'}c.1f[t]=H;h c},6V:k(2u){1J($r(2u)){W\'2C\':C.3L(c,\'45\',2u);1m;W\'2b\':c.1f.4K=2u}h c},6Y:k(1C){m(1C==0){m(c.1f.4q!="6X")c.1f.4q="6X"}15{m(c.1f.4q!="6W")c.1f.4q="6W"}m(!c.3Z||!c.3Z.7H)c.1f.6P=1;m(Q.1V)c.1f.28=(1C==1)?\'\':"9d(1C="+1C*7F+")";c.1f.1C=c.$2s.1C=1C;h c},2v:k(t){t=t.4H();o 1g=c.1f[t];m(!$2Z(1g)){m(t==\'1C\')h c.$2s.1C;1g=[];F(o 1f 1d C.2y){m(t==1f){C.2y[1f].1w(k(s){o 1f=c.2v(s);1g.19(3e(1f)?1f:\'5L\')},c);m(t==\'2x\'){o 4e=1g.4e(k(2R){h(2R==1g[0])});h(4e)?1g[0]:Y}h 1g.1P(\' \')}}m(t.1a(\'2x\')){m(C.2y.2x.1a(t)){h[\'70\',\'5m\',\'5k\'].1R(k(p){h c.2v(t+p)},c).1P(\' \')}15 m(C.67.1a(t)){h[\'5G\',\'5H\',\'5J\',\'6f\'].1R(k(p){h c.2v(\'2x\'+p+t.2z(\'2x\',\'\'))},c).1P(\' \')}}m(M.6O)1g=M.6O.au(c,1i).ar(t.6H());15 m(c.3Z)1g=c.3Z[t]}m(Q.1V)1g=C.5P(t,1g,c);m(1g&&t.2f(/4r/i)&&1g.1a(\'1Q\')){h 1g.43(\'1Q\').3M(1,4).1R(k(4r){h 4r.3W()}).1P(\' \')}h 1g},at:k(){h C.4O(c,\'2v\',T)},3x:k(3Y,1v){3Y+=\'ay\';o q=(1v)?c[1v]:c[3Y];5C(q&&$r(q)!=\'V\')q=q[3Y];h $(q)},aE:k(){h c.3x(\'2B\')},6G:k(){h c.3x(\'3B\')},aD:k(){h c.3x(\'3B\',\'4J\')},6F:k(){h c.3x(\'2B\',\'aq\')},ao:k(){h $(c.25)},ad:k(){h $$(c.6E)},4U:k(q){h!!$A(c.2o(\'*\')).1a(q)},4n:k(t){o 2e=C.4f[t];m(2e)h c[2e];o 4N=C.6a[t]||0;m(!Q.1V||4N)h c.ac(t,4N);o 4M=c.a8[t];h(4M)?4M.6g:1i},af:k(t){o 2e=C.4f[t];m(2e)c[2e]=\'\';15 c.ag(t);h c},am:k(){h C.4O(c,\'4n\',T)},4c:k(t,H){o 2e=C.4f[t];m(2e)c[2e]=H;15 c.al(t,H);h c},6N:k(2u){h C.3L(c,\'4c\',2u)},5I:k(){c.5M=$A(T).1P(\'\');h c},ak:k(2h){o 26=c.3u();m([\'1f\',\'48\'].1a(26)){m(Q.1V){m(26==\'1f\')c.6K.4K=2h;15 m(26==\'48\')c.4c(\'2h\',2h);h c}15{c.6M(c.4J);h c.6L(2h)}}c[$4d(c.4L)?\'4L\':\'5K\']=2h;h c},aO:k(){o 26=c.3u();m([\'1f\',\'48\'].1a(26)){m(Q.1V){m(26==\'1f\')h c.6K.4K;15 m(26==\'48\')h c.4n(\'2h\')}15{h c.5M}}h($53(c.4L,c.5K))},3u:k(){h c.44.3f()},2t:k(){1E.4s(c.2o(\'*\'));h c.5I(\'\')}});C.5P=k(t,1g,V){m($2Z(3e(1g)))h 1g;m([\'5p\',\'3y\'].1a(t)){o 1x=(t==\'3y\')?[\'2q\',\'5w\']:[\'2l\',\'5x\'];o 2M=0;1x.1w(k(H){2M+=V.2v(\'2x-\'+H+\'-3y\').4a()+V.2v(\'4P-\'+H).4a()});h V[\'5A\'+t.5O()]-2M+\'3t\'}15 m(t.2f(/2x(.+)70|5F|4P/)){h\'5L\'}h 1g};C.2y={\'2x\':[],\'4P\':[],\'5F\':[]};[\'5G\',\'5H\',\'5J\',\'6f\'].1w(k(68){F(o 1f 1d C.2y)C.2y[1f].19(1f+68)});C.67=[\'9u\',\'9s\',\'9t\'];C.4O=k(q,2H,1p){o 1g={};$1w(1p,k(1L){1g[1L]=q[2H](1L)});h 1g};C.3L=k(q,2H,4I){F(o 1L 1d 4I)q[2H](1L,4I[1L]);h q};C.4f=X 2L({\'4y\':\'1e\',\'F\':\'9y\',\'9D\':\'9C\',\'9B\':\'9z\',\'9A\':\'9r\',\'9q\':\'9i\',\'9h\':\'9g\',\'9e\':\'9f\',\'9j\':\'9k\',\'H\':\'H\',\'64\':\'64\',\'65\':\'65\',\'5Q\':\'5Q\',\'69\':\'69\'});C.6a={\'4i\':2,\'9n\':2};C.1X={4p:{3o:k(r,G){m(c.51)c.51(r,G,Y);15 c.9l(\'4C\'+r,G);h c},7k:k(r,G){m(c.6e)c.6e(r,G,Y);15 c.9m(\'4C\'+r,G);h c}}};Q.K(C.1X.4p);M.K(C.1X.4p);C.K(C.1X.4p);o 1E={J:[],2W:k(q){m(!q.$2s){1E.J.19(q);q.$2s={\'1C\':1}}h q},4s:k(J){F(o i=0,j=J.I,q;i<j;i++){m(!(q=J[i])||!q.$2s)6b;m(q.$O)q.2r(\'4s\').3P();F(o p 1d q.$2s)q.$2s[p]=1i;F(o d 1d C.1h)q[d]=1i;1E.J[1E.J.2E(q)]=1i;q.2P=q.$2s=q=1i}1E.J.2O(1i)},2t:k(){1E.2W(Q);1E.2W(M);1E.4s(1E.J)}};Q.3o(\'7r\',k(){Q.3o(\'4X\',1E.2t);m(Q.1V)Q.3o(\'4X\',9X)});o 1O=X 1l({1H:k(u){m(u&&u.$5T)h u;c.$5T=1c;u=u||Q.u;c.u=u;c.r=u.r;c.2g=u.2g||u.9W;m(c.2g.4z==3)c.2g=c.2g.25;c.5R=u.9U;c.9V=u.9Z;c.a0=u.a5;c.a4=u.a3;m([\'4V\',\'3c\'].1a(c.r)){c.a1=(u.5S)?u.5S/9T:-(u.9S||0)/3}15 m(c.r.1a(\'1L\')){c.4g=u.6J||u.9K;F(o 1A 1d 1O.1p){m(1O.1p[1A]==c.4g){c.1L=1A;1m}}m(c.r==\'7p\'){o 4m=c.4g-9J;m(4m>0&&4m<13)c.1L=\'f\'+4m}c.1L=c.1L||4E.9G(c.4g).3f()}15 m(c.r.2f(/(5u|9L|9M)/)){c.9R={\'x\':u.4F||u.60+M.1N.3g,\'y\':u.4Q||u.5Y+M.1N.3j};c.9Q={\'x\':u.4F?u.4F-Q.7l:u.60,\'y\':u.4Q?u.4Q-Q.7m:u.5Y};c.7J=(u.6J==3)||(u.9O==2);1J(c.r){W\'4W\':c.1y=u.1y||u.9N;1m;W\'4Y\':c.1y=u.1y||u.5y}c.78()}h c},2a:k(){h c.4j().4l()},4j:k(){m(c.u.4j)c.u.4j();15 c.u.9P=1c;h c},4l:k(){m(c.u.4l)c.u.4l();15 c.u.9H=Y;h c}});1O.3G={1y:k(){m(c.1y&&c.1y.4z==3)c.1y=c.1y.25},79:k(){52{1O.3G.1y.21(c)}57(e){c.1y=c.2g}}};1O.1h.78=(Q.59)?1O.3G.79:1O.3G.1y;1O.1p=X 2L({\'9F\':13,\'9E\':38,\'9o\':40,\'2q\':37,\'5w\':39,\'9p\':27,\'a7\':32,\'9v\':8,\'a6\':9,\'56\':46});C.1X.2n={22:k(r,G){c.$O=c.$O||{};c.$O[r]=c.$O[r]||{\'1p\':[],\'1x\':[]};m(c.$O[r].1p.1a(G))h c;c.$O[r].1p.19(G);o 3Q=r;o 1z=C.2n[r];m(1z){m(1z.7d)1z.7d.21(c,G);m(1z.1R)G=1z.1R;m(1z.r)3Q=1z.r}m(!c.51)G=G.1Y({\'N\':c,\'u\':1c});c.$O[r].1x.19(G);h(C.4S.1a(3Q))?c.3o(3Q,G):c},47:k(r,G){m(!c.$O||!c.$O[r])h c;o 1M=c.$O[r].1p.2E(G);m(1M==-1)h c;o 1L=c.$O[r].1p.3M(1M,1)[0];o H=c.$O[r].1x.3M(1M,1)[0];o 1z=C.2n[r];m(1z){m(1z.2O)1z.2O.21(c,G);m(1z.r)r=1z.r}h(C.4S.1a(r))?c.7k(r,H):c},4Z:k(2u){h C.3L(c,\'22\',2u)},3P:k(r){m(!c.$O)h c;m(!r){F(o 3E 1d c.$O)c.3P(3E);c.$O=1i}15 m(c.$O[r]){c.$O[r].1p.1w(k(G){c.47(r,G)},c);c.$O[r]=1i}h c},2r:k(r,12,1D){m(c.$O&&c.$O[r]){c.$O[r].1p.1w(k(G){G.1Y({\'N\':c,\'1D\':1D,\'T\':12})()},c)}h c},73:k(L,r){m(!L.$O)h c;m(!r){F(o 3E 1d L.$O)c.73(L,3E)}15 m(L.$O[r]){L.$O[r].1p.1w(k(G){c.22(r,G)},c)}h c}};Q.K(C.1X.2n);M.K(C.1X.2n);C.K(C.1X.2n);C.2n=X 2L({\'72\':{r:\'4W\',1R:k(u){u=X 1O(u);m(u.1y!=c&&!c.4U(u.1y))c.2r(\'72\',u)}},\'71\':{r:\'4Y\',1R:k(u){u=X 1O(u);m(u.1y!=c&&!c.4U(u.1y))c.2r(\'71\',u)}},\'3c\':{r:(Q.59)?\'4V\':\'3c\'}});C.4S=[\'5u\',\'ai\',\'aH\',\'aa\',\'3c\',\'4V\',\'4W\',\'4Y\',\'aF\',\'7p\',\'av\',\'ax\',\'7O\',\'4X\',\'7r\',\'7y\',\'7w\',\'7v\',\'7Q\',\'5X\',\'7R\',\'7T\',\'3p\',\'8b\',\'83\',\'85\',\'3a\'];58.K({6w:k(N,12){h c.1Y({\'N\':N,\'T\':12,\'u\':1O})}});1u.K({7I:k(26){h X 1u(c.28(k(q){h(C.3u(q)==26)}))},7o:k(1e,1B){o J=c.28(k(q){h(q.1e&&q.1e.1a(1e,\' \'))});h(1B)?J:X 1u(J)},76:k(2U,1B){o J=c.28(k(q){h(q.2U==2U)});h(1B)?J:X 1u(J)},7s:k(1A,4v,H,1B){o J=c.28(k(q){o 1t=C.4n(q,1A);m(!1t)h Y;m(!4v)h 1c;1J(4v){W\'=\':h(1t==H);W\'*=\':h(1t.1a(H));W\'^=\':h(1t.5D(0,H.I)==H);W\'$=\':h(1t.5D(1t.I-H.I)==H);W\'!=\':h(1t!=H);W\'~=\':h 1t.1a(H,\' \')}h Y});h(1B)?J:X 1u(J)}});k $E(1j,28){h($(28)||M).7b(1j)};k $8T(1j,28){h($(28)||M).4k(1j)};$$.2k={\'5c\':/^(\\w*|\\*)(?:#([\\w-]+)|\\.([\\w-]+))?(?:\\[(\\w+)(?:([!*^$]?=)["\']?([^"\'\\]]*)["\']?)?])?$/,\'2p\':{5h:k(17,1W,R,i){o 1G=[1W.8M?\'5f:\':\'\',R[1]];m(R[2])1G.19(\'[@2U="\',R[2],\'"]\');m(R[3])1G.19(\'[1a(5n(" ", @4y, " "), " \',R[3],\' ")]\');m(R[4]){m(R[5]&&R[6]){1J(R[5]){W\'*=\':1G.19(\'[1a(@\',R[4],\', "\',R[6],\'")]\');1m;W\'^=\':1G.19(\'[8N-98(@\',R[4],\', "\',R[6],\'")]\');1m;W\'$=\':1G.19(\'[97(@\',R[4],\', 2b-I(@\',R[4],\') - \',R[6].I,\' + 1) = "\',R[6],\'"]\');1m;W\'=\':1G.19(\'[@\',R[4],\'="\',R[6],\'"]\');1m;W\'!=\':1G.19(\'[@\',R[4],\'!="\',R[6],\'"]\')}}15{1G.19(\'[@\',R[4],\']\')}}17.19(1G.1P(\'\'));h 17},5i:k(17,1W,1B){o J=[];o 2p=M.75(\'.//\'+17.1P(\'//\'),1W,$$.2k.7q,90.94,1i);F(o i=0,j=2p.93;i<j;i++)J.19(2p.8J(i));h(1B)?J:X 1u(J.1R($))}},\'7e\':{5h:k(17,1W,R,i){m(i==0){m(R[2]){o q=1W.3U(R[2]);m(!q||((R[1]!=\'*\')&&(C.3u(q)!=R[1])))h Y;17=[q]}15{17=$A(1W.2o(R[1]))}}15{17=$$.2k.2o(17,R[1]);m(R[2])17=1u.76(17,R[2],1c)}m(R[3])17=1u.7o(17,R[3],1c);m(R[4])17=1u.7s(17,R[4],R[5],R[6],1c);h 17},5i:k(17,1W,1B){h(1B)?17:$$.3A(17)}},7q:k(7u){h(7u==\'5f\')?\'8B://aK.8s.8I/9b/5f\':Y},2o:k(1W,44){o 5r=[];F(o i=0,j=1W.I;i<j;i++)5r.K(1W[i].2o(44));h 5r}};$$.2k.2H=(Q.2p)?\'2p\':\'7e\';C.1X.5j={3F:k(1j,1B){o 17=[];1j=1j.5b().43(\' \');F(o i=0,j=1j.I;i<j;i++){o 7g=1j[i];o R=7g.1Z($$.2k.5c);m(!R)1m;R[1]=R[1]||\'*\';o 1G=$$.2k[$$.2k.2H].5h(17,c,R,i);m(!1G)1m;17=1G}h $$.2k[$$.2k.2H].5i(17,c,1B)},7b:k(1j){h $(c.3F(1j,1c)[0]||Y)},4k:k(1j,1B){o J=[];1j=1j.43(\',\');F(o i=0,j=1j.I;i<j;i++)J=J.5n(c.3F(1j[i],1c));h(1B)?J:$$.3A(J)}};C.K({3U:k(2U){o q=M.3U(2U);m(!q)h Y;F(o 1o=q.25;1o!=c;1o=1o.25){m(!1o)h Y}h q},7B:k(1e){h c.3F(\'.\'+1e)}});M.K(C.1X.5j);C.K(C.1X.5j);C.K({2A:k(x,y){c.3g=x;c.3j=y},5z:k(){h{\'3a\':{\'x\':c.3g,\'y\':c.3j},\'2M\':{\'x\':c.5e,\'y\':c.5d},\'5t\':{\'x\':c.3R,\'y\':c.3S}}},2F:k(1I){1I=1I||[];o q=c,2q=0,2l=0;7K{2q+=q.aA||0;2l+=q.ae||0;q=q.ab}5C(q);1I.1w(k(V){2q-=V.3g||0;2l-=V.3j||0});h{\'x\':2q,\'y\':2l}},aG:k(1I){h c.2F(1I).y},aM:k(1I){h c.2F(1I).x},aJ:k(1I){o 5s=c.2F(1I);o U={\'3y\':c.5e,\'5p\':c.5d,\'2q\':5s.x,\'2l\':5s.y};U.5w=U.2q+U.3y;U.5x=U.2l+U.5p;h U}});Q.K({7i:k(){m(c.4h)h c.aL;m(c.7c)h M.3T.74;h M.1N.74},7h:k(){m(c.4h)h c.aI;m(c.7c)h M.3T.7j;h M.1N.7j},7f:k(){m(c.1V)h 18.1U(M.1N.5e,M.1N.3R);m(c.2V)h M.3T.3R;h M.1N.3R},7a:k(){m(c.1V)h 18.1U(M.1N.5d,M.1N.3S);m(c.2V)h M.3T.3S;h M.1N.3S},77:k(){h c.7l||M.1N.3g},7n:k(){h c.7m||M.1N.3j},5z:k(){h{\'2M\':{\'x\':c.7i(),\'y\':c.7h()},\'5t\':{\'x\':c.7f(),\'y\':c.7a()},\'3a\':{\'x\':c.77(),\'y\':c.7n()}}},2F:k(){h{\'x\':0,\'y\':0}}});o 14={};14.3m=X 1l({B:{5g:1l.2t,4o:1l.2t,62:1l.2t,1q:k(p){h-(18.6p(18.5a*p)-1)/2},5v:a2,29:\'3t\',3k:1c,5U:50},1H:k(B){c.V=c.V||1i;c.7t(B);m(c.B.1H)c.B.1H.21(c)},5W:k(){o 2m=$2m();m(2m<c.2m+c.B.5v){c.61=c.B.1q((2m-c.2m)/c.B.5v);c.3C();c.3h()}15{c.2a(1c);c.2G(c.P);c.2r(\'4o\',c.V,10);c.5Z()}},2G:k(P){c.1s=P;c.3h();h c},3C:k(){c.1s=c.2Q(c.L,c.P)},2Q:k(L,P){h(P-L)*c.61+L},1v:k(L,P){m(!c.B.3k)c.2a();15 m(c.1T)h c;c.L=L;c.P=P;c.5X=c.P-c.L;c.2m=$2m();c.1T=c.5W.30(18.2T(9I/c.B.5U),c);c.2r(\'5g\',c.V);h c},2a:k(3V){m(!c.1T)h c;c.1T=$5V(c.1T);m(!3V)c.2r(\'62\',c.V);h c},1z:k(L,P){h c.1v(L,P)},9Y:k(3V){h c.2a(3V)}});14.3m.63(X 6c,X 2n,X 6d);14.2w={3p:k(t,P){m(t.2f(/4r/i))h c.5k;o r=$r(P);m((r==\'1b\')||(r==\'2b\'&&P.1a(\' \')))h c.42;h c.66},23:k(q,t,2S){m(!2S.19)2S=[2S];o L=2S[0],P=2S[1];m(!$2Z(P)){P=L;L=q.2v(t)}o 1n=c.3p(t,P);h{\'L\':1n.23(L),\'P\':1n.23(P),\'1n\':1n}}};14.2w.66={23:k(H){h 3D(H)},3z:k(L,P,31){h 31.2Q(L,P)},3r:k(H,29,t){m(29==\'3t\'&&t!=\'1C\')H=18.2T(H);h H+29}};14.2w.42={23:k(H){h H.19?H:H.43(\' \').1R(k(v){h 3D(v)})},3z:k(L,P,31){o 1s=[];F(o i=0;i<L.I;i++)1s[i]=31.2Q(L[i],P[i]);h 1s},3r:k(H,29,t){m(29==\'3t\'&&t!=\'1C\')H=H.1R(18.2T);h H.1P(29+\' \')+29}};14.2w.5k={23:k(H){h H.19?H:H.3X(1c)},3z:k(L,P,31){o 1s=[];F(o i=0;i<L.I;i++)1s[i]=18.2T(31.2Q(L[i],P[i]));h 1s},3r:k(H){h\'1Q(\'+H.1P(\',\')+\')\'}};14.5m=14.3m.K({1H:k(q,t,B){c.V=$(q);c.t=t;c.1o(B)},9x:k(){h c.2G(0)},3C:k(){c.1s=c.1n.3z(c.L,c.P,c)},2G:k(P){c.1n=14.2w.3p(c.t,P);h c.1o(c.1n.23(P))},1v:k(L,P){m(c.1T&&c.B.3k)h c;o 1S=14.2w.23(c.V,c.t,[L,P]);c.1n=1S.1n;h c.1o(1S.L,1S.P)},3h:k(){c.V.45(c.t,c.1n.3r(c.1s,c.B.29,c.t))}});C.K({9w:k(t,B){h X 14.5m(c,t,B)}});14.2y=14.3m.K({1H:k(q,B){c.V=$(q);c.1o(B)},3C:k(){F(o p 1d c.L)c.1s[p]=c.1n[p].3z(c.L[p],c.P[p],c)},2G:k(P){o 1S={};c.1n={};F(o p 1d P){c.1n[p]=14.2w.3p(p,P[p]);1S[p]=c.1n[p].23(P[p])}h c.1o(1S)},1v:k(U){m(c.1T&&c.B.3k)h c;c.1s={};c.1n={};o L={},P={};F(o p 1d U){o 1S=14.2w.23(c.V,p,U[p]);L[p]=1S.L;P[p]=1S.P;c.1n[p]=1S.1n}h c.1o(L,P)},3h:k(){F(o p 1d c.1s)c.V.45(p,c.1n[p].3r(c.1s[p],c.B.29,p))}});C.K({aN:k(B){h X 14.2y(c,B)}});14.6r=14.3m.K({B:{1I:[],5A:{\'x\':0,\'y\':0},5N:1c},1H:k(V,B){c.1s=[];c.V=$(V);c.5E={\'2a\':c.2a.N(c,Y)};c.1o(B);m(c.B.5N){c.22(\'5g\',k(){M.22(\'3c\',c.5E.2a)}.N(c));c.22(\'4o\',k(){M.47(\'3c\',c.5E.2a)}.N(c))}},3C:k(){F(o i=0;i<2;i++)c.1s[i]=c.2Q(c.L[i],c.P[i])},2A:k(x,y){m(c.1T&&c.B.3k)h c;o q=c.V.5z();o 1x={\'x\':x,\'y\':y};F(o z 1d q.2M){o 1U=q.5t[z]-q.2M[z];m($2Z(1x[z]))1x[z]=($r(1x[z])==\'49\')?1x[z].6Z(0,1U):1U;15 1x[z]=q.3a[z];1x[z]+=c.B.5A[z]}h c.1v([q.3a.x,q.3a.y],[1x.x,1x.y])},aj:k(){h c.2A(Y,0)},ah:k(){h c.2A(Y,\'6I\')},an:k(){h c.2A(0,Y)},a9:k(){h c.2A(\'6I\',Y)},5y:k(q){o 1o=c.V.2F(c.B.1I);o 2g=$(q).2F(c.B.1I);h c.2A(2g.x-1o.x,2g.y-1o.y)},3h:k(){c.V.2A(c.1s[0],c.1s[1])}});14.5q=k(1q,1K){1K=1K||[];m($r(1K)!=\'1b\')1K=[1K];h $K(1q,{aB:k(1M){h 1q(1M,1K)},aC:k(1M){h 1-1q(1-1M,1K)},az:k(1M){h(1M<=0.5)?1q(2*1M,1K)/2:(2-1q(2*(1-1M),1K))/2}})};14.2d=X 2L({as:k(p){h p}});14.2d.K=k(5o){F(o 1q 1d 5o){14.2d[1q]=X 14.5q(5o[1q]);14.2d.5B(1q)}};14.2d.5B=k(1q){[\'aw\',\'8W\',\'7E\'].1w(k(5l){14.2d[1q.3f()+5l]=14.2d[1q][\'7L\'+5l]})};14.2d.K({7Z:k(p,x){h 18.2N(p,x[0]||6)},7X:k(p){h 18.2N(2,8*(p-1))},80:k(p){h 1-18.6C(18.8a(p))},7N:k(p){h 1-18.6C((1-p)*18.5a/2)},7C:k(p,x){x=x[0]||1.7A;h 18.2N(p,2)*((x+1)*p-x)},7z:k(p){o H;F(o a=0,b=1;1;a+=b,b/=2){m(p>=(7-4*a)/11){H=-18.2N((11-6*a-11*p)/4,2)+b*b;1m}}h H},7G:k(p,x){h 18.2N(2,10*--p)*18.6p(20*p*18.5a*(x[0]||1)/3)}});[\'8P\',\'8O\',\'8X\',\'8Y\'].1w(k(1q,i){14.2d[1q]=X 14.5q(k(p){h 18.2N(p,[i+2])});14.2d.5B(1q)});o 96=14.6r.K({1H:k(B){c.1o(Q,B);c.3l=(c.B.3l)?$$(c.B.3l):$$(M.3l);o 3i=Q.3i.4i.1Z(/^[^#]*/)[0]+\'#\';c.3l.1w(k(36){m(36.4i.2E(3i)!=0)h;o 2i=36.4i.5D(3i.I);m(2i&&$(2i))c.6A(36,2i)},c);m(!Q.4h)c.22(\'4o\',k(){Q.3i.92=c.2i})},6A:k(36,2i){36.22(\'5u\',k(u){c.2i=2i;c.5y(2i);u.2a()}.6w(c))}});',62,671,'||||||||||||this|||||return|||function||if||var||el|type||property|event|||||||options|Element|||for|fn|value|length|elements|extend|from|document|bind|events|to|window|param||arguments|obj|element|case|new|false||||args||Fx|else||items|Math|push|contains|array|true|in|className|style|result|prototype|null|selector|props|Class|break|css|parent|keys|transition|prop|now|current|Elements|start|each|values|relatedTarget|custom|name|nocash|opacity|delay|Garbage|Array|temp|initialize|overflown|switch|params|key|pos|documentElement|Event|join|rgb|map|parsed|timer|max|ie|context|Methods|create|match||call|addEvent|parse|item|parentNode|tag||filter|unit|stop|string|properties|Transitions|index|test|target|text|anchor|returns|shared|top|time|Events|getElementsByTagName|xpath|left|fireEvent|tmp|empty|source|getStyle|CSS|border|Styles|replace|scrollTo|previous|object|iterable|indexOf|getPosition|set|method|chains|min|hex|Abstract|size|pow|remove|htmlElement|compute|bit|fromTo|round|id|webkit|collect|results|inject|chk|periodical|fx||native|len|apply|link||||scroll|merge|mousewheel|klass|parseInt|toLowerCase|scrollLeft|increase|location|scrollTop|wait|links|Base|option|addListener|select|mix|getValue|HTMLElement|px|getTag|precision|val|walk|width|getNow|unique|next|setNow|parseFloat|evType|getElements|fix|generic|regex|included|typeof|setMany|splice|attempt|forEach|removeEvents|realType|scrollWidth|scrollHeight|body|getElementById|end|rgbToHex|hexToRgb|brother|currentStyle||proto|Multi|split|tagName|setStyle||removeEvent|script|number|toInt|mp|setProperty|defined|every|Properties|code|webkit419|href|stopPropagation|getElementsBySelector|preventDefault|fKey|getProperty|onComplete|Listeners|visibility|color|trash|merged|include|operator|newArray|random|class|nodeType|clean|hasClass|on|RegExp|String|pageX|appendChild|camelCase|pairs|firstChild|cssText|innerText|node|flag|getMany|padding|pageY|default|NativeEvents|charAt|hasChild|DOMMouseScroll|mouseover|unload|mouseout|addEvents||addEventListener|try|pick|first|insertBefore|delete|catch|Function|gecko|PI|trim|regexp|offsetHeight|offsetWidth|xhtml|onStart|getParam|getItems|Dom|Color|easeType|Style|concat|transitions|height|Transition|found|position|scrollSize|click|duration|right|bottom|toElement|getSize|offset|compat|while|substr|bound|margin|Top|Right|setHTML|Bottom|textContent|0px|innerHTML|wheelStops|capitalize|fixStyle|multiple|shift|wheelDelta|extended|fps|clear|step|change|clientY|callChain|clientX|delta|onCancel|implement|disabled|checked|Single|borderShort|direction|selected|PropertiesIFlag|continue|Chain|Options|removeEventListener|Left|nodeValue|interval|slice|toUpperCase|copy|Number|toFloat|where|elementsProperty|cos|createElement|Scroll|callee|undefined|head|picked|bindWithEvent|ie6|constructor|Merge|useLink|pp|sin|before|childNodes|getLast|getNext|hyphenate|full|which|styleSheet|appendText|removeChild|setProperties|defaultView|zoom|removeClass|contents|argument|after|addClass|setStyles|visible|hidden|setOpacity|limit|Width|mouseleave|mouseenter|cloneEvents|clientWidth|evaluate|filterById|getScrollLeft|fixRelatedTarget|relatedTargetGecko|getScrollHeight|getElement|opera|add|normal|getScrollWidth|sel|getHeight|getWidth|clientHeight|removeListener|pageXOffset|pageYOffset|getScrollTop|filterByClass|keydown|resolver|beforeunload|filterByAttribute|setOptions|prefix|focus|move|styles|resize|Bounce|618|getElementsByClassName|Back|zIndex|InOut|100|Elastic|hasLayout|filterByTag|rightClick|do|ease|boolean|Sine|load|cssFloat|blur|submit|float|reset|styleFloat|replaceWith|replaceChild|Expo|createTextNode|Pow|Circ|cloneNode|embed|abort|injectAfter|contextmenu|injectBefore|injectInside|injectTop|clone|acos|error|adopt|toggleClass|setInterval|taintEnabled|webkit420|navigator|all|XMLHttpRequest|ie7|getBoxObjectFor|khtml|execCommand|BackgroundImageCache|DOMElement|iframe|Object|w3|ActiveXObject|Document|whitespace|collection|textnode|nodeName|MooTools|version|http|floor|clearInterval|Window|clearTimeout|getTime|Date|org|snapshotItem|escapeRegExp|transparent|namespaceURI|starts|Cubic|Quad|toString|setTimeout|bindAsEventListener|ES|pass|err|Out|Quart|Quint|clearChain|XPathResult|chain|hash|snapshotLength|UNORDERED_NODE_SNAPSHOT_TYPE|some|SmoothScroll|substring|with|getRandom|associate|1999|times|alpha|readonly|readOnly|maxLength|maxlength|tabIndex|frameborder|frameBorder|attachEvent|detachEvent|src|down|esc|tabindex|accessKey|borderStyle|borderColor|borderWidth|backspace|effect|hide|htmlFor|rowSpan|accesskey|rowspan|colSpan|colspan|up|enter|fromCharCode|returnValue|1000|111|keyCode|mouse|menu|fromElement|button|cancelBubble|client|page|detail|120|shiftKey|control|srcElement|CollectGarbage|clearTimer|ctrlKey|alt|wheel|500|metaKey|meta|altKey|tab|space|attributes|toRight|mousedown|offsetParent|getAttribute|getChildren|offsetTop|removeProperty|removeAttribute|toBottom|dblclick|toTop|setText|setAttribute|getProperties|toLeft|getParent||lastChild|getPropertyValue|linear|getStyles|getComputedStyle|keypress|In|keyup|Sibling|easeInOut|offsetLeft|easeIn|easeOut|getFirst|getPrevious|mousemove|getTop|mouseup|innerHeight|getCoordinates|www|innerWidth|getLeft|effects|getText'.split('|'),0,{}));;eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('k y=d f({2:{h:\'p\',z:q,A:f.i,l:f.i,m:f.i,B:q,r:\'P-8\',C:n,9:{}},s:5(){1.3=(D.E)?d E():(D.Q?d R(\'S.T\'):n);7 1},t:5(a){1.s().U(a);1.2.j=1.2.j||1.j;1.9={};6(1.2.B&&1.2.h==\'p\'){k b=(1.2.r)?\'; V=\'+1.2.r:\'\';1.u(\'W-X\',\'Y/x-Z-10-11\'+b)}6(1.2.t)1.2.t.F(1)},G:5(){6(1.3.12!=4||!1.g)7;1.g=n;k a=0;H{a=1.3.13}I(e){};6(1.2.j.F(1,a))1.l();J 1.m();1.3.v=f.i},j:5(a){7((a>=14)&&(a<15))},l:5(){1.w={\'K\':1.3.16,\'L\':1.3.17};1.o(\'l\',[1.w.K,1.w.L]);1.18()},m:5(){1.o(\'m\',1.3)},u:5(a,b){1.9[a]=b;7 1},M:5(a,b){6(1.2.C)1.N();J 6(1.g)7 1;1.g=q;6(b&&1.2.h==\'19\'){a=a+(a.1a(\'?\')?\'&\':\'?\')+b;b=O}1.3.1b(1.2.h.1c(),a,1.2.z);1.3.v=1.G.1d(1);6((1.2.h==\'p\')&&1.3.1e)1.u(\'1f\',\'1g\');$1h(1.9,1.2.9);1i(k c 1j 1.9)H{1.3.1k(c,1.9[c])}I(e){};1.o(\'A\');1.3.M($1l(b,O));7 1},N:5(){6(!1.g)7 1;1.g=n;1.3.1m();1.3.v=f.i;1.s();1.o(\'1n\');7 1}});y.1o(d 1p,d 1q,d 1r);',62,90,'|this|options|transport||function|if|return||headers||||new||Class|running|method|empty|isSuccess|var|onSuccess|onFailure|false|fireEvent|post|true|encoding|setTransport|initialize|setHeader|onreadystatechange|response||XHR|async|onRequest|urlEncoded|autoCancel|window|XMLHttpRequest|call|onStateChange|try|catch|else|text|xml|send|cancel|null|utf|ie|ActiveXObject|Microsoft|XMLHTTP|setOptions|charset|Content|type|application|www|form|urlencoded|readyState|status|200|300|responseText|responseXML|callChain|get|contains|open|toUpperCase|bind|overrideMimeType|Connection|close|extend|for|in|setRequestHeader|pick|abort|onCancel|implement|Chain|Events|Options'.split('|'),0,{}));;eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('8 v=K.w({3:{9:l,m:l,h:L.x,i:y,o:y},M:5(a,b){2.N(\'O\',2.h);2.P(b);2.3.9=2.3.9||2.3.Q;7(![\'p\',\'R\'].T(2.3.j)){2.d=\'d=\'+2.3.j;2.3.j=\'p\'}2.U();2.z(\'X-V-W\',\'Y\');2.z(\'Z\',\'6/10, 6/11, 12/q, 6/q, */*\');2.A=a},h:5(){7(2.3.m)$(2.3.m).x().13(2.f.6);7(2.3.i||2.3.o)2.i();2.14(\'h\',[2.f.6,2.f.q],15)},B:5(a){a=a||2.3.9;16($C(a)){D\'17\':a=$(a).k();18;D\'19\':a=E.k(a)}7(2.d)a=(a)?[2.d,a].r(\'&\'):2.d;g 2.F(2.A,a)},i:5(){8 a,4;7(2.3.o||(/(1a|1b)t/).1c(2.G(\'1d-C\')))4=2.f.6;1e{4=[];8 b=/<t[^>]*>([\\s\\S]*?)<\\/t>/1f;1g((a=b.1h(2.f.6)))4.H(a[1]);4=4.r(\'\\n\')}7(4)(u.I)?u.I(4):u.1i(4,0)},G:5(a){1j{g 2.1k.1l(a)}1m(e){};g l}});E.k=5(a){8 b=[];1n(8 c 1o a)b.H(J(c)+\'=\'+J(a[c]));g b.r(\'&\')};1p.w({F:5(a){g 1q v(2.1r(\'1s\'),$1t({9:2.k()},a,{j:\'p\'})).B()}});',62,92,'||this|options|scripts|function|text|if|var|data||||_method||response|return|onComplete|evalScripts|method|toQueryString|null|update||evalResponse|post|xml|join||script|window|Ajax|extend|empty|false|setHeader|url|request|type|case|Object|send|getHeader|push|execScript|encodeURIComponent|XHR|Class|initialize|addEvent|onSuccess|setOptions|postBody|get||contains|parent|Requested|With||XMLHttpRequest|Accept|javascript|html|application|setHTML|fireEvent|20|switch|element|break|object|ecma|java|test|Content|else|gi|while|exec|setTimeout|try|transport|getResponseHeader|catch|for|in|Element|new|getProperty|action|merge'.split('|'),0,{}));;function Twitters(options){this.defaults={id:'twitter',count:2,proxy:null,hash:null};Object.extend(this.defaults,options);var self=this;this.statusesArr=null;this.markupCreated=false;this.hasPrevious=false;this.currentpage=1;this.linkify=function(text){var regexp=new RegExp("(http[s]{0,1}://[^ ]+)");return text.replace(regexp,"<a rel=\"twitters\" href=\"$1\">$1</a>");};this.getNodeValue=function(obj,tag){return obj.getElementsByTagName(tag)[0].firstChild.nodeValue;};this.drawNav=function(){var div=$E('.xtwitters-nav',self.defaults.id);div.empty();var newest=new Element('a',{'href':'#','title':'Nowsze wpisy'}).setHTML('&laquo;');var oldest=new Element('a',{'href':'#','title':'Starsze wpisy'}).setHTML('&raquo;');oldest.injectTop(div);newest.injectTop(div);if(self.currentpage==1)newest.remove();else{newest.onclick=function(){this.onclick=null;$E('.xtwitters-ul',self.defaults.id).addClass('loader');self.currentpage=self.currentpage-1;self.doRequest('count='+self.defaults.count+'&page='+self.currentpage);return false;};}
if(self.hasPrevious){oldest.onclick=function(){this.onclick=null;$E('.xtwitters-ul',self.defaults.id).addClass('loader');self.currentpage=self.currentpage+1;self.doRequest('count='+self.defaults.count+'&page='+self.currentpage);return false;};}else oldest.remove();JSTarget.init("rel","twitters",null,$ES('a',self.defaults.id));var twitterstips=[];$ES('a',self.defaults.id).each(function(el){if((!(el.getParent().getTag()=='h3'))&&el.getAttribute('title'))twitterstips.push(el);});toolTips(twitterstips);};this.drawTweets=function(){$E('.xtwitters-ul',self.defaults.id).removeClass('loader');var container=$E('.xtwitters-ul',self.defaults.id);container.empty();var ul=new Element('ul').injectInside(container);var statuses=self.statusesArr;for(var i=0;i<statuses.length;i++){if(i<self.defaults.count){var time=statuses[i].getElementsByTagName('created')[0].firstChild.nodeValue;var comments=statuses[i].getElementsByTagName('comments')[0].firstChild.nodeValue;var li=new Element('li',{'class':'xtwitters-ul-li'}).setHTML(self.linkify(self.getNodeValue(statuses[i],'text'))+' <span>'+time+'</span> '+comments).inject(ul);}}};this.checkPrevious=function(params){var myXHR2=new XHR({method:'get',headers:{'X-Requested-With':'kminekxml'},onSuccess:function(){if(this.response.xml.getElementsByTagName('status').length>0){self.hasPrevious=true;}
else self.hasPrevious=false;if(!self.markupCreated){$(self.defaults.id).setHTML('<div class="xtwitters" id="xtwitters-'+self.defaults.id+'"><h3><a href="http://twitter.com/kminek_pl/" title="Kminek.pl na Twitterze" rel="external">twitter.com/<strong>kminek_pl</strong></a><span class="xtwitters-nav"></span></h3><div class="xtwitters-ul"></div></div>');Nifty('div.xtwitters','transparent');JSTarget.init("rel","external",null,$E('a',self.defaults.id));var tips=[];var links=$ES('a',self.defaults.id);tips.push(links[0]);tips.push(links[1]);toolTips(tips);self.markupCreated=true;}
self.drawTweets();self.drawNav();}}).send(self.defaults.proxy,params+'&hash='+self.defaults.hash);};this.doRequest=function(params){var myXHR=new XHR({method:'get',headers:{'X-Requested-With':'kminekxml'},onSuccess:function(){self.statusesArr=this.response.xml.getElementsByTagName('status');self.checkPrevious('count='+self.defaults.count+'&page='+(self.currentpage+1));}}).send(self.defaults.proxy,params+'&hash='+self.defaults.hash);};this.doRequest('count='+self.defaults.count);};