im a amature javascripter ive tried to edit this ajax/javascript code i found on the internet to allow each tab of this code to display a randomly named page as the original displayed page1.html page2.html i think its right but the below codes just shows loading without anything actually happening... any idea?

<script type="text/javascript">

document.write('<style type="text/css">.tabber{display:none;}<\/style>');

var tabberOptions = {

'onClick': function(argsObj) {

var t = argsObj.tabber; /* Tabber object */
var i = argsObj.index; /* Which tab was clicked (0..n) */
var div = this.tabs[i].div; /* The tab content div */

/* Display a loading message */
div.innerHTML = "<p>Loading...<\/p>";

/* Stores all pages you wish to load, the key is the tab that was clicked (var i) */
var pages = new Array();
pages[0] = "mypage1.html";
pages[1] = "mypage2.html";
pages[n] = "some_other_page.html";

/* Fetch some html depending on which tab was clicked */
var url = pages[i];
var pars = 'foo=bar&foo2=bar2'; /* just for example */
var myAjax = new Ajax.Updater(div, url, {method:'get',parametersars});

'onLoad': function(argsObj) {
/* Load the first tab */
argsObj.index = 0;