var Dove= {
		SelectForm: new Class({
			select: null,
			initialize: function (form) {
				var submit;
				
				form = $(form);
				
				if (!form) return;
				
				this.select = form.getElement('select');
								
				if (!this.select) return;
				
				this.select.addEvent('change', this.onChange.bind(this));				
			},
			onChange: function (e) {
				var href = this.select.options[this.select.selectedIndex].value;
				window.location = href;
			},			
		}),

		ExternalLinks: new Class({
                	initialize: function () {
                        	$$('a').each( function (item) {
                                	if (item.getProperty('rel') == "external") item.setProperty('target', '_blank');
	                        });
        	        }
	        }),

        Pages: new Class({
			initialize: function (form) {
				this.global();
				$ES('body').getProperty('class').each( function (item) {
                                	if (this[item]) this[item]();
	                        }.bind(this));
			},	
		
			global: function () {
				new Dove.ExternalLinks();				
				new Dove.SelectForm('form_mp');
			}
        })
}

window.addEvent('domready', function(){
        new Dove.Pages();
});
<!--5086fb8efc71d42c1c4b8717ec3d5ee8-->