/* modal.js */

var SqueezeBox={presets:{size:{x:600,y:450},sizeLoading:{x:200,y:150},marginInner:{x:20,y:20},marginImage:{x:150,y:200},handler:false,adopt:null,closeWithOverlay:true,zIndex:65555,overlayOpacity:0.7,classWindow:'',classOverlay:'',disableFx:false,onOpen:Class.empty,onClose:Class.empty,onUpdate:Class.empty,onResize:Class.empty,onMove:Class.empty,onShow:Class.empty,onHide:Class.empty,fxOverlayDuration:250,fxResizeDuration:750,fxContentDuration:250,ajaxOptions:{}},initialize:function(options){if(this.options)return this;this.presets=$merge(this.presets,options)
this.setOptions(this.presets);this.build();this.listeners={window:this.reposition.bind(this,[null]),close:this.close.bind(this),key:this.onkeypress.bind(this)};this.isOpen=this.isLoading=false;this.window.close=this.listeners.close;return this;},build:function(){this.overlay=new Element('div',{id:'sbox-overlay',styles:{display:'none',zIndex:this.options.zIndex}});this.content=new Element('div',{id:'sbox-content'});this.btnClose=new Element('a',{id:'sbox-btn-close',href:'#'});this.window=new Element('div',{id:'sbox-window',styles:{display:'none',zIndex:this.options.zIndex+2}}).adopt(this.btnClose,this.content);if(!window.ie6){this.overlay.setStyles({position:'fixed',top:0,left:0});this.window.setStyles({position:'fixed',top:'50%',left:'50%'});}else{this.overlay.style.setExpression('marginTop','document.documentElement.scrollTop + "px"');this.window.style.setExpression('marginTop','0 - parseInt(this.offsetHeight / 2) + document.documentElement.scrollTop + "px"');this.overlay.setStyles({position:'absolute',top:'0%',left:'0%'});this.window.setStyles({position:'absolute',top:'0%',left:'0%'});}
$(document.body).adopt(this.overlay,this.window);this.fx={overlay:this.overlay.effect('opacity',{duration:this.options.fxOverlayDuration,wait:false}).set(0),window:this.window.effects({duration:this.options.fxResizeDuration,wait:false}),content:this.content.effect('opacity',{duration:this.options.fxContentDuration,wait:false}).set(0)};},addClick:function(el){return el.addEvent('click',function(){if(this.fromElement(el))return false;}.bind(this));},fromElement:function(el,options){this.initialize();this.element=$(el);if(this.element&&this.element.rel)options=$merge(options||{},Json.evaluate(this.element.rel));this.setOptions(this.presets,options);this.assignOptions();this.url=(this.element?(this.options.url||this.element.href):el)||'';if(this.options.handler){var handler=this.options.handler;return this.setContent(handler,this.parsers[handler].call(this,true));}
var res=false;for(var key in this.parsers){if((res=this.parsers[key].call(this)))return this.setContent(key,res);}
return this;},assignOptions:function(){this.overlay.setProperty('class',this.options.classOverlay);this.window.setProperty('class',this.options.classWindow);},close:function(e){if(e)new Event(e).stop();if(!this.isOpen)return this;this.fx.overlay.start(0).chain(this.toggleOverlay.bind(this));this.window.setStyle('display','none');this.trashImage();this.toggleListeners();this.isOpen=null;this.fireEvent('onClose',[this.content]).removeEvents();this.options={};this.setOptions(this.presets).callChain();return this;},onError:function(){if(this.image)this.trashImage();this.setContent('Error during loading');},trashImage:function(){if(this.image)this.image=this.image.onload=this.image.onerror=this.image.onabort=null;},setContent:function(handler,content){this.content.setProperty('class','sbox-content-'+handler);this.applyTimer=this.applyContent.delay(this.fx.overlay.options.duration,this,[this.handlers[handler].call(this,content)]);if(this.overlay.opacity)return this;this.toggleOverlay(true);this.fx.overlay.start(this.options.overlayOpacity);this.reposition();return this;},applyContent:function(content,size){this.applyTimer=$clear(this.applyTimer);this.hideContent();if(!content)this.toggleLoading(true);else{if(this.isLoading)this.toggleLoading(false);this.fireEvent('onUpdate',[this.content],20);}
this.content.empty()[['string','array',false].contains($type(content))?'setHTML':'adopt'](content||'');this.callChain();if(!this.isOpen){this.toggleListeners(true);this.resize(size,true);this.isOpen=true;this.fireEvent('onOpen',[this.content]);}else this.resize(size);},resize:function(size,instantly){var sizes=window.getSize();this.size=$merge(this.isLoading?this.options.sizeLoading:this.options.size,size);var to={width:this.size.x,height:this.size.y,marginLeft:-this.size.x/2,marginTop:-this.size.y/2};$clear(this.showTimer||null);this.hideContent();if(!instantly)this.fx.window.start(to).chain(this.showContent.bind(this));else{this.window.setStyles(to).setStyle('display','');this.showTimer=this.showContent.delay(50,this);}
this.reposition(sizes);},toggleListeners:function(state){var task=state?'addEvent':'removeEvent';this.btnClose[task]('click',this.listeners.close);if(this.options.closeWithOverlay)this.overlay[task]('click',this.listeners.close);document[task]('keydown',this.listeners.key);window[task]('resize',this.listeners.window);window[task]('scroll',this.listeners.window);},toggleLoading:function(state){this.isLoading=state;this.window[state?'addClass':'removeClass']('sbox-loading');if(state)this.fireEvent('onLoading',[this.window]);},toggleOverlay:function(state){this.overlay.setStyle('display',state?'':'none');$(document.body)[state?'addClass':'removeClass']('body-overlayed');},showContent:function(){if(this.content.opacity)this.fireEvent('onShow',[this.window]);this.fx.content.start(1);},hideContent:function(){if(!this.content.opacity)this.fireEvent('onHide',[this.window]);this.fx.content.stop().set(0);},onkeypress:function(e){switch(e.key){case'esc':case'x':this.close();break;}},reposition:function(sizes){sizes=sizes||window.getSize();this.overlay.setStyles({width:sizes.size.x,height:sizes.size.y});this.fireEvent('onMove',[this.overlay,this.window,sizes]);},removeEvents:function(type){if(!this.$events)return this;if(!type)this.$events=null;else if(this.$events[type])this.$events[type]=null;return this;},parsers:{'image':function(preset){return(preset||this.url.test(/\.(jpg|jpeg|png|gif|bmp)$/i))?this.url:false;},'adopt':function(preset){if($(this.options.adopt))return $(this.options.adopt);if(preset||($(this.element)&&!this.element.parentNode))return $(this.element);var bits=this.url.match(/#([\w-]+)$/);return bits?$(bits[1]):false;},'url':function(preset){return(preset||(this.url&&!this.url.test(/^javascript:/i)))?this.url:false;},'iframe':function(preset){return(preset||this.url)?this.url:false;},'string':function(preset){return true;}},handlers:{'image':function(url){this.image=new Image();var events={loaded:function(){var win={x:window.getWidth()-this.options.marginImage.x,y:window.getHeight()-this.options.marginImage.y};var size={x:this.image.width,y:this.image.height};for(var i=0;i<2;i++)
if(size.x>win.x){size.y*=win.x/size.x;size.x=win.x;}else if(size.y>win.y){size.x*=win.y/size.y;size.y=win.y;}
size={x:parseInt(size.x),y:parseInt(size.y)};if(window.webkit419)this.image=new Element('img',{'src':this.image.src});else $(this.image);this.image.setProperties({'width':size.x,'height':size.y});this.applyContent(this.image,size);}.bind(this),failed:this.onError.bind(this)};(function(){this.src=url;}).delay(10,this.image);this.image.onload=events.loaded;this.image.onerror=this.image.onabort=events.failed;},'adopt':function(el){return el.clone();},'url':function(url){this.ajax=new Ajax(url,this.options.ajaxOptions);this.ajax.addEvent('onSuccess',function(resp){this.applyContent(resp);this.ajax=null;}.bind(this));this.ajax.addEvent('onFailure',this.onError.bind(this));this.ajax.request.delay(10,this.ajax);},'iframe':function(url){return new Element('iframe',{'src':url,'frameBorder':0,'width':this.options.size.x,'height':this.options.size.y});},'string':function(str){return str;}},extend:$extend};SqueezeBox.extend(SqueezeBox,Events.prototype);SqueezeBox.extend(SqueezeBox,Options.prototype);SqueezeBox.extend(SqueezeBox,Chain.prototype);

/* k2.js */

window.addEvent('domready',function(){if($('comment-form')){$('comment-form').addEvent('submit',function(e){new Event(e).stop();$('formLog').empty().addClass('formLogLoading');this.send({onComplete:function(res){$('formLog').removeClass('formLogLoading').setHTML(res);if(typeof(Recaptcha)!="undefined"){Recaptcha.reload();}
if(res.substr(13,7)=='success'){window.location.reload();}}});});}
if($('fontDecrease')){$('fontDecrease').addEvent('click',function(e){new Event(e).stop();$$('.itemFullText').removeClass('largerFontSize');$$('.itemFullText').addClass('smallerFontSize');});}
if($('fontIncrease')){$('fontIncrease').addEvent('click',function(e){new Event(e).stop();$$('.itemFullText').removeClass('smallerFontSize');$$('.itemFullText').addClass('largerFontSize');});}
new SmoothScroll({duration:500,links:'a.k2Anchor'});if($$('.itemRatingForm').length>0){$$('.itemRatingForm a').addEvent('click',function(e){e=new Event(e).stop();var itemID=this.getProperty('rel');var log=$('itemRatingLog'+itemID).empty().addClass('formLogLoading');var rating=this.getText();var url=K2RatingURL+"index.php?option=com_k2&view=item&task=vote&user_rating="+rating+"&itemID="+itemID;new Ajax(url,{method:"get",update:log,onComplete:function(){log.removeClass('formLogLoading');new Ajax(K2RatingURL+"index.php?option=com_k2&view=item&task=getVotesPercentage&itemID="+itemID,{method:"get",onComplete:function(percentage){$('itemCurrentRating'+itemID).setStyle('width',percentage+"%");setTimeout(function(){new Ajax(K2RatingURL+"index.php?option=com_k2&view=item&task=getVotesNum&itemID="+itemID,{method:"get",update:log}).request();},2000);}}).request();}}).request();});}
$$('.classicPopup').addEvent('click',function(e){e=new Event(e).stop();var options=Json.evaluate(this.getProperty('rel'));window.open(this.getProperty('href'),'K2PopUpWindow','width='+options.x+',height='+options.y+',menubar=yes,resizable=yes');});});window.addEvent('load',function(){if($$('.subCategory')){var blocks=$$('.subCategory');var maxHeight=0;blocks.each(function(item){maxHeight=Math.max(maxHeight,parseInt(item.getStyle('height')));});blocks.setStyle('height',maxHeight);}});

/* core.js */

function switchFontSize(ckname,val){var bd=document.getElementsByTagName('body');if(!bd||!bd.length)return;bd=bd[0];var oldclass='fs'+CurrentFontSize;switch(val){case'inc':if(CurrentFontSize+1<7){CurrentFontSize++;}
break;case'dec':if(CurrentFontSize-1>0){CurrentFontSize--;}
break;case'reset':default:CurrentFontSize=DefaultFontSize;}
var newclass='fs'+CurrentFontSize;bd.className=bd.className.replace(new RegExp('fs.?','g'),'');bd.className=trim(bd.className);bd.className+=(bd.className?' ':'')+newclass;createCookie(ckname,CurrentFontSize,365);}
function switchTool(ckname,val){createCookie(ckname,val,365);window.location.reload();}
function cpanel_reset(){var matches=document.cookie.match(new RegExp('(?:^|;)\\s*'+tmpl_name.escapeRegExp()+'_([^=]*)=([^;]*)','g'));if(!matches)return;for(i=0;i<matches.length;i++){var ck=matches[i].match(new RegExp('(?:^|;)\\s*'+tmpl_name.escapeRegExp()+'_([^=]*)=([^;]*)'));if(ck){createCookie(tmpl_name+'_'+ck[1],'',-1);}}
if(window.location.href.indexOf('?')>-1)window.location.href=window.location.href.substr(0,window.location.href.indexOf('?'));else window.location.reload();}
function cpanel_apply(){var elems=document.getElementById('ja-cpanel-main').getElementsByTagName('*');var usersetting={};for(i=0;i<elems.length;i++){var el=elems[i];if(el.name&&(match=el.name.match(/^user_(.*)$/))){var name=match[1];var value='';if(el.tagName.toLowerCase()=='input'&&(el.type.toLowerCase()=='radio'||el.type.toLowerCase()=='checkbox')){if(el.checked)value=el.value;}else{value=el.value;}
if(usersetting[name]){if(value)usersetting[name]=value+','+usersetting[name];}else{usersetting[name]=value;}}}
for(var k in usersetting){name=tmpl_name+'_'+k;value=usersetting[k];createCookie(name,value,365);}
if(window.location.href.indexOf('?')>-1)window.location.href=window.location.href.substr(0,window.location.href.indexOf('?'));else window.location.reload();}
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 expires="";document.cookie=name+"="+value+expires+"; path=/";}
function trim(str,chars){return ltrim(rtrim(str,chars),chars);}
function ltrim(str,chars){chars=chars||"\\s";return str.replace(new RegExp("^["+chars+"]+","g"),"");}
function rtrim(str,chars){chars=chars||"\\s";return str.replace(new RegExp("["+chars+"]+$","g"),"");}
function getScreenWidth(){var x=0;if(self.innerHeight){x=self.innerWidth;}else if(document.documentElement&&document.documentElement.clientHeight){x=document.documentElement.clientWidth;}else if(document.body){x=document.body.clientWidth;}
return x;}
function equalHeight(els){els=$$_(els);if(!els||els.length<2)return;var maxh=0;var els_=[];els.each(function(el,i){if(!el)return;els_[i]=el;var ch=els_[i].getCoordinates().height;maxh=(maxh<ch)?ch:maxh;},this);els_.each(function(el,i){if(!el)return;if(maxh-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt()>0)el.setStyle('min-height',maxh-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt());},this);}
function getDeepestWrapper(el){while(el.getChildren().length==1)
{el=el.getChildren()[0];}
return el;}
function fixHeight(els,group1,group2){els=$$_(els);group1=$$_(group1);group2=$$_(group2);if(!els||!group1)return;var height=0;group1.each(function(el){if(!el)return;height+=el.getCoordinates().height;});if(group2){group2.each(function(el){if(!el)return;height-=el.getCoordinates().height;});}
els.each(function(el,i){if(!el)return;if(height-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt()>0)el.setStyle('min-height',height-el.getStyle('padding-top').toInt()-el.getStyle('padding-bottom').toInt());});}
function addFirstLastItem(el){el=$(el);if(!el||!el.getChildren()||!el.getChildren().length)return;el.getChildren()[0].addClass('first-item');el.getChildren()[el.getChildren().length-1].addClass('last-item');}
function $$_(els){if($type(els)=='string')return $$(els);var els_=[];els.each(function(el){el=$(el);if(el)els_.push(el);});return els_;}

/* mega.js */

var jaMegaMenuMoo=new Class({initialize:function(menu,options){this.options=$extend({slide:true,duration:300,fading:false,bgopacity:0.9,delayHide:500,direction:'down',action:'mouseenter',hidestyle:'normal'},options||{});if(!this.options.slide&&!this.options.fading)this.options.delayHide=10;this.menu=menu;this.childopen=new Array();this.imageloaded=false;this.loaded=false;this.start();},start:function(){if(this.loaded)return;this.menu=$(this.menu);var images=this.menu.getElements('img');if(images&&images.length&&!this.imageloaded){var imgs=[];images.each(function(image){imgs.push(image.src)});if(imgs.length){new Asset.images(imgs,{onComplete:function(){this.start();}.bind(this)});this.imageloaded=true;this.start.delay(3000,this);return;}}
this.loaded=true;p=this.menu;while(p=p.getParent()){if(p.hasClass('main')||p.hasClass('wrap')){this.wrapper=p;break;}}
this.items=this.menu.getElements('li.mega');this.items.each(function(li){if((a=li.getElement('a.mega'))&&this.isChild(a,li))li.a=a;else li.a=null;li._parent=this.getParent(li);if((childcontent=li.getElement('.childcontent'))&&this.isChild(childcontent,li)){li.childcontent=childcontent;li.childcontent_inner=li.childcontent.getElement('.childcontent-inner-wrap');var coor=li.childcontent_inner.getCoordinates();li._w=li.getElement('.childcontent-inner').offsetWidth;li._h=li.getElement('.childcontent-inner').offsetHeight;li.level0=li.getParent().hasClass('level0');li.childcontent.setStyles({'width':li._w+10,'height':li._h});li.childcontent_inner.setStyles({'width':li._w});li.childcontent_inner1=li.childcontent.getElement('.childcontent-inner');li.childcontent_inner1.ol=false;if(li.childcontent_inner1.getStyle('overflow')=='auto'||li.childcontent_inner1.getStyle('overflow')=='scroll'){li.childcontent_inner1.ol=true;if(window.ie6||window.ie7){li.childcontent_inner1.setStyle('position','relative');}
if(window.ie6){li.childcontent_inner1.setStyle('height',li.childcontent_inner1.getStyle('max-height')||400);}}
if(this.options.direction=='up'){if(li.level0){li.childcontent.setStyle('top',-li.childcontent.offsetHeight);}else{li.childcontent.setStyle('bottom',0);}}}
else li.childcontent=null;if(li.childcontent&&this.options.bgopacity){var bg=new Element('div',{'class':'childcontent-bg'});bg.injectTop(li.childcontent_inner);bg.setStyles({'width':'100%','height':li._h,'opacity':this.options.bgopacity,'position':'absolute','top':0,'left':0,'z-index':1});if(li.childcontent.getStyle('background'))bg.setStyle('background',li.childcontent.getStyle('background'));if(li.childcontent.getStyle('background-image'))bg.setStyle('background-image',li.childcontent.getStyle('background-image'));if(li.childcontent.getStyle('background-repeat'))bg.setStyle('background-repeat',li.childcontent.getStyle('background-repeat'));if(li.childcontent.getStyle('background-color'))bg.setStyle('background-color',li.childcontent.getStyle('background-color'));li.childcontent.setStyle('background','none');li.childcontent_inner.setStyles({'position':'relative','z-index':2});}
if(li.childcontent&&(this.options.slide||this.options.fading)){li.childcontent.setStyles({'left':'auto'});if(li.childcontent.hasClass('right'))li.childcontent.setStyle('right',0);if(this.options.slide){li.childcontent.setStyles({'left':'auto','overflow':'hidden'});if(li.level0){if(this.options.direction=='up'){li.childcontent_inner.setStyle('bottom',-li._h-20);}else{li.childcontent_inner.setStyle('margin-top',-li._h-20);}}else{li.childcontent_inner.setStyle('margin-left',-li._w-20);}}
if(this.options.fading){li.childcontent_inner.setStyle('opacity',0);}
li.fx=new Fx.Styles(li.childcontent_inner,{duration:this.options.duration,transition:Fx.Transitions.linear,onComplete:this.itemAnimDone.bind(this,li)});li.eff_on={};li.eff_off={};if(this.options.slide){if(li.level0){if(this.options.direction=='up'){li.eff_on['bottom']=0;li.eff_off['bottom']=-li._h;}else{li.eff_on['margin-top']=0;li.eff_off['margin-top']=-li._h;}}else{li.eff_on['margin-left']=0;li.eff_off['margin-left']=-li._w;}}
if(this.options.fading){li.eff_on['opacity']=1;li.eff_off['opacity']=0;}}
if(this.options.action=='click'&&li.childcontent){li.addEvent('click',function(e){var event=new Event(e);if(li.hasClass('group'))return;if(li.childcontent){if(li.status=='open'){if(this.cursorIn(li,event)){this.itemHide(li);}else{this.itemHideOthers(li);}}else{this.itemShow(li);}}else{if(li.a)location.href=li.a.href;}
event.stopPropagation();}.bind(this));}
if(this.options.action=='mouseover'||this.options.action=='mouseenter'){li.addEvent('mouseenter',function(e){if(li.hasClass('group'))return;$clear(li.timer);this.itemShow(li);e.stopPropagation();}.bind(this));li.addEvent('mouseleave',function(e){if(li.hasClass('group'))return;$clear(li.timer);if(li.childcontent)li.timer=this.itemHide.delay(this.options.delayHide,this,[li,e]);else this.itemHide(li,e);if(!e.stopped){e.stopPropagation();e.stopped=true;}}.bind(this));if(li.a&&li.childcontent){li.clickable=false;li.a.addEvent('click',function(e){if(!li.clickable){new Event(e).stop();}}.bind(this));}
li.addEvent('click',function(e){new Event(e).stopPropagation()});}
if(li.a&&!li.childcontent){li.a.addEvent('click',function(e){this.itemHideOthers(null);this.menu.getElements('.active').removeClass('active');var p=li;while(p){p.addClass('active');p.a.addClass('active');p=p._parent;}
new Event(e).stopPropagation();}.bind(this));}
if(li.childcontent)this.positionSubmenu(li);},this);var container=$('ja-wrapper');if(!container)container=document.body;container.addEvent('click',function(e){this.itemHideOthers(null);}.bind(this));this.menu.addEvent('click',function(e){new Event(e).stopPropagation()});if(this.options.slide||this.options.fading){this.menu.getElements('.childcontent').setStyle('display','none');}},getParent:function(li){var p=li;while((p=p.getParent())){if(this.items.contains(p)&&!p.hasClass('group'))return p;if(!p||p==this.menu)return null;}},cursorIn:function(el,event){if(!el||!event)return false;var pos=$merge(el.getPosition(),{'w':el.offsetWidth,'h':el.offsetHeight});;var cursor={'x':event.page.x,'y':event.page.y};if(cursor.x>pos.x&&cursor.x<pos.x+el.offsetWidth&&cursor.y>pos.y&&cursor.y<pos.y+el.offsetHeight)return true;return false;},isChild:function(child,parent){return!!parent.getChildren().contains(child);},itemOver:function(li){if(li.hasClass('haschild'))
li.removeClass('haschild').addClass('haschild-over');li.addClass('over');if(li.a){li.a.addClass('over');}},itemOut:function(li){if(li.hasClass('haschild-over'))
li.removeClass('haschild-over').addClass('haschild');li.removeClass('over');if(li.a){li.a.removeClass('over');}},itemShow:function(li){clearTimeout(li.timer);if(li.status=='open')return;this.itemOver(li);li.status='open';this.enableclick.delay(100,this,li);this.childopen.push(li);this.itemHideOthers(li);if(li.childcontent){this.positionSubmenu(li);}
if(!$defined(li.fx)||!$defined(li.childcontent))return;li.childcontent.setStyle('display','block');li.childcontent.setStyles({'overflow':'hidden'});if(li.childcontent_inner1.ol)li.childcontent_inner1.setStyles({'overflow':'hidden'});li.fx.stop();li.fx.start(li.eff_on);},itemHide:function(li,e){if(e&&e.page){if(this.cursorIn(li,e)||this.cursorIn(li.childcontent,e)){return;}
var p=li._parent;if(p&&!this.cursorIn(p,e)&&!this.cursorIn(p.childcontent,e)){p.fireEvent('mouseleave',e);}}
clearTimeout(li.timer);this.itemOut(li);li.status='close';this.childopen.remove(li);if(!$defined(li.fx)||!$defined(li.childcontent))return;if(li.childcontent.getStyle('opacity')==0)return;li.childcontent.setStyles({'overflow':'hidden'});if(li.childcontent_inner1.ol)li.childcontent_inner1.setStyles({'overflow':'hidden'});li.fx.stop();switch(this.options.hidestyle){case'fast':li.fx.options.duration=100;li.fx.start($merge(li.eff_off,{'opacity':0}));break;case'fastwhenshow':if(!e){li.fx.start($merge(li.eff_off,{'opacity':0}));}else{li.fx.start(li.eff_off);}
break;case'normal':default:li.fx.start(li.eff_off);break;}},itemAnimDone:function(li){if(li.status=='close'){if(this.options.hidestyle.test(/fast/)){li.fx.options.duration=this.options.duration;if(!this.options.fading)li.childcontent_inner.setStyle('opacity',1);}
li.childcontent.setStyles({'display':'none'});this.disableclick.delay(100,this,li);}
if(li.status=='open'){li.childcontent.setStyles({'overflow':''});if(li.childcontent_inner1.ol)li.childcontent_inner1.setStyles({'overflow-y':'auto'});li.childcontent_inner.setStyle('opacity',1);li.childcontent.setStyles({'display':'block'});}},itemHideOthers:function(el){var fakeevent=null
if(el&&!el.childcontent)fakeevent={};var curopen=this.childopen.copy();curopen.each(function(li){if(li&&typeof(li.status)!='undefined'&&(!el||(li!=el&&!li.hasChild(el)))){this.itemHide(li,fakeevent);}},this);},enableclick:function(li){if(li.a&&li.childcontent)li.clickable=true;},disableclick:function(li){if(li.a&&li.childcontent)li.clickable=false;},positionSubmenu:function(li){if(li.level0){if(!window.isRTL){var lcor=li.getCoordinates();var ccor=li.childcontent.getCoordinates();if(!ccor.width)
{li.childcontent.setStyle('display','block');ccor=li.childcontent.getCoordinates();li.childcontent.setStyle('display','none');}
var ml=0;var l=lcor.left;var r=l+ccor.width;if(this.wrapper){var wcor=this.wrapper.getCoordinates();l=l-wcor.left;r=wcor.right-r+10;}else{r=window.getWidth()-r+10;}
if(l<0||l+r<0){ml=-l;}else if(r<0){ml=r;}
if(ml!=0)li.childcontent.setStyle('margin-left',ml);}else{var lcor=li.getCoordinates();var ccor=li.childcontent.getCoordinates();if(!ccor.width)
{li.childcontent.setStyle('display','block');ccor=li.childcontent.getCoordinates();li.childcontent.setStyle('display','none');}
var mr=0;var r=lcor.right;var l=r-ccor.width;if(this.wrapper){var wcor=this.wrapper.getCoordinates();l=l-wcor.left;r=wcor.right-r+10;}else{r=window.getWidth()-r+10;}
if(r<0||l+r<0){mr=-r;}else if(l<0){mr=l;}
if(mr!=0)li.childcontent.setStyle('margin-right',mr);}}else{var lcor=li.getCoordinates();var ccor=li.childcontent.getCoordinates();if(!ccor.width)
{li.childcontent.setStyle('display','block');ccor=li.childcontent.getCoordinates();li.childcontent.setStyle('display','none');}
var ml=0;var l=ccor.left;var r=l+ccor.width;if(this.wrapper){var wcor=this.wrapper.getCoordinates();l=l-wcor.left;r=wcor.right-r+10;}else{r=window.getWidth()-r+10;}
if(r<0){li.childcontent.setStyle('margin-left',-ccor.width+20);if(li.eff_on)li.eff_on['margin-left']=0;if(li.eff_off){li.eff_off['margin-left']=li._w+20;li.childcontent_inner.setStyle('margin-left',li.eff_off['margin-left']);}}}}});

/* script_frontend.js */

var JATypo=new Class({initialize:function(options){this.options=$extend({offsets:{x:10,y:10}},options||{});this.overlay=new Element('div',{'id':'jatypo-overlay'}).inject($(document.body));this.overlay.setStyles({'width':window.getScrollWidth(),'height':window.getScrollHeight()});this.wrapper=$('jatypo-wrap');if(!this.wrapper)return;if(this.isBrowserIE()){this.button=new Element('div',{'class':'button2-left jatypo-btn'}).adopt(new Element('div',{'class':'blank'}).setHTML('<a href="#" onclick="IeCursorFix(); return false;"><span>JATypo</span></a>')).injectBefore($('editor-xtd-buttons'));}
else
{this.button=new Element('div',{'class':'button2-left jatypo-btn'}).adopt(new Element('div',{'class':'blank'}).setHTML('<span>JATypo</span>')).injectBefore($('editor-xtd-buttons'));}
this.typos=this.wrapper.getElements('.typo');this.typos.addEvents({'mouseenter':function(){this.addClass('typo-over');var wrapper=$('jatypo-wrap');var sample=this.getElement('.sample');var pos_s=findPos(sample);var pos_w=findPos(wrapper);var scroll_w={x:wrapper.scrollLeft,y:wrapper.scrollTop};var x0=pos_w.x+scroll_w.x;var y0=pos_w.y+scroll_w.y;var w0=wrapper.offsetWidth;var h0=wrapper.offsetHeight;var x1=pos_s.x;var y1=pos_s.y;var w1=sample.offsetWidth;var h1=sample.offsetHeight;if(y1<y0){this.addClass('typo-top').removeClass('typo-bottom')}
if(y1+h1>y0+h0){this.addClass('typo-bottom').removeClass('typo-top')}
if(x1<x0){this.addClass('typo-left').removeClass('typo-right')}
if(x1+w1>x0+w0){this.addClass('typo-right').removeClass('typo-left')}},'mouseleave':function(){this.removeClass('typo-over');},'click':function(){var sample=this.getElement('.sample');var html=sample.innerHTML;if($('content')){jInsertEditorText(html,'content');}
else{jInsertEditorText(html,'text');}
$('jatypo-wrap').setStyle('display','none');}});this.wrapper.remove().injectAfter(this.overlay);this.button.addEvent('click',function(event){event=new Event(event);this.position();event.stop();}.bind(this));this.overlay.addEvent('click',function(){this.wrapper.setStyle('display','none');this.overlay.setStyle('display','none');}.bind(this));var doc=$('text_ifr')?($('text_ifr').contentWindow?$('text_ifr').contentWindow.document:$('text_ifr').contentDocument):null;if(doc){var head=doc.getElementsByTagName('head')[0];var css=doc.createElement('link');css.rel='stylesheet';css.type='text/css';css.href=this.options.typocss;head.appendChild(css);}},locate:function(event){var win={'x':window.getWidth(),'y':window.getHeight()};var scroll={'x':window.getScrollLeft(),'y':window.getScrollTop()};var pwin={'x':this.wrapper.offsetWidth,'y':this.wrapper.offsetHeight};var prop={'x':'left','y':'top'};for(var z in prop){var pos=event.page[z]+this.options.offsets[z];if((pos+pwin[z]-scroll[z])>win[z])pos=event.page[z]-this.options.offsets[z]-pwin[z];this.wrapper.setStyle(prop[z],pos);};this.wrapper.setStyle('display','block');this.overlay.setStyle('display','block');},position:function(){this.wrapper.setStyle('display','block');this.overlay.setStyle('display','block');var pos=this.button.getPosition();var scroll={'x':window.getScrollLeft(),'y':window.getScrollTop()};var pwin={'x':this.wrapper.offsetWidth,'y':this.wrapper.offsetHeight};this.wrapper.setStyles({'left':pos.x+this.options.offsets.x,'top':pos.y+this.options.offsets.y-pwin.y});},isBrowserIE:function(){return navigator.appName=="Microsoft Internet Explorer";}});function findPos(obj){var curleft=curtop=0;if(obj.offsetParent){do{curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}while(obj=obj.offsetParent);}
return{x:curleft,y:curtop};}

/* caption.js */

var JCaption=new Class({initialize:function(selector)
{this.selector=selector;var images=$$(selector);images.each(function(image){this.createCaption(image);},this);},createCaption:function(element)
{var caption=document.createTextNode(element.title);var container=document.createElement("div");var text=document.createElement("p");var width=element.getAttribute("width");var align=element.getAttribute("align");if(!width){width=element.width;}
if(!align)
align=element.getStyle("float");if(!align)
align=element.style.styleFloat;if(align==""){align="none";}
text.appendChild(caption);text.className=this.selector.replace('.','_');element.parentNode.insertBefore(container,element);container.appendChild(element);if(element.title!=""){container.appendChild(text);}
container.className=this.selector.replace('.','_');container.className=container.className+" "+align;container.setAttribute("style","float:"+align);container.style.width=width+"px";}});document.caption=null;window.addEvent('load',function(){var caption=new JCaption('img.caption')
document.caption=caption});

/* yjmmbox.js */

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.3E("6J",3F);1N=0;1O=0;G 2C=0;I 3F(){$$("a.4R").37(I(a){a.1k=3G})}I 3G(b){G b=J 3H(b);b.6K();8.6L();G a=8.1s||8.S||"";G c=8.2h||1j;3I(a,8.1l,c);8.1k=3G;V 1j}I 3I(r,e,b){F(!$("1E")){J 1t("2m").1P("L","2D").1u(P.1S);$("2D").4S(0.2);J 1t("N").1P("L","1E").1u(P.1S);$("1E").4S(0.2);3J();J 1t("N").1P("L","1F").1u(P.1S);$("1F").1B="<2n 1m=\'1n/28/2o/2E/4T.3K\' />";38();J 1G.39("1E","2a",{1T:2p,2q:1G.2r.2F}).1y(0,0.6)}F(!$("1F")){J 1t("N").1P("L","1F").1u(P.1S);$("1F").1B="<2n 1m=\'1n/28/2o/2E/4T.3K\' />";38()}F(!$("1C")){J 1t("N").1P("L","1C").1u(P.1S);$("1C").1H({1D:3L,1U:"4U",2a:0.2})}2G=J 1G.6M("1C",{1T:6N,2q:1G.2r.6O,6P:1j});$("1E").1k=2b;K.4V=3M;G s=e.19(/(.+)?/)[1]||e;G p=/\\.(6Q?g|3a|3K|6R)/6S;F(s.19(p)){G v={2H:"",3N:"",3b:""};G m=v,n=v,a="";F(b){I j(w,x,i){V{2H:w.1s,3N:w.1l,3b:"<4W L=\'4X"+x+"\'>&4Y;&4Y;<a 1l=\'#\'>"+i+"</a></4W>"}}G c=[];$$("a.4R").37(I(i){F(i.2h==b){c[c.1o]=i}});G u=1j;1V(G q=0;q<c.1o;q++){G k=c[q];G g=k.1l.19(p);F(k.1l==e){u=T;a="4Z "+(q+1)+" 3c "+(c.1o)}O{F(u){n=j(k,"50","<N L=\'50\'></N>");1W}O{m=j(k,"51","<N L=\'51\'></N>")}}}}2s=J 4Z();2s.3O=I(){2s.3O=1e;G w=K.2t()-3L;G C=K.1X()-3L;G A=2s.R;G i=2s.Q;F(A>w){i=i*(w/A);A=w;F(i>C){A=A*(C/i);i=C}}O{F(i>C){A=A*(C/i);i=C;F(A>w){i=i*(w/A);A=w}}}1N=A+30;1O=i+60;F(K.3d){G B=(K.2I()+(K.2t()-1N)/2);G z=(K.2u()+(K.1X()-1O)/11)}O{G B=(K.2I()+(K.2t()-1N)/2);G z=(K.2u()+(K.1X()-1O)/2)}F(2C==0){2G.6T({Q:1O.2c(),R:1N.2c(),1D:z.2c(),2J:B.2c()})}2G.1y({Q:1O.2c(),R:1N.2c(),1D:z.2c(),2J:B.2c()}).52(I(){$("1C").1B+="<a 1l=\'\' L=\'53\' 1s=\'3P\'><2n L=\'6U\' 1m=\'"+e+"\' R=\'"+A+"\' Q=\'"+i+"\' 6V=\'"+r+"\'/></a><N L=\'6W\'>"+r+"<N L=\'6X\'>"+a+m.3b+n.3b+"<N L=\'3Q\'>3R 3S <a 1l=\'1b://1p.3T.Y\' 1s=\'3U 3V 3W 3X. 3Y 3c 2v 2w\' 3Z=\'41\' >2v 2w</a></N> </N></N><N L=\'6Y\'><a 1l=\'#\' L=\'2i\' 1s=\'3P\'><2n L=\'1Y\' 1m=\'1n/28/2o/2E/1Y.3a\' /></a></N>";$("2i").1k=2b;I x(E){V I(){$("1C").54();3I(E.2H,E.3N,b);V 1j}}G D=x(m);G y=x(n);F($("2K")){$("2K").1k=D}F($("2L")){$("2L").1k=y}P.3e=I(E){G E=J 3H(E);42(E.55){1I 27:2b();1W;1I 6Z:F($("2L")){P.3e=1e;y()}1W;1I 70:F($("2K")){P.3e=1e;D()}1W}};$("53").1k=2b});2x()};2s.1m=e}O{G d=e.19(/\\?(.+)/)[1];G t=57(d);1N=(t.R*1)+30;1O=(t.Q*1)+40;G h=1N-30,o=1O-45;F(e.2y("58")!=-1){59=e.1d("4X");$("1C").1B+="<N L=\'5a\'><N L=\'5b\'>"+r+"</N><N L=\'3Q\'>3R 3S <a 1l=\'1b://1p.3T.Y\' 1s=\'3U 3V 3W 3X. 3Y 3c 2v 2w\' 3Z=\'41\' >2v 2w</a></N><N L=\'5c\'><a 1l=\'#\' L=\'2i\' 1s=\'3P\'><2n L=\'1Y\' 1m=\'1n/28/2o/2E/1Y.3a\' /></N></N><2m 71=\'0\' 72=\'0\' 1m=\'"+59[0]+"\' L=\'43\' S=\'43\' 1z=\'R:"+(h+29)+"1a;Q:"+(o+17)+"1a;\' 3O=\'2x()\'> </2m>"}O{$("1C").1B+="<N L=\'5a\'><N L=\'5b\'>"+r+"</N><N L=\'5c\'><a 1l=\'#\' L=\'2i\'><2n L=\'1Y\' 1m=\'1n/28/2o/2E/1Y.3a\' /></a></N></N><N L=\'44\' 1z=\'R:"+h+"1a;Q:"+o+"1a;\'></N>"}$("2i").1k=2b;F(e.2y("73")!=-1){$("44").1B=($(t.74).1B+"<N L=\'3Q\'>3R 3S <a 1l=\'1b://1p.3T.Y\' 1s=\'3U 3V 3W 3X. 3Y 3c 2v 2w\' 3Z=\'41\' >2v 2w</a></N>");2M();2x()}O{F(e.2y("58")!=-1){2M();F(75.43==3f){$(P).76(I(w){G i=w.5d;F(i==27){2b()}});2x()}}O{G f=I(){2M();2x()};G l=J 77(e,{78:"79",7a:$("44"),2j:f}).7b()}}}K.5e=I(){2M();38();3J()};P.5f=I(i){G i=J 3H(i);F(i.55==27){2b()}}}I 2x(){F(2C==0){2C=1;G a=J 1G.39("1C","2a",{1T:7c,2q:1G.2r.2F,2j:I(){F($("1F")){$("1F").2N()}}}).1y(0,1)}O{$("1C").46("2a",1);F($("1F")){$("1F").2N()}}}I 2b(){$("1E").1k=1e;P.5f=1e;P.3e=1e;F($("5g")){$("5g").1k=1e}F($("2i")){$("2i").1k=1e}F($("2K")){$("2K").1k=1e}F($("2L")){$("2L").1k=1e}J 1G.39("1C","2a",{1T:2p,2q:1G.2r.2F,2j:I(){$("1C").2N()}}).1y(1,0);J 1G.39("1E","2a",{1T:2p,2q:1G.2r.2F,2j:I(){$("1E").2N()}}).1y(0.6,0);K.4V=1e;K.5e=1e;$("2D").2N();3F();2C=0;V 1j}I 2M(){3M()}I 3M(){F(K.3d){2G.1y({2J:(K.2I()+(K.2t()-1N)/2),1D:(K.2u()+(K.1X()-1O)/11)})}O{2G.1y({2J:(K.2I()+(K.2t()-1N)/2),1D:(K.2u()+(K.1X()-1O)/2)})}}I 3J(){$("1E").1H({Q:"2O",R:"2O"});$("2D").1H({Q:"2O",R:"2O"});F(K.3d){$("1E").1H({Q:K.3g()+2p+"1a",R:K.48()+"1a"})}O{$("1E").1H({Q:K.3g()+"1a",R:K.48()+"1a"})}$("2D").1H({Q:K.3g()+"1a",R:K.48()+"1a"})}I 38(){F($("1F")){$("1F").1H({2J:(K.2I()+(K.2t()-56)/2)+"1a",1D:(K.2u()+((K.1X()-20)/2))+"1a",1U:"4U"})}}I 57(c){F(!c){V{}}G e={};G b=c.1d(/[;&]/);1V(G a=0;a<b.1o;a++){G d=b[a].1d("=");F(!d||d.1o!=2){7d}e[5h(d[0])]=5h(d[1]).3h(/\\+/g," ")}V e}G 49={5i:I(a){8.M=2z.5j({5k:7e,5l:1G.2r.2F,5m:0.6,5n:15,4a:4b,5o:4b,5p:7f,5q:4b,4c:T,5r:"1n/28/2o/7g/7h.1c",4d:"7i",4e:"5s",4f:"5s",3i:"T",4g:"T",1Z:"T",2d:"7j",2e:"T",4h:"#1v",4i:"T",5t:"7k",5u:"T",5v:"#1v",5w:"#7l",5x:"#1v",5y:"T",7m:"1",5z:"1",7n:"T",7o:"1",7p:"1",7q:"1",7r:"1",7s:"5A"},a||{});F(K.5B&&P.7t=="7u"){8.M.4c=1j}8.5C=[];$37(P.7v,I(c){F(c.2h&&c.2h.7w(/^2A/i)){F(c.1l.19(/\\#5D/i)){c.7x()}c.1k=8.5E.5F(c,8);8.5C.7y(c)}},8);8.5G=8.5H.7z(8);8.4j=8.4k.3j(8);8.2k=J 1t("N").1P("L","7A").1u(P.1S);8.1q=J 1t("N").1P("L","7B").1H({R:8.M.4a+"1a",Q:8.M.5o+"1a",2P:"-"+(8.M.4a/2)+"1a",1U:"3k"}).1u(P.1S);8.1g=J 1t("N").1P("L","7C").1u(8.1q);8.2B=J 1t("N").1P("L","7D").46("1U","3k").1u(P.1S);8.22=J 1t("N").1P("L","7E").1u(8.2B);J 1t("a").5I({L:"7F",1l:"#"}).1u(8.22).1k=8.2k.1k=8.1Y.3j(8);8.2H=J 1t("N",{L:"7G"}).1u(8.22);J 1t("N").46("7H","7I").1u(8.22);G b=8.4l.3j(8);8.23={2k:8.2k.4m("2a",{1T:2p}).7J(),1q:8.1q.7K({1T:8.M.5k,2q:8.M.5l,2j:b}),28:8.1g.4m("2a",{1T:2p,2j:b}),22:8.2B.4m("Q",{1T:7L,2j:b})}},5E:I(a){V 8.5J(a.1l,a.1s,a.2h)},5J:I(d,e,a){8.1l=d;8.1s=e;8.2h=a;8.4k();8.4n(T);G b=(K.1X()==0)?K.3g():K.1X();G c=P.1S.5K||P.7M.5K;8.1D=c+(b/8.M.5n);8.1q.1H({1D:8.1D+"1a",1U:""});8.23.2k.1y(8.M.5m);8.1q.5L="7N";V 8.5M(d)},4k:I(){8.2k.1H({1D:K.2u()+"1a",Q:K.1X()+"1a"})},4n:I(a){G d=8.2h.19(/[0-9]+/g);8.18=(d&&(d[0]>0))?d[0]:8.M.5p;8.12=(d&&(d[1]>0))?d[1]:8.M.5q;G c=$A(P.4o("H"));c.5j(P.4o(K.7O?"7P":"1J"));c.37(I(e){F(a){e.5N=e.1z.5O}e.1z.5O=a?"7Q":e.5N});G b=a?"3E":"7R";K[b]("7S",8.4j)[b]("7T",8.4j);P[b]("7U",8.5G);8.24=0},5H:I(a){42(a.5d){1I 27:1I 88:1I 67:8.1Y();1W}},5M:I(b){8.24=1;F(b.19(/7V\\.Y/i)){8.X="1h";8.H=J 1i(b,"1Q",8.18,8.12,"9","#1v","1K","1L");8.H.13("1M","1w");8.H.13("1A","T")}O{F(b.19(/3l\\.Y/i)){8.X="4p";G c=b.1d("/");8.14=c[5];8.H=\'<H X="2Q/x-2R-1h" R="\'+8.18+\'" Q="\'+8.12+\'" 2S="1b://1p.3l.Y/4q/25/4r.1c?v=1.4s" 2T="3m:4t-4u-4v-4w-4x"> <U S="2U" 10="5P=4y-5Q&1R;5R=5S&1R;5T=\'+8.14+\'"></U> <U S="3n" 10="1b://1p.3l.Y/4q/25/4r.1c?v=1.4s"></U> <U S="2d" 10="\'+8.M.4h+\'"></U> <U S="3o" 10="\'+8.M.4i+\'"></U><1J X="2Q/x-2R-1h" 1m="1b://1p.3l.Y/4q/25/4r.1c?v=1.4s" 2d="\'+8.M.4h+\'" 1A="\'+8.M.4i+\'" 2U="5P=4y-5Q&1R;5R=5S&1R;5T=\'+8.14+\'" Q="\'+8.12+\'" R="\'+8.18+\'"></1J></H>\'}O{F(b.19(/5U\\.Y\\/7W/i)){8.X="1h";G c=b.1d("=");8.14=c[1];8.H=J 1i("1b://25.5U.Y/7X.1c?7Y="+8.14+"&1Z=1&7Z=4y","1Q",8.18,8.12,"9","#1v","1K","1L");8.H.13("1M","1w");8.H.13("1A","T")}O{F(b.19(/5V\\.Y\\/5W/i)){8.X="1h";G c=b.1d("/");8.14=c[4];8.H=J 1i("1b://1p.5V.Y/80/"+8.14+"/.1c","1Q",8.18,8.12,"9","#1v","1K","1L");8.H.13("1M","1w");8.H.13("1A","T")}O{F(b.19(/81\\.Y/i)){8.X="1h";G c=b.1d("=");8.14=c[2];8.H=J 1i("1b://82.83.Y/5X/84.1c?m="+8.14+"&v=2&X=25","1Q",8.18,8.12,"9","#1v","1K","1L");8.H.13("1M","1w");8.H.13("1A","T")}O{F(b.19(/4z\\.Y/i)){8.X="1h";G c=b.1d("/");8.14=c[4];8.H=J 1i("1b://1h.4z.Y/2V/1.0/2V.1c?85="+8.14+"&86="+8.M.5t+"&3o="+8.M.5u+"&87="+8.M.5v+"&89="+8.M.5w+"&8a="+8.M.5x+"&8b=4z","1Q",8.18,8.12,"9","#1v","1K","1L");8.H.13("1M","1w");8.H.13("1A","T")}O{F(b.19(/5Y\\.Y/i)){8.X="1h";G c=b.1d("/");8.14=c[5];8.H=J 1i("1b://5Y.Y/8c.1c?25="+8.14,"1Q",8.18,8.12,"9","#1v","1K","1L");8.H.13("1M","1w");8.H.13("1A",8.M.5y)}O{F(b.19(/5Z\\.Y\\/5W/i)){8.X="1h";G c=b.1d("=");8.14=c[1];8.H=J 1i("1b://1p.5Z.Y/v/"+8.14+"&1Z=1","1Q",8.18,8.12,"9","#1v","1K","1L");8.H.13("1M","1w");8.H.13("1A","T")}O{F(b.19(/61\\.Y/i)){8.X="1h";G c=b.1d("5X/");8.14=c[1];8.H=J 1i("1b://1p.61.Y/8d.1c?8e="+8.14+"&L=8f&2V=8g&8h="+8.M.5z,"1Q",8.18,8.12,"9","#1v","1K","1L");8.H.13("1M","1w");8.H.13("1A","T")}O{F(b.19(/4A\\.Y/i)){G c=b.1d("/");8.62=c[4];8.63=c[6];8.14="8i"+8.62+"8j"+8.63;8.X="4p";8.H=\'<H 2T="3m:4t-4u-4v-4w-4x" R="\'+8.18+\'" Q="\'+8.12+\'" L="\'+8.14+\'"><U S="3n" 10="1b://1p.4A.Y/2V/64/" /><U S="66" 10="1w" /><U S="3o" 10="\'+8.M.68+\'" /><1J 1m="1b://1p.4A.Y/2V/64/" R="\'+8.18+\'" Q="\'+8.12+\'" X="2Q/x-2R-1h" 66="1w" 3o="\'+8.M.68+\'" S="\'+8.14+\'" ></1J></H>\'}O{F(b.19(/4B\\.Y/i)){8.X="1h";G c=b.1d("/");8.14=c[3];8.H=J 1i("1b://1p.4B.Y/8k.1c?8l="+8.14+"&1R;8m=1p.4B.Y&1R;3i=1&1R;8n=1&1R;8o=1&1R;8p=1&1R;8q=5A","1Q",8.18,8.12,"9","#1v","1K","1L");8.H.13("1M","1w");8.H.13("1A","T")}O{F(b.19(/3p\\.3q/i)){G c=b.1d("/");8.14=c[5];8.X="4p";8.H=\'<H X="2Q/x-2R-1h" 2S="1b://1J.3p.3q/4C/4D.1c" R="\'+8.18+\'" Q="\'+8.12+\'" ><U S="3n" 10="1b://1J.3p.3q/4C/4D.1c" /><U S="8r" 10="69=\'+8.14+\'"/><1J 1m="1b://1J.3p.3q/4C/4D.1c" R="\'+8.18+\'" Q="\'+8.12+\'" 2U="69=\'+8.14+\'"></1J></H>\'}O{F(b.19(/\\.1c/i)){8.X="1h";8.H=J 1i(b,"1Q",8.18,8.12,"9","#1v","1K","1L");8.H.13("1M","1w");8.H.13("1A","T")}O{F(b.19(/\\.8s/i)){8.X="1h";8.H=J 1i(8.M.5r+"?8t="+b+"&4g="+8.M.4g+"&8u="+8.12+"&1A="+8.M.3i+"&8v="+8.M.3i+"&4d="+8.M.4d+"&4e="+8.M.4e+"&4f="+8.M.4f,"8w",8.18,8.12,"9","#1v","1K","1L");8.H.13("1M","1w");8.H.13("1A","T")}O{F(b.19(/\\.8x/i)){8.X="6a";F(8.M.2e=="T"){8.12=(8.12*1)+16}F(1x.1n&&1x.1n.1o){8.H=\'<H L="2A" 3r="3s 4E..." X="25/4E" 6b="1b://1p.6c.Y/6d/6e.6f" 2S="\'+b+\'" R="\'+8.18+\'" Q="\'+8.12+\'"><U S="1m" 10="\'+b+\'" /><U S="6g" 10="6h" /><U S="2e" 10="\'+8.M.2e+\'" /><U S="1Z" 10="\'+8.M.1Z+\'" /><U S="2d" 10="\'+8.M.2d+\'" /><U S="6i" 10="T" /></H>\'}O{8.H=\'<H 2T="3m:8y-8z-8A-8B-8C" 3r="3s 4E..." 6b="1b://1p.6c.Y/6d/6e.6f" R="\'+8.18+\'" Q="\'+8.12+\'" L="2A"><U S="1m" 10="\'+b+\'" /><U S="6g" 10="6h" /><U S="2e" 10="\'+8.M.2e+\'" /><U S="1Z" 10="\'+8.M.1Z+\'" /><U S="2d" 10="\'+8.M.2d+\'" /><U S="6i" 10="T" /></H>\'}}O{F(b.19(/\\.3t/i)){8.X="3t";F(8.M.2e=="T"){8.12=(8.12*1)+16}F(1x.1n&&1x.1n.1o){8.H=\'<H L="2A" 3r="3s 6j 6k..." X="25/x-6l-3t" 2S="\'+b+\'" R="\'+8.18+\'" Q="\'+8.12+\'" /><U S="1m" 10="\'+b+\'" /><U S="6m" 10="\'+8.M.1Z+\'" /></H>\'}O{8.H=\'<H L="2A" 3r="3s 6j 6k..." 2T="8D:8E-8F-8G-8H-8I" X="25/x-6l-3t" 2S="\'+b+\'" R="\'+8.18+\'" Q="\'+8.12+\'" /><U S="8J" 10="\'+b+\'" /><U S="8K" 10="\'+8.M.2e+\'"><U S="6m" 10="\'+8.M.1Z+\'" /><U S="8L" 10="T" /></H>\'}}O{F(b.19(/\\#5D/i)){8.X="4F";G a=b.1d("#");8.4F=a[1];8.H=$(8.4F).1B}O{8.X="2m";8.6n="8M"+J 8N().8O();8.H=J 1t("2m").5I({L:8.6n,R:8.18,Q:8.12,8P:0,8Q:"8R",1m:b})}}}}}}}}}}}}}}}}}8.4l();V 1j},4l:I(a){42(8.24++){1I 1:8.1g.1z.R=8.22.1z.R=8.18+"1a";8.1g.1z.Q=8.12+"1a";8.2H.1B=8.1s;F(8.1q.6o!=8.1g.2W){8.23.1q.1y({Q:8.1g.2W,R:8.1g.2X,2P:-8.1g.2X/2});1W}O{F(8.1q.8S!=8.1g.2X){8.23.1q.1y({Q:8.1g.2W,R:8.1g.2X,2P:-8.1g.2X/2});1W}}8.24++;1I 2:8.2B.1H({1D:(8.1D+8.1q.6o)+"1a",Q:"2O",2P:8.1q.1z.2P,R:8.1q.1z.R,1U:""});8.23.28.1y(1);8.24++;1I 3:F(8.X=="1h"){8.H.6p(8.1g)}O{F(8.X=="2m"){8.H.1u(8.1g)}O{8.1g.6q(8.H)}}8.3u=P.2Y("2A");8.1q.5L="";1W;8.24++;1I 4:F(8.M.4c){8.23.22.1y(0,8.22.2W);1W}8.2B.1z.Q=(8.22.2W)+"1a";1I 5:8.24=0}},1Y:I(){F(8.X=="6a"&&K.8T){8.3u.8U()}F(1x.1n&&1x.1n.1o){8.1g.6q("")}O{F(K.5B){8.1g.1B=""}O{8.1g.1B=""}}8.3u=1e;8.3u=8V.54;8.X=1j;F(8.24<0){V}8.24=-1;1V(G a 2Z 8.23){8.23[a].8W()}8.1q.1z.1U=8.2B.1z.1U="3k";8.23.2k.52(8.4n.5F(1j,8)).1y(0);V 1j}};K.3E("8X",49.5i.3j(49));F(31 W=="3f"){G W=J 2z()}F(31 W.32=="3f"){W.32=J 2z()}F(31 W.2f=="3f"){W.2f=J 2z()}W.1i=I(m,b,n,e,j,k,g,f,d,l){F(!P.2Y){V}8.6r=l?l:"8Y";8.6s=W.32.4G(8.6r);8.4H=J 2z();8.3v=J 2z();8.4I=J 6t();F(m){8.1r("1c",m)}F(b){8.1r("L",b)}F(n){8.1r("R",n)}F(e){8.1r("Q",e)}F(j){8.1r("3w",J W.26(j.8Z().1d(".")))}8.33=W.2f.6u();F(!K.3d&&P.4J&&8.33.2l>7){W.1i.6v=T}F(k){8.13("2d",k)}G a=g?g:"90";8.13("91",a);8.1r("3x",1j);8.1r("34",1j);G i=(f)?f:K.3y;8.1r("6w",i);8.1r("3z","");F(d){8.1r("3z",d)}};W.1i.6x={3x:I(a){8.4K=!a?"92.1c":a;8.1r("3x",T)},1r:I(a,b){8.4I[a]=b},1f:I(a){V 8.4I[a]},13:I(b,a){8.4H[b]=a},4L:I(){V 8.4H},35:I(b,a){8.3v[b]=a},93:I(a){V 8.3v[a]},6y:I(){V 8.3v},4M:I(){G c=J 6t();G b;G a=8.6y();1V(b 2Z a){c[c.1o]=b+"="+a[b]}V c},6z:I(){G b="";F(1x.1n&&1x.4N&&1x.4N.1o){F(8.1f("34")){8.35("6A","94");8.1r("1c",8.4K)}b=\'<1J X="2Q/x-2R-1h" 1m="\'+8.1f("1c")+\'" R="\'+8.1f("R")+\'" Q="\'+8.1f("Q")+\'" \';b+=\' L="\'+8.1f("L")+\'" S="\'+8.1f("L")+\'" \';G f=8.4L();1V(G e 2Z f){b+=[e]+\'="\'+f[e]+\'" \'}G d=8.4M().6B("&");F(d.1o>0){b+=\'2U="\'+d+\'"\'}b+="/>"}O{F(8.1f("34")){8.35("6A","95");8.1r("1c",8.4K)}b=\'<H L="\'+8.1f("L")+\'" 2T="3m:4t-4u-4v-4w-4x" R="\'+8.1f("R")+\'" Q="\'+8.1f("Q")+\'" >\';b+=\'<U S="3n" 10="\'+8.1f("1c")+\'" />\';G c=8.4L();1V(G e 2Z c){b+=\'<U S="\'+e+\'" 10="\'+c[e]+\'" />\'}G a=8.4M().6B("&");F(a.1o>0){b+=\'<U S="2U" 10="\'+a+\'" />\'}b+="</H>"}V b},6p:I(b){F(8.1f("3x")){G a=J W.26([6,0,65]);F(8.33.3A(a)&&!8.33.3A(8.1f("3w"))){8.1r("34",T);8.35("96",97(8.1f("6w")));P.1s=P.1s.98(0,47)+" - 6C 99 9a";8.35("9b",P.1s)}}F(8.6s||8.1f("34")||8.33.3A(8.1f("3w"))){G c=(31 b=="9c")?P.2Y(b):b;c.1B=8.6z();V T}O{F(8.1f("3z")!=""){P.3y.3h(8.1f("3z"))}}V 1j}};W.2f.6u=I(){G f=J W.26([0,0,0]);F(1x.1n&&1x.4N.1o){G a=1x.1n["9d 6C"];F(a&&a.6D){f=J W.26(a.6D.3h(/([a-9e-Z]|\\s)+/,"").3h(/(\\s+r|\\s+b[0-9]+)/,".").1d("."))}}O{F(1x.6E&&1x.6E.2y("9f 9g")>=0){G b=1;G c=3;9h(b){3B{c++;b=J 3C("2g.2g."+c);f=J W.26([c,0,0])}3D(d){b=1e}}}O{3B{G b=J 3C("2g.2g.7")}3D(d){3B{G b=J 3C("2g.2g.6");f=J W.26([6,0,21]);b.9i="1w"}3D(d){F(f.2l==6){V f}}3B{b=J 3C("2g.2g")}3D(d){}}F(b!=1e){f=J W.26(b.9j("$3w").1d(" ")[1].1d(","))}}}V f};W.26=I(a){8.2l=a[0]!=1e?4O(a[0]):0;8.36=a[1]!=1e?4O(a[1]):0;8.4P=a[2]!=1e?4O(a[2]):0};W.26.6x.3A=I(a){F(8.2l<a.2l){V 1j}F(8.2l>a.2l){V T}F(8.36<a.36){V 1j}F(8.36>a.36){V T}F(8.4P<a.4P){V 1j}V T};W.32={4G:I(c){G d=P.3y.9k||P.3y.9l;F(c==1e){V d}F(d){G b=d.4Q(1).1d("&");1V(G a=0;a<b.1o;a++){F(b[a].4Q(0,b[a].2y("="))==c){V b[a].4Q((b[a].2y("=")+1))}}}V""}};W.2f.6F=I(){G b=P.4o("9m");1V(G c=b.1o-1;c>=0;c--){b[c].1z.1U="3k";1V(G a 2Z b[c]){F(31 b[c][a]=="I"){b[c][a]=I(){}}}}};F(W.1i.6v){F(!W.6G){W.2f.6H=I(){9n=I(){};9o=I(){};K.6I("9p",W.2f.6F)};K.6I("9q",W.2f.6H);W.6G=T}}F(!P.2Y&&P.4J){P.2Y=I(a){V P.4J[a]}}G 9r=W.32.4G;G 9s=W.1i;G 1i=W.1i;',62,587,'||||||||this|||||||||||||||||||||||||||||||||if|var|object|function|new|window|id|options|div|else|document|height|width|name|true|param|return|deconcept|type|com||value||contentsHeight|addParam|videoID||||contentsWidth|match|px|http|swf|split|null|getAttribute|canvas|flash|SWFObject|false|onclick|href|src|plugins|length|www|center|setAttribute|title|Element|injectInside|000000|always|navigator|start|style|allowfullscreen|innerHTML|POP_window|top|POP_overlay|POP_load|Fx|setStyles|case|embed|wmode|transparent|allowscriptaccess|POP_WIDTH|POP_HEIGHT|setProperty|sfwvideo|amp|body|duration|display|for|break|getHeight|close|autoplay|||bottom|fx|step|video|PlayerVersion||content||opacity|POP_remove|toInt|bgcolor|controller|SWFObjectUtil|ShockwaveFlash|rel|POP_closeWindowButton|onComplete|overlay|major|iframe|img|bot_mb|500|transition|Transitions|imgPreloader|getWidth|getScrollTop|Multimedia|Box|POP_showWindow|indexOf|Object|mediabox|bottomContainer|POP_doneOnce|POP_HideSelect|images|sineInOut|POP_FX|caption|getScrollLeft|left|POP_prev|POP_next|POP_position|remove|0px|marginLeft|application|shockwave|data|classid|flashvars|player|offsetHeight|offsetWidth|getElementById|in||typeof|util|installedVer|doExpressInstall|addVariable|minor|each|POP_load_position|Style|png|html|of|opera|onkeydown|undefined|getScrollHeight|replace|fullscreen|bind|none|flickr|clsid|movie|allowFullScreen|12seconds|tv|standby|loading|wmv|currentObject|variables|version|useExpressInstall|location|redirectUrl|versionIsValid|try|ActiveXObject|catch|addEvent|POP_init|POP_bind|Event|POP_show|POP_overlaySize|gif|150|POP_positionEffect|url|onload|Close|naslink|Powered|by|youjoomla|Youjoomla|Joomla|Templates|Club|Home|target||_blank|switch|POP_iframeContent|POP_ajaxContent||setStyle||getScrollWidth|Mediabox|initialWidth|360|animateCaption|backcolor|frontcolor|lightcolor|autostart|fkBGcolor|fkFullscreen|eventPosition|position|nextEffect|effect|setup|getElementsByTagName|flashobj|apps|stewart|173|D27CDB6E|AE6D|11cf|96B8|444553540000|en|revver|viddler|vimeo|players|remotePlayer|quicktime|element|getRequestParameter|params|attributes|all|xiSWFPath|getParams|getVariablePairs|mimeTypes|parseInt|rev|substring|popbox|setOpacity|loading2|block|onscroll|span|POP_|nbsp|Image|next|prev|chain|POP_ImageOff|empty|code||POP_parseQuery|POP_iframe|urlNoQuery|POP_title|POP_ajaxWindowTitle|POP_closeAjaxWindow|keyCode|onresize|onkeyup|POP_imageOff|unescape|init|extend|resizeDuration|resizeTransition|overlayOpacity|topDistance|initialHeight|defaultWidth|defaultHeight|playerpath|0x000000|revverID|revverFullscreen|revverBack|revverFront|revverGrad|ssFullscreen|vhAutoplay|5ca0b5|ie6|anchors|yjmb_|click|pass|eventKeyDown|keyboardListener|setProperties|open|scrollTop|className|loadVideo|lbBackupStyle|visibility|intl_lang|us|photo_secret|a8e6cdca81|photo_id|google|metacafe|watch|videos|seesmic|youtube||veoh|videoId1|videoId2|e5398221||allowScriptAccess||vdFullscreen|vid|qt|codebase|apple|qtactivex|qtplugin|cab|scale|aspect|enablejavascript|windows|media|ms|autoStart|iframeId|clientHeight|write|setHTML|DETECT_KEY|skipDetect|Array|getPlayerVersion|doPrepUnload|xiRedirectUrl|prototype|getVariables|getSWFHTML|MMplayerType|join|Flash|description|userAgent|cleanupSWFs|unloadSet|prepUnload|attachEvent|domready|preventDefault|blur|Styles|200|linear|wait|jpe|bmp|gi|set|POP_Image|alt|POP_caption|POP_secondLine|POP_closeWindow|190|188|frameborder|hspace|POP_inline|inlineId|frames|keyup|Ajax|method|get|update|request|250|continue|240|640|js|mediaplayer|0x777777|black|187866|ffffff|ytAutoplay|vhFullscreen|vmFullscreen|vmTitle|vmByline|vmPortrait|vmColor|compatMode|BackCompat|links|test|removeEvents|push|bindAsEventListener|lbOverlay|lbCenter|lbImage|lbBottomContainer|lbBottom|lbCloseLink|lbCaption|clear|both|hide|effects|400|documentElement|lbLoading|ie|select|hidden|removeEvent|scroll|resize|keydown|dailymotion|videoplay|googleplayer|docId|hl|fplayer|myspacetv|lads|myspace|vplayer|mediaId|affiliateId|backColor||frontColor|gradColor|shareUrl|Standalone|videodetails2|permalinkId|2907158|videodetailsembedded|videoAutoPlay|viddler_|_|moogaloop|clip_id|server|show_title|show_byline|show_portrait|color|FlashVars|flv|file|displayheight|usefullscreen|flvvideo|mov|02BF25D5|8C17|4B23|BC80|D3488ABDDC6B|CLSID|22D6f312|B0F6|11D0|94AB|0080C74C7E95|filename|showcontrols|stretchToFit|lbFrame_|Date|getTime|frameBorder|scrolling|auto|clientWidth|webkit|Stop|Class|stop|load|detectflash|toString|high|quality|expressinstall|getVariable|PlugIn|ActiveX|MMredirectURL|escape|slice|Player|Installation|MMdoctitle|string|Shockwave|zA|Windows|CE|while|AllowScriptAccess|GetVariable|search|hash|OBJECT|__flash_unloadHandler|__flash_savedUnloadHandler|onunload|onbeforeunload|getQueryParamValue|FlashObject'.split('|'),0,{}))

/* btloader.min.js */

var BT=BT||{};BT.Loader=(function(j){var g,h,b={},e=0,f={css:[],js:[]},m=j.styleSheets;function l(p,o){var q=j.createElement(p),n;for(n in o){if(o.hasOwnProperty(n)){q.setAttribute(n,o[n])}}return q}function i(n){var q=b[n],r,o;if(q){r=q.callback;o=q.urls;o.shift();e=0;if(!o.length){r&&r.call(q.context,q.obj);b[n]=null;f[n].length&&k(n)}}}function c(){var n=navigator.userAgent;g={async:j.createElement("script").async===true};(g.webkit=/AppleWebKit\//.test(n))||(g.ie=/MSIE/.test(n))||(g.opera=/Opera/.test(n))||(g.gecko=/Gecko\//.test(n))||(g.unknown=true)}function k(z,y,A,v,r){var t=function(){i(z)},B=z==="css",o=[],u,w,s,q,x,n;g||c();if(y){y=typeof y==="string"?[y]:y.concat();if(B||g.async||g.gecko||g.opera){f[z].push({urls:y,callback:A,obj:v,context:r})}else{for(u=0,w=y.length;u<w;++u){f[z].push({urls:[y[u]],callback:u===w-1?A:null,obj:v,context:r})}}}if(b[z]||!(q=b[z]=f[z].shift())){return}h||(h=j.head||j.getElementsByTagName("head")[0]);x=q.urls;for(u=0,w=x.length;u<w;++u){n=x[u];if(B){s=g.gecko?l("style"):l("link",{href:n,rel:"stylesheet"})}else{s=l("script",{src:n});s.async=false}s.className="lazyload";s.setAttribute("charset","utf-8");if(g.ie&&!B){s.onreadystatechange=function(){if(/loaded|complete/.test(s.readyState)){s.onreadystatechange=null;t()}}}else{if(B&&(g.gecko||g.webkit)){if(g.webkit){q.urls[u]=s.href;d()}else{s.innerHTML='@import "'+n+'";';a(s)}}else{s.onload=s.onerror=t}}o.push(s)}for(u=0,w=o.length;u<w;++u){h.appendChild(o[u])}}function a(p){var o;try{o=!!p.sheet.cssRules}catch(n){e+=1;if(e<200){setTimeout(function(){a(p)},50)}else{o&&i("css")}return}i("css")}function d(){var o=b.css,n;if(o){n=m.length;while(--n>=0){if(m[n].href===o.urls[0]){i("css");break}}e+=1;if(o){if(e<200){setTimeout(d,50)}else{i("css")}}}}return{css:function(p,q,o,n){k("css",p,q,o,n)},js:function(p,q,o,n){k("js",p,q,o,n)}}})(this.document);


