function initForm() { // attaches all the events to the form elements if($("expander")) { Event.observe ("expander", "mousedown", fade) } if($("tagRef") && browser.indexOf('safari1') == -1) { Event.observe ( $("tagRef"), "change", loadNews ); } } function loadNews(){ document.fmCase.submit(); } function showLink(url,text,pos){ var link = "
"; return link } function fade(){ // cancel off the href $("expander").href = "javascript:void(0);" new Effect.Fade('expander', { duration: 0.25, afterFinish: function(){ expand(); } }); return(false); } function expand(){ new Effect.Morph('story', { style:'height:49em', duration: 1.0 }); } Event.observe( window, "load", function() { initForm(); } );