window.addEvent('domready',function(){menu_highlight();show_emails();betterForms();});function calendarTipsInit(){tipsTargetsArray=$$('.calendarTip');tipsTargetsArray.each(function(el){el.appendText('...');});var myTips=new Tips(tipsTargetsArray,{showDelay:50,maxTitleChars:50,initialize:function(){this.fx=new Fx.Style(this.toolTip,'opacity',{duration:500,wait:false}).set(0);},onShow:function(toolTip){this.fx.start(1);},onHide:function(toolTip){this.fx.start(0);}});}function menu_highlight(){var list=$$('#nav li a');list.each(function(element){var textfx=new Fx.Style(element,'color',{duration:400,wait:false});if(!element.getParent().hasClass('menu_on')){textfx.set('#e0aec5');element.addEvent('mouseenter',function(){textfx.start('#472031');});element.addEvent('mouseleave',function(){textfx.start('#e0aec5');});}});}function betterForms(){$$('.field').each(function(el){if(el.value.substring(0,2)=="->"){el.value=el.value.substring(2);}el.addEvents({'focus':function(){if(feedback_words.indexOf(this.value)!=-1){this.value=this.title;}},'blur':function(){}})})}function show_emails(){$$('.email').each(function(el){var txt=el.getText().split('[at]');if(txt.length>1){var email=txt[0]+'@'+txt[1];el.setText(email);el.setProperty('href','mailto:'+email);}else{el.setProperty('href','mailto:'+txt[0]);}});}