//Utility Functions============================================================= //============================================================================== // $ --------------------------------------------------------------------------- // shorthand for document.getElementById() // ----------------------------------------------------------------------------- function $(e) { return document.getElementById(e); } // fade --------------------------------------------------------------------------- // shorthand/standardized for Fat.fade_element // ----------------------------------------------------------------------------- function fade(e) { Fat.fade_element(e, 60, 1500, "#F4C600", "#F9F1C6"); } function doScroll() { // $('bottomImage').style.top = window.innerHeight + window.pageYOffset 'px'; var amount = window.innerHeight + window.pageYOffset - 163; $('bottomImage').style.top = amount + 'px'; } // Behaviour rules ------------------------------------------------------------- // ----------------------------------------------------------------------------- var myrules = { '#s' : function(element){ element.onclick = function(){ element.select(); return false; } } }; Behaviour.addLoadEvent(function() { var myAlert = $('alert'); fade(myAlert.id); }); Behaviour.register(myrules);