function show_form(which) { temp = $(which) ; if (temp.visible()) { Effect.BlindUp(temp, {duration:.4,scaleFrom:100}); Element.show(temp); } else { Effect.BlindDown(temp, {duration:.4,scaleTo:100}); Element.hide(temp); } } var thisone; function stick_form(that) { which = 'sub' + that; if (thisone) { if (thisone != that) { Effect.BlindUp($('sub'+thisone), {duration:.4,scaleFrom:100}); $('page' + thisone).setStyle({ color: '#333'}); temp = $('sub' + thisone) ; Element.show(temp); Effect.BlindDown($(which), {duration:.4,scaleTo:100}); temp = $(which) ; Element.hide(temp); thisone = that; $('page' + that).setStyle({ color: '#9FA617'}); } } else { Effect.BlindDown($(which), {duration:.4,scaleTo:100}); thisone = that; $('page' + that).setStyle({ color: '#9FA617'}); temp = $(which) ; Element.hide(temp); } } function shutForm(numrows) { Effect.BlindUp($('men2'), {duration:.4,scaleFrom:100}); for (i = 1; i < numrows; i++) { Effect.BlindUp($('sub'+i), {duration:.4,scaleFrom:100}); $('page' + i).setStyle({ color: '#333'}); } thisone = 0; } function turnOff(which, numrows) { for(i = 1; i < numrows; i++){ $('sec' + i).writeAttribute('class', 'off'); } for(i = 1; i < numrows; i++){ $('page' + i).setStyle({ color: '#888'}); } $('page' + which).setStyle({ color: '#9FA617'}); } function turnOn(numrows) { for(i = 1; i < numrows; i++){ $('sec' + i).writeAttribute('class', ''); } for(i = 1; i < numrows; i++){ $('page' + i).setStyle({ color: '#333'}); } } function load(which) { new Ajax.Updater('description', 'ajax.php?text=' + which, { method: 'get' }); new Ajax.Updater('images', 'ajax.php?image=' + which, { method: 'get' }); } function load2(which) { new Ajax.Updater('images', 'ajax.php?writeup=' + which, { method: 'get' }); $('description').update(); } function swapic(which) { temp = $('main').readAttribute('src'); $('main').writeAttribute('src', $('pic' + which).readAttribute('src')); $('pic' + which).writeAttribute('src', temp); }