// Place your application-specific JavaScript functions and classes here // This file is automatically included by javascript_include_tag :defaults Effect.Transitions.easeOutBounce = function(pos) { if(pos < (1/2.75)) { return (7.5625*pos*pos); } else if(pos < (2/2.75)) { return (7.5625*(pos-=(1.5/2.75))*pos + .75); } else if (pos < (2.5/2.75)) { return (7.5625*(pos-=(2.25/2.75))*pos + .9375); } else { return (7.5625*(pos-=(2.625/2.75))*pos + .984375); } } document.observe("dom:loaded", function() { var path = SWFAddress.getPath(); if (path != "/") { path = path.replace(/^\/(.*?)\/$/, "$1"); new Ajax.Request(path + '.js', {method: "get"}); } });