loadPage = function(TargetData) { new Effect.BlindUp('PageText', {queue: 'end', limit: 1}); new Ajax.Updater('PageText','index.php?type=raw&page='+TargetData, {method: 'get', asynchronous: true, queue: 'end', limit: 1, oncomplete: function(){new Effect.BlindDown('PageText')}}); Behaviour.register(style); }