 /* ratio: 13.6% */ var bookmarks=null;var urls=null;var tags=null;var featured_links=null;window.addEvent('domready',function(){if(typeof(bookmarksClass)!="undefined"){bookmarks=new bookmarksClass()}if(typeof(urlsClass)!="undefined"){urls=new urlsClass()}if(typeof(tagsClass)!="undefined"){tags=new tagsClass()}if(typeof(featuredLinksClass)!="undefined"){featured_links=new featuredLinksClass()}if(typeof(ReMooz)!="undefined"){ReMooz.assign('.remooz')}});function showLoading(obj){if(!obj.hasClass('indicator')){obj.addClass('indicator').set('styles',{'display':'none'});new Element('span',{'class':'loading','id':obj.id+'___indicator'}).set({html:'<img src="'+_wp+'/img/loading.gif" title="'+lg.word_loading+'" alt="'+lg.word_loading+'">'}).injectAfter(obj)}}function hideLoading(obj){if(obj.hasClass('indicator')){obj.removeClass('indicator').set('styles',{'display':'inline'});$(obj.id+'___indicator').destroy()}}function markAll(element_id){$(element_id).getElements('input[type=checkbox]').each(function(a){a.set('checked',((a.get('checked'))?false:true))})}function toggle(element_id){$(element_id).toggleClass('hidden')}function toggleDropdown(obj){var dd=obj.getElement('div.dropdown');if(dd.hasClass('hidden')){dd.setStyles({'width':obj.offsetWidth-2,'position':'absolute','top':getY(obj)+obj.offsetHeight,'left':getX(obj)});dd.removeClass('hidden')}else{dd.addClass('hidden')}obj.toggleClass('dropdown_container_highlight')}function setValueFromSelect(target_id,src_id){var target=is_object(target_id)?target_id:$(target_id);var src=is_object(src_id)?src_id:$(src_id);return target.set('value',src.get('value'))}function is_object(mixed_var){return(mixed_var instanceof Array)?false:(mixed_var!==null)&&(typeof(mixed_var)=='object')}function getY(oElement){var iReturnValue=0;while(oElement!=null){iReturnValue+=oElement.offsetTop;oElement=$(oElement.offsetParent)}return iReturnValue}function getX(oElement){var iReturnValue=0;var strPath='';while(oElement!=null){iReturnValue+=oElement.offsetLeft;oElement=$(oElement.offsetParent)}return iReturnValue}function slideTimeline(){if(typeof(obj_timeline)=='undefined'){obj_timeline=new Fx.Slide('timeline');obj_timeline.hide();$('timeline').removeClass('hidden')}obj_timeline.toggle()}function play_youtube(id,video,type,size1,size2){var x=$('snap_'+id).set('html','<object width="280" height="226" data="'+video+'&autoplay=1" type="application/x-shockwave-flash"><param name="movie" value="'+video+'&autoplay=1"></param><param name="allowFullScreen" value="true"></param></object>');x.setStyles({'width':'290px','height':'230px','background':'none'});var x=$(type+'_'+id);makesmall(x,size1,size2)}function play_myvideo(id,video,type,size1,size2){var x=$('snap_'+id).set('html','<object style="width:280px;height:226px;" width="280" height="226"><param name="movie" value="'+video+'"></param><param name="AllowFullscreen" value="true"></param><param name="AllowScriptAccess" value="always"></param><embed src="'+video+'" width="280" height="226" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"></embed></object>');x.setStyles({'width':'290px','height':'230px','background':'none'});var x=$(type+'_'+id);makesmall(x,size1,size2)}function play_dailymotion(id,video,type,size1,size2){var x=$('snap_'+id).set('html','<object width="280" height="226" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="movie" value="'+video+'"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="'+video+'" type="application/x-shockwave-flash" width="280" height="226" allowFullScreen="true" allowScriptAccess="always"></embed></object>');x.setStyles({'width':'290px','height':'230px','background':'none'});var x=$(type+'_'+id);makesmall(x,size1,size2)}function makesmall(x,size1,size2){x.getElement('.info').setStyles({'width':size1+'px','background':'none'});x.getElement('.topic').setStyle('width',size2+'px');x.getElement('.comment').setStyle('width',size2+'px');x.getElement('.meta').setStyle('width',size2+'px')}function hit(x,y,z,a){}function addWongSearch(lang){if(window.external&&("AddSearchProvider"in window.external)){window.external.AddSearchProvider(_wp+'_stuff/searchplugin/opensearch_'+_lang+'.xml')}}function likeit(searchurls){var results=[];var i=0;var div=new Element('div',{'id':'_likeit'});div.inject($(document.body));$each(searchurls,function(url,index){var a=new Element('a',{'href':url,'html':index});a.inject($('_likeit'));if(a.offsetHeight==1){results[i++]=url}});$('_likeit').dispose();return results}function likeit_single(searchurl){var arr=[searchurl];var result=likeit(arr);return result.length==1?true:false}