Event.addBehavior({
".uj_element_1-pigeon:click": function(event) {
window.location='mailto:'+this.innerHTML; return false;
},
".mail-to:click": function(event) {
window.location='mailto:'+this.innerHTML; return false;
},
"#toggle_login": function(event) {
new Login(this,$("drop_login"),{forgotten_text:"Enter login or email"});
},
"#favourites": function(event) {
new Favourites(this,{logged_in:false, deleting_text:'Deleting favourites...' ,idle_text:'My favourites', loading_text:'adding to favourites...', drop_text:'Drop it here'});
},
"#language_box": function(event) {
new LanguageBox(this);
},
"#search_bar": function(event) {
new SearchBar(this);
},
"body": function(event) {
new GlobalEffects(this);
},
"#newsletter-email": function(event) {
this.onfocus = function(){if(this.value == 'your email')this.value = ''; this.parentNode.className = 'newsletter over'}; this.onblur = function(){if(this.value == '')this.value = 'your email';this.parentNode.className = 'newsletter'};
}
});