

Object.extend(Element, {  show : function() {$A(arguments).each(function(i) {  $(i).style.display =  ($(i).tagName.toLowerCase() == 'div' ? 'block' : '');  });} });  function $T() {  var a = [];  $A(arguments).each(function(i) {  a.push($A(document.getElementsByTagName(i)));  });  return((a = a.flatten()).length > 1 ? a : a[0]); };  var Over = {id: 'tiny-over'}, Load = {id: 'tiny-load'}, Tbox = {id: 'tiny-tbox'}; var Tiny = {  initialize: function() {  [Over, Load, Tbox].each(function(i) {  new Insertion.Bottom($T('body'), '<div id="' + i.id + '"></div>');  });  Event.observe(document, 'click', Tiny.toggle.bindAsEventListener(Tiny));  },   toggle : function(e) {  switch(Event.findElement(e, 'a').rel) {  case 'tiny-hide': Tiny.hide(e); Event.stop(e); break;  case 'tiny-show': Tiny.show(e); Event.stop(e);  }  },   show : function(e) {  /*@cc_on  Tiny.scroll = {x: $T('html').scrollLeft, y: $T('html').scrollTop};  window.scrollTo(0, 0);  $T('html', 'body').each(function(i) {  Element.addClassName(i, 'tiny-ie-hack');  });  @*/  Over.show ? Over.show() : Element.show(Over.id);  Ajax.Responders.register({  onCreate : function() {  Load.show ? Load.show() : Element.show(Load.id);  },  onComplete: function() {  Load.hide ? Load.hide() : Element.hide(Load.id);  Tbox.show ? Tbox.show() : Element.show(Tbox.id);  }  });  new Ajax.Updater(Tbox.id, Event.findElement(e, 'a').href);  },   hide : function(e) {  /*@  $T('html', 'body').each(function(i) {  Element.removeClassName(i, 'tiny-ie-hack');  });  window.scrollTo(Tiny.scroll.x, Tiny.scroll.y);  @*/  Tbox.hide ? Tbox.hide() : Element.hide(Tbox.id);  Over.hide ? Over.hide() : Element.hide(Over.id);  } };  Event.observe(window, 'load', Tiny.initialize);