
window.addEvent('domready', function() {
	Window.implement({$:function(a,b){return document.id(a,b,this.document);}})
	var select = $$('select' );
	select.each(function(elem){
			var onselect = $empty;
			if(elem.hasClass('archives_months')) {
				onselect = function(){
					document.location.href=this.element.get('value');
				};
			}
			new MavSelectBox({
				elem:elem,
				onSelect: onselect
			});
		}
	);
    $$('a.favoris').addEvent('click', function(){
            var url = this.getProperty('href');
            var title = this.getProperty('title');
            if( !title ) title = $$('head title')[0].get('text');
            var bm = BookmarkApp(url, title);
            bm.addBookmark(this);
            return false;
    });
    
    if( isIE ) {
		DD_roundies.addRule('.button-red, .button-black', '6px');
        DD_roundies.addRule('#menu li.level1 a.current', '5px');
    }
});

